Dist-Zilla-Plugin-Test-Legal

 view release on metacpan or  search on metacpan

.perlcriticrc  view on Meta::CPAN

# add_themes                         =
# severity                           = 4
# maximum_violations_per_document    = no_limit

# The maximum number of lines between an open() and a close().
# Minimum value 1. No maximum.
# lines = 9


# Write `my $error = close $fh;' instead of `close $fh;'.
[InputOutput::RequireCheckedClose]
# set_themes                         = certrule core maintenance
# add_themes                         =
# severity                           = 2
# maximum_violations_per_document    = no_limit


# Write `my $error = open $fh, $mode, $filename;' instead of `open $fh, $mode, $filename;'.
[InputOutput::RequireCheckedOpen]
# set_themes                         = certrule core maintenance
# add_themes                         =
# severity                           = 3
# maximum_violations_per_document    = no_limit


# Return value of flagged function ignored.
[InputOutput::RequireCheckedSyscalls]
functions                            = :builtins
exclude_functions                    = sleep print
# set_themes                         = certrule core maintenance
# add_themes                         =
# severity                           = 1
# maximum_violations_per_document    = no_limit

# Write `open $fh, q{<:encoding(UTF-8)}, $filename;' instead of `open $fh, q{{<:utf8}, $filename;'.
[InputOutput::RequireEncodingWithUTF8Layer]
# set_themes                         = bugs core security
# add_themes                         =
# severity                           = 5
# maximum_violations_per_document    = no_limit


# prohibit multiline maps, not multistatement maps
[Lax::ProhibitComplexMappings::LinesNotStatements]
# set_themes                         = complexity lax
# add_themes                         =
# severity                           = 3
# maximum_violations_per_document    = no_limit
# Cannot programmatically discover what parameters this policy takes.


# empty quotes are okay as the fallback on the rhs of ||
[-Lax::ProhibitEmptyQuotes::ExceptAsFallback]
# set_themes                         = lax
# add_themes                         =
# severity                           = 2
# maximum_violations_per_document    = no_limit
# Cannot programmatically discover what parameters this policy takes.


# leading zeroes are okay as the first arg to chmod
[Lax::ProhibitLeadingZeros::ExceptChmod]
# set_themes                         = bugs lax
# add_themes                         =
# severity                           = 3
# maximum_violations_per_document    = no_limit
# Cannot programmatically discover what parameters this policy takes.


# stringy eval is bad, but it's okay just to "require"
[Lax::ProhibitStringyEval::ExceptForRequire]
# set_themes                         = danger
# add_themes                         =
# severity                           = 5
# maximum_violations_per_document    = no_limit
# Cannot programmatically discover what parameters this policy takes.


# ending your package with a simple, fun true value is okay
[Lax::RequireEndWithTrueConst]
# set_themes                         = lax
# add_themes                         =
# severity                           = 4
# maximum_violations_per_document    = no_limit
# Cannot programmatically discover what parameters this policy takes.


# you can put strict and warnings before "package"
[Lax::RequireExplicitPackage::ExceptForPragmata]
# set_themes                         = risky
# add_themes                         =
# severity                           = 4
# maximum_violations_per_document    = no_limit

# Names of pragmata that are permitted before package declaration.
# allowed_pragmata = diagnostics feature perlversion strict warnings

# Don't require programs to have a package statement.
# exempt_scripts = 1


# Do not use `format'.
[Miscellanea::ProhibitFormats]
# set_themes                         = certrule core maintenance pbp
# add_themes                         =
# severity                           = 3
# maximum_violations_per_document    = no_limit


# Do not use `tie'.
[Miscellanea::ProhibitTies]
# set_themes                         = core maintenance pbp
# add_themes                         =
# severity                           = 2
# maximum_violations_per_document    = no_limit


# Forbid a bare `## no critic'
[Miscellanea::ProhibitUnrestrictedNoCritic]
# set_themes                         = core maintenance
# add_themes                         =

.perlcriticrc  view on Meta::CPAN

