Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Perl-Critic CPAN distribution.

Report information
The Basics
Id: 78722
Status: new
Priority: 0/
Queue: Perl-Critic

People
Owner: Nobody in particular
Requestors: michael [...] thegrebs.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



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 > ], }, ); }