forked from os-autoinst/openQA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.perlcriticrc
49 lines (38 loc) · 1.24 KB
/
.perlcriticrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
theme = community + openqa
severity = 4
include = strict ValuesAndExpressions::ProhibitInterpolationOfLiterals
verbose = ::warning file=%f,line=%l,col=%c,title=%m - severity %s::[%p] %e\n
# == Perlcritic Policies
# -- Test::Most brings in strict & warnings
[TestingAndDebugging::RequireUseStrict]
equivalent_modules = Test::Most
[TestingAndDebugging::RequireUseWarnings]
equivalent_modules = Test::Most
# -- Avoid double quotes unless there's interpolation or a single quote.
[ValuesAndExpressions::ProhibitInterpolationOfLiterals]
allow_if_string_contains_single_quote = 1
severity = 3
# -- Prohibit deep nesting
[ControlStructures::ProhibitDeepNests]
severity = 4
add_themes = community
max_nests = 4
# == Community Policies
# -- Test::Most brings in strict & warnings
[Freenode::StrictWarnings]
extra_importers = Test::Most
# -- Test::Most brings in strict & warnings
[Community::StrictWarnings]
extra_importers = Test::Most
[Community::DiscouragedModules]
severity = 3
# Test modules have no package declaration
[Community::PackageMatchesFilename]
severity = 1
# == Custom Policies
# -- Useless quotes on hashes
[OpenQA::HashKeyQuotes]
severity = 5
# -- Superfluous use strict/warning.
[OpenQA::RedundantStrictWarning]
equivalent_modules = Test::Most