Skip to content

Commit

Permalink
v0.0.7 release
Browse files Browse the repository at this point in the history
  • Loading branch information
lancew committed Oct 4, 2016
1 parent 037a625 commit d65551f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
Revision history for Perl-Critic-Policy-Perlsecret

v0.0.7 2016-10-04
- Config allows overriding so specific secrets can be allowed.
v0.0.6 2016-07-29
- Rewrite using PPI properly
v0.0.5 2016-07-29
- Released in error as 0.0.6
v0.0.4 2014-09-14
v0.0.3 2014-09-11
- Migrating to Dist::Zilla
v0.0.2 2014-09-09
Expand Down
2 changes: 1 addition & 1 deletion dist.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = Perl-Critic-Policy-Perlsecret
version = 0.0.5
version = 0.0.7
author = Lance Wicks <lancew@cpan.org>
license = GPL_3
copyright_holder = Lance Wicks
Expand Down
6 changes: 3 additions & 3 deletions lib/Perl/Critic/Policy/Perlsecret.pm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use Carp;
use Perl::Critic::Utils;
use List::Util 'first';

our $VERSION = '0.0.5';
our $VERSION = '0.0.7';

Readonly::Scalar my $DESCRIPTION => 'Perlsecret risk.';
Readonly::Scalar my $EXPLANATION => 'Perlsecret detected: %s';
Expand Down Expand Up @@ -181,8 +181,8 @@ sub _space_station {
{
next unless ref($child) eq 'PPI::Token::Operator';

return 1 if $child eq '-'
&& $child->snext_sibling eq '+'
return 1 if $child eq '-'
&& $child->snext_sibling eq '+'
&& $child->snext_sibling->snext_sibling eq '-';
}
}
Expand Down

0 comments on commit d65551f

Please sign in to comment.