projects
/
p5sagit/strictures.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
d49f077
)
only do the special bonus warnings when caller is main
jnap/stop_warnings_spew
mirror/jnap/stop_warnings_spew
John Napiorkowski [Thu, 5 Jul 2012 21:17:04 +0000 (17:17 -0400)]
lib/strictures.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/strictures.pm
b/lib/strictures.pm
index
ac8337a
..
646abcc
100644
(file)
--- a/
lib/strictures.pm
+++ b/
lib/strictures.pm
@@
-36,7
+36,8
@@
sub import {
$ENV{PERL_STRICTURES_EXTRA};
} elsif (! _PERL_LT_5_8_4) {
!!($0 =~ /^x?t\/.*\.t$/
- and (-e '.git' or -e '.svn'))
+ and (-e '.git' or -e '.svn')
+ and (caller eq 'main'))
}
};
if ($extra_tests) {