/
.rubocop.yml
90 lines (72 loc) · 2.2 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
81
82
83
84
85
86
87
88
89
90
# use the shared Yast defaults
inherit_from:
/usr/share/YaST2/data/devtools/data/rubocop-1.24.1_yast_style.yml
Metrics/AbcSize:
Max: 129
Exclude:
- 'src/lib/**/*.rb' # be more strict for new code in lib
Metrics/AbcSize:
Max: 30
Include:
- 'src/lib/**/*.rb' # be more strict for new code in lib
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 385
Exclude:
- 'src/lib/**/*.rb' # be more strict for new code in lib
Metrics/ModuleLength:
Max: 1350
Exclude:
- 'src/lib/**/*.rb' # be more strict for new code in lib
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 250 # TODO this should be lower for new code
Include:
- 'src/lib/**/*.rb' # be more strict for new code in lib
Metrics/CyclomaticComplexity:
Max: 29
Exclude:
- 'src/lib/**/*.rb' # be more strict for new code in lib
Metrics/CyclomaticComplexity:
Max: 13 # TODO this should be lower for new code
Include:
- 'src/lib/**/*.rb' # be more strict for new code in lib
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 160
Exclude:
- 'src/lib/**/*.rb' # be more strict for new code in lib
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 30 # TODO this should be lower for new code
Include:
- 'src/lib/**/*.rb' # be more strict for new code in lib
Metrics/PerceivedComplexity:
Max: 34
Exclude:
- 'src/lib/**/*.rb' # be more strict for new code in lib
Metrics/PerceivedComplexity:
Max: 14 # TODO this should be lower for new code
Include:
- 'src/lib/**/*.rb' # be more strict for new code in lib
# be more strict than rubocop, 5 is too much
Metrics/ParameterLists:
Max: 4
Style/Documentation:
Include:
- 'src/lib/**/*.rb' # force well documented code only for new code
Naming/FileName:
Include:
- 'src/lib/**/*.rb' # force correct names on new code
Naming/MethodName:
Include:
- 'src/lib/**/*.rb' # force correct names on new code
Naming/VariableName:
Include:
- 'src/lib/**/*.rb' # force known variables only for new code
# this needs more testing if we can have frozen string literals
Style/FrozenStringLiteralComment:
Enabled: false
Metrics/BlockLength:
Exclude:
- "test/**/*"