Skip to content

Commit

Permalink
test: add perlcritic to pre-commit, run on all perl
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Apr 26, 2020
1 parent 95f3bec commit dd890cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,9 @@ repos:
- id: perltidy
types: [text]
files: ^(helpers/perl|.+\.p[ml])$
- repo: https://github.com/scop/Perl-Critic
rev: 56a14c42a2be6545c9af3863fffbc8a687cacf6a
hooks:
- id: perlcritic
types: [text]
files: ^(helpers/perl|.+\.p[ml])$
2 changes: 2 additions & 0 deletions test/fixtures/perl/Devel/BashCompletion.pm
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
use strict;
use warnings;
1;

0 comments on commit dd890cd

Please sign in to comment.