-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy path.rubocop.yml
80 lines (61 loc) · 1.8 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# use the shared Yast defaults
inherit_from:
/usr/share/YaST2/data/devtools/data/rubocop-1.24.1_yast_style.yml
AllCops:
TargetRubyVersion: 2.5
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
Layout/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
Naming/AccessorMethodName:
Enabled: false
# Offense count: 29
Style/Documentation:
Enabled: false
# Offense count: 1
# Configuration parameters: NamePrefix, NamePrefixBlacklist.
Naming/PredicateName:
Enabled: false
Naming/MethodParameterName:
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
# Allow global mixins in tests
Style/MixinUsage:
Exclude:
- 'test/**/*.rb'
# this cop will change API, so disable it
Style/OptionalBooleanParameter:
Enabled: false
# it sometimes make code harder to read
Style/GuardClause:
Enabled: false
# use indented style as there is a lot of multiline strings and it often
# too much fragile that string as default style makes really narrow strings
Layout/LineEndStringConcatenationIndentation:
EnforcedStyle: indented