24 Jul 2022 06:28:31 UTC
- Distribution: Perl-Critic-Community
- Module version: v1.0.3
- Source (raw)
- Browse (raw)
- How to Contribute
- KwaliteeBus factor: 1
- 89.40% Coverage
- License: artistic_2
- Perl: v5.10.1
- Activity24 month
- Download (46.32KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:2 non-PAUSE usersDBOOK Dan Book
- Reverse dependencies
- CPAN Testers List
- Dependency graph
Perl::Critic::Policy::Community::StrictWarnings - Always use strict and warnings, or a module that imports these
The strict and warnings pragmas help avoid many common pitfalls such as misspellings, scoping issues, and performing operations on undefined values. Warnings can also alert you to deprecated or experimental functionality. The pragmas may either be explicitly imported with
use, or indirectly through a number of importer modules such as Moose or strictures. strict is also enabled automatically with a
usedeclaration of perl version 5.12 or higher, as is warnings with a
usedeclaration of 5.36 or higher.
use strict; use warnings; use Moose; use 5.012; use warnings; use 5.036;
This policy is similar to the core policies Perl::Critic::Policy::TestingAndDebugging::RequireUseStrict and Perl::Critic::Policy::TestingAndDebugging::RequireUseWarnings, but combines them into one policy in the
communitytheme. The default modules recognized as importing strict and warnings are defined by the same constants as the core policies, "@STRICT_EQUIVALENT_MODULES" in Perl::Critic::Utils::Constants. To define additional modules, see "CONFIGURATION".
This policy is part of Perl::Critic::Community.
[Community::StrictWarnings] extra_importers = MyApp::Class MyApp::Role
Copyright 2015, Dan Book.
This library is free software; you may redistribute it and/or modify it under the terms of the Artistic License version 2.0.
Module Install Instructions
To install Perl::Critic::Community, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Perl::Critic::Community
For more information on module installation, please visit the detailed CPAN module installation guide.