Subject: | Add Mouse Moo and Mo to modules that provide stict/warnings |
Mouse, Moo, and Mo all provide the equivalent of use strict and use
warnings just like Moose. This patch adds them to the appropriate list.
The line is a little long and I looked for style guidance in other tests
but wasn't able to find a suitable example to decide whether to split
the list to multiple lines or not.
Subject: | 0001-Add-Mouse-Moo-and-Mo-to-list-of-modules-giving-stric.patch |
diff --git a/lib/Perl/Critic/Policy/TestingAndDebugging/RequireUseStrict.pm b/lib/Perl/Critic/Policy/TestingAndDebugging/RequireUseStrict.pm
index 87f0e4d..fe9f592 100644
--- a/lib/Perl/Critic/Policy/TestingAndDebugging/RequireUseStrict.pm
+++ b/lib/Perl/Critic/Policy/TestingAndDebugging/RequireUseStrict.pm
@@ -38,7 +38,7 @@ sub supported_parameters {
default_string => $EMPTY,
behavior => 'string list',
list_always_present_values =>
- [ qw< strict Moose Moose::Role Moose::Util::TypeConstraints > ],
+ [ qw< strict Moose Moose::Role Moose::Util::TypeConstraints Mouse Moo Mo > ],
},
);
}
diff --git a/lib/Perl/Critic/Policy/TestingAndDebugging/RequireUseWarnings.pm b/lib/Perl/Critic/Policy/TestingAndDebugging/RequireUseWarnings.pm
index e97736f..7e97d3b 100644
--- a/lib/Perl/Critic/Policy/TestingAndDebugging/RequireUseWarnings.pm
+++ b/lib/Perl/Critic/Policy/TestingAndDebugging/RequireUseWarnings.pm
@@ -38,7 +38,7 @@ sub supported_parameters {
default_string => $EMPTY,
behavior => 'string list',
list_always_present_values =>
- [ qw< warnings Moose Moose::Role Moose::Util::TypeConstraints > ],
+ [ qw< warnings Moose Moose::Role Moose::Util::TypeConstraints Mouse Moo Mo > ],
},
);
}