/
.rubocop.yml
59 lines (45 loc) · 1.29 KB
/
.rubocop.yml
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
50
51
52
53
54
55
56
57
58
59
# use the shared Yast defaults
inherit_from:
/usr/share/YaST2/data/devtools/data/rubocop_yast_style.yml
AllCops:
TargetRubyVersion: 2.3
Style/FrozenStringLiteralComment:
Enabled: false
# TODO: this need some non-trivial refactoring...
Metrics/AbcSize:
Max: 111
# TODO: this need some non-trivial refactoring...
Metrics/BlockNesting:
Max: 5
# TODO: this need some non-trivial refactoring...
Metrics/ClassLength:
Max: 490
# TODO: this need some non-trivial refactoring...
Metrics/CyclomaticComplexity:
Max: 25
Metrics/LineLength:
Max: 100
# TODO: this need some non-trivial refactoring...
Metrics/MethodLength:
Max: 96
# TODO: this need some non-trivial refactoring...
Metrics/PerceivedComplexity:
Max: 25
# FIXME: It seems the cop does not handle this complex case correctly,
# disable it for now on that file.
Lint/ShadowedException:
Exclude:
- 'src/lib/registration/connect_helpers.rb'
# Offense count: 5
Style/AccessorMethodName:
Enabled: false
# Offense count: 29
Style/Documentation:
Enabled: false
# Offense count: 1
# Configuration parameters: NamePrefix, NamePrefixBlacklist.
Style/PredicateName:
Enabled: false
# Let lslezak decide what to do with it. In general jreidinger does not see it as such big violence of style
Style/StructInheritance:
Enabled: false