[ValuesAndExpressions::ProhibitEmptyCommas]
# set_themes                         = cosmetic pulp
# add_themes                         =
# severity                           = 2
# maximum_violations_per_document    = no_limit


# Write `q{}' instead of `'''.
[-ValuesAndExpressions::ProhibitEmptyQuotes]
# set_themes                         = core cosmetic pbp
# add_themes                         =
# severity                           = 2
# maximum_violations_per_document    = no_limit


# Write `"\N{DELETE}"' instead of `"\x7F"', etc.
[ValuesAndExpressions::ProhibitEscapedCharacters]
# set_themes                         = core cosmetic pbp
# add_themes                         =
# severity                           = 2
# maximum_violations_per_document    = no_limit


# don't use the -f file test
[ValuesAndExpressions::ProhibitFiletest_f]
# set_themes                         = bugs pulp
# add_themes                         =
# severity                           = 3
# maximum_violations_per_document    = no_limit


# Use concatenation or HEREDOCs instead of literal line breaks in strings.
[ValuesAndExpressions::ProhibitImplicitNewlines]
# set_themes                         = core cosmetic pbp
# add_themes                         =
# severity                           = 3
# maximum_violations_per_document    = no_limit


# Always use single quotes for literal strings.
[ValuesAndExpressions::ProhibitInterpolationOfLiterals]
# set_themes                         = core cosmetic pbp
# add_themes                         =
# severity                           = 1
# maximum_violations_per_document    = no_limit

# Kinds of delimiters to permit, e.g. "qq{", "qq(", "qq[", "qq/".
# allow =

# If the string contains ' characters, allow "" to quote it.
# allow_if_string_contains_single_quote = 0


# Write `oct(755)' instead of `0755'.
[ValuesAndExpressions::ProhibitLeadingZeros]
# set_themes                         = bugs certrec core pbp
# add_themes                         =
# severity                           = 5
# maximum_violations_per_document    = no_limit

# Don't allow any leading zeros at all.  Otherwise builtins that deal with Unix permissions, e.g. chmod, don't get flagged.
# strict = 0


# Long chains of method calls indicate tightly coupled code.
[ValuesAndExpressions::ProhibitLongChainsOfMethodCalls]
# set_themes                         = core maintenance
# add_themes                         =
# severity                           = 2
# maximum_violations_per_document    = no_limit

# The number of chained calls to allow.
# Minimum value 1. No maximum.
# max_chain_length = 3


# Don't use values that don't explain themselves.
[ValuesAndExpressions::ProhibitMagicNumbers]
# set_themes                         = certrec core maintenance
# add_themes                         =
# severity                           = 2
# maximum_violations_per_document    = 10

# Individual and ranges of values to allow, and/or "all_integers".
# allowed_values = 0 1 2

# Kind of literals to allow.
# Valid values: Binary, Exp, Float, Hex, Octal.
# allowed_types = Float

# Should anything to the right of a "=>" be allowed?.
# allow_to_the_right_of_a_fat_comma = 1

# Names of subroutines that create constants.
# Values that are always included: Readonly, Readonly::Array, Readonly::Hash, Readonly::Scalar, const.
# constant_creator_subroutines =


# Don't mix numeric operators with string operands, or vice-versa.
[ValuesAndExpressions::ProhibitMismatchedOperators]
# set_themes                         = bugs certrule core
# add_themes                         =
# severity                           = 3
# maximum_violations_per_document    = no_limit


# Write ` !$foo && $bar || $baz ' instead of ` not $foo && $bar or $baz'.
[ValuesAndExpressions::ProhibitMixedBooleanOperators]
# set_themes                         = bugs certrec core pbp
# add_themes                         =
# severity                           = 4
# maximum_violations_per_document    = no_limit


# Use `q{}' or `qq{}' instead of quotes for awkward-looking strings.
[ValuesAndExpressions::ProhibitNoisyQuotes]
# set_themes                         = core cosmetic pbp
# add_themes                         =
# severity                           = 2
# maximum_violations_per_document    = no_limit



( run in 1.525 second using v1.01-cache-2.11-cpan-d8267643d1d )