| 1 |
# Fail if listed policy modules are not available |
| 2 |
profile-strictness = fatal |
| 3 |
|
| 4 |
# 1 is the most strict setting, which is the |
| 5 |
# default when only == 1 |
| 6 |
severity = 1 |
| 7 |
|
| 8 |
verbose = %p in %f[%l:%c] = %m %r\n |
| 9 |
pager = less |
| 10 |
|
| 11 |
theme = |
| 12 |
exclude = 'OTRS::' |
| 13 |
|
| 14 |
[CodeLayout::ProhibitHardTabs] |
| 15 |
allow_leading_tabs = 0 |
| 16 |
|
| 17 |
[-CodeLayout::RequireTidyCode] |
| 18 |
|
| 19 |
[ControlStructures::ProhibitPostfixControls] |
| 20 |
allow = for if unless |
| 21 |
|
| 22 |
[-Documentation::PodSpelling] |
| 23 |
|
| 24 |
[-Documentation::RequirePodAtEnd] |
| 25 |
[-Documentation::RequirePodLinksIncludeText] |
| 26 |
|
| 27 |
[Documentation::RequirePodSections] |
| 28 |
lib_sections = NAME | VERSION | SYNOPSIS | DESCRIPTION | DEPENDENCIES | SUBROUTINES/METHODS | AUTHOR | BUGS AND LIMITATIONS | SOURCE | LICENSE AND COPYRIGHT |
| 29 |
|
| 30 |
[Modules::ProhibitEvilModules] |
| 31 |
modules = Carp::Always Data::Dumper Data::Printer |
| 32 |
|
| 33 |
[-Modules::RequireVersionVar] |
| 34 |
|
| 35 |
[-RegularExpressions::ProhibitEscapedMetacharacters] |
| 36 |
[-RegularExpressions::RequireBracesForMultiline] |
| 37 |
[-RegularExpressions::RequireDotMatchAnything] |
| 38 |
[-RegularExpressions::RequireLineBoundaryMatching] |
| 39 |
|
| 40 |
# The following requires Critic 1.36. disable until released |
| 41 |
#[Subroutines::ProhibitUnusedPrivateSubroutines] |
| 42 |
#allow_name = _build_\w+ |
| 43 |
[-Subroutines::ProhibitUnusedPrivateSubroutines] |
| 44 |
|
| 45 |
[Subroutines::RequireArgUnpacking] |
| 46 |
|
| 47 |
[-ValuesAndExpressions::ProhibitEmptyQuotes] |
| 48 |
[-Variables::ProhibitLocalVars] |
| 49 |
[Variables::ProhibitPunctuationVars] |
| 50 |
string_mode = thorough |
| 51 |
|
| 52 |
#-------------------------------------------------------------- |
| 53 |
# I think these are really important, so always load them |
| 54 |
|
| 55 |
[TestingAndDebugging::RequireUseStrict] |
| 56 |
severity = 1 |
| 57 |
|
| 58 |
[TestingAndDebugging::RequireUseWarnings] |
| 59 |
severity = 1 |
| 60 |
|
| 61 |
#-------------------------------------------------------------- |
| 62 |
# For all other Policies, I accept the default severity, |
| 63 |
# so no additional configuration is required for them. |
| 64 |
|