Browse files

Tighten notab/eol checks even more

  • Loading branch information...
1 parent 7c0072b commit 331886ef1b5ab7a732915b8213dd525a3ea63b88 @ribasushi ribasushi committed Dec 19, 2012
Showing with 9 additions and 3 deletions.
  1. +4 −1 xt/eol.t
  2. +5 −2 xt/notabs.t
View
5 xt/eol.t
@@ -15,10 +15,13 @@ unless ( DBIx::Class::Optional::Dependencies->req_ok_for ('test_eol') ) {
}
# FIXME - temporary workaround for RT#82032
+# also add all scripts (no extension) and some extra extensions
+# we want to check
{
no warnings 'redefine';
+
*Test::EOL::_is_perl_module = sub {
- $_[0] =~ /\.(?:pm|pod)$/i || $_[0] =~ /::/;
+ $_[0] !~ /\./ || $_[0] =~ /\.(?:pm|pod|skip|json|proto)$/i || $_[0] =~ /::/;
}
}
View
7 xt/notabs.t
@@ -15,10 +15,13 @@ unless ( DBIx::Class::Optional::Dependencies->req_ok_for ('test_notabs') ) {
}
# FIXME - temporary workaround for RT#82033
+# also add all scripts (no extension) and some extra extensions
+# we want to check
{
no warnings 'redefine';
- *Test::NoTabs::_is_perl_module = sub {
- $_[0] =~ /\.(?:pm|pod)$/i || $_[0] =~ /::/;
+
+ *Test::EOL::_is_perl_module = sub {
+ $_[0] !~ /\./ || $_[0] =~ /\.(?:pm|pod|skip|json|proto)$/i || $_[0] =~ /::/;
}
}

0 comments on commit 331886e

Please sign in to comment.