forked from yast/yast-yast2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
71 lines (53 loc) · 1.33 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
# use the shared Yast defaults
inherit_from:
/usr/share/YaST2/data/devtools/data/rubocop_yast_style.yml
Metrics/AbcSize:
Max: 446
Metrics/BlockNesting:
Max: 5
Metrics/ClassLength:
Max: 2711
Metrics/ModuleLength:
Max: 270
Metrics/CyclomaticComplexity:
Max: 59
Metrics/LineLength:
Max: 274
Metrics/MethodLength:
Max: 980
Metrics/ParameterLists:
Max: 11
Metrics/PerceivedComplexity:
Max: 65
Style/AccessorMethodName:
# keep backward compatibility, but do not allow new code to be non-ruby style
Exclude:
- library/systemd/src/modules/systemd_target.rb
# UI_ID module is not camel case
Style/ClassAndModuleCamelCase:
Enabled: false
Style/ClassVars:
# We really need the class variables in SuSEFirewall modules
Exclude:
- "library/network/src/modules/SuSEFirewall.rb"
# ensure new code is properly documented
Style/Documentation:
Include:
- "library/*/src/lib/**/*.rb"
Style/FileName:
Include:
- "library/*/src/lib/**/*.rb"
Style/MethodName:
Include:
- "library/*/src/lib/**/*.rb"
# keep it as it is part of API for old code
Style/PredicateName:
Include:
- "library/*/src/lib/**/*.rb"
# for old code keep it as often methods names are wrong and part of API
Style/TrivialAccessors:
Include:
- "library/*/src/lib/**/*.rb"
Style/VariableName:
Include:
- "library/*/src/lib/**/*.rb"