Skip to content

Commit

Permalink
Include ProhibitDeepNests perlcritic policy
Browse files Browse the repository at this point in the history
  • Loading branch information
jknphy committed Nov 28, 2018
1 parent 6b5d997 commit 657b53a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
8 changes: 8 additions & 0 deletions .perlcriticrc
@@ -0,0 +1,8 @@
[-Perl::Critic::Policy::BuiltinFunctions::ProhibitStringyEval]

[Perl::Critic::Policy::HashKeyQuotes]

[Perl::Critic::Policy::ConsistentQuoteLikeWords]

[Perl::Critic::Policy::ControlStructures::ProhibitDeepNests]
max_nests = 8
1 change: 0 additions & 1 deletion .travis.yml
Expand Up @@ -21,4 +21,3 @@ install:
- make prepare
script:
- make test
- make perlcritic
7 changes: 2 additions & 5 deletions Makefile
Expand Up @@ -83,13 +83,10 @@ test-static: tidy test-merge test-dry test-no-wait_idle test-unused-modules test
ifeq ($(TESTS),compile)
test: test-compile
else
test: unit-test test-static test-compile
test: unit-test test-static test-compile perlcritic
endif

PERLCRITIC=PERL5LIB=tools/lib/perlcritic:$$PERL5LIB perlcritic --quiet \
--exclude Perl::Critic::Policy::BuiltinFunctions::ProhibitStringyEval \
--include Perl::Critic::Policy::HashKeyQuote \
--include Perl::Critic::Policy::ConsistentQuoteLikeWords
PERLCRITIC=PERL5LIB=tools/lib/perlcritic:$$PERL5LIB perlcritic --quiet --gentle

.PHONY: perlcritic
perlcritic: tools/lib/
Expand Down
2 changes: 1 addition & 1 deletion lib/migration.pm
Expand Up @@ -24,7 +24,7 @@ use testapi;
use utils;
use registration;
use qam 'remove_test_repositories';
use version_utils qw(sle_version_at_least is_sle is_sles4sap);
use version_utils qw(is_sle is_sles4sap);

our @EXPORT = qw(
setup_sle
Expand Down

0 comments on commit 657b53a

Please sign in to comment.