-
Notifications
You must be signed in to change notification settings - Fork 14
/
.rubocop.yml
86 lines (67 loc) · 1.6 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
# use the shared Yast defaults
inherit_from:
/usr/share/YaST2/data/devtools/data/rubocop_yast_style.yml
# Offense count: 3
Lint/Eval:
Enabled: false
# Offense count: 2
Lint/RescueException:
Enabled: false
# Offense count: 24
Metrics/AbcSize:
Max: 54
# Offense count: 1
Metrics/BlockNesting:
Max: 4
# Offense count: 1
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 107
# Legacy Ops module is long
Metrics/ModuleLength:
Max: 553
# Offense count: 20
Metrics/CyclomaticComplexity:
Max: 17
# Offense count: 149
# Configuration parameters: AllowURI, URISchemes.
Metrics/LineLength:
Max: 120
# Offense count: 32
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 49
# Offense count: 9
Metrics/PerceivedComplexity:
Max: 18
# Offense count: 20
Style/Documentation:
Enabled: false
# Yast API: WFM.SetLanguage, SCR.Read
# i18n: N_, Nn_
Style/MethodName:
Exclude:
- src/ruby/yast/i18n.rb
- src/ruby/yast/scr.rb
- src/ruby/yast/wfm.rb
# Offense count: 1
# Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
Style/Next:
Enabled: false
# Offense count: 4
# Configuration parameters: Methods.
Style/SingleLineBlockParams:
Enabled: false
# Offense count: 1 (@__last_exception)
Style/TrivialAccessors:
Enabled: false
# the debugger invocation is deliberate here, it's not a forgotten leftover...
Lint/Debugger:
Exclude:
- src/ruby/yast/debugger.rb
Style/FileName:
Exclude:
- tests/test_module/modules/*
# alias method is more convenient method for method aliasing
Style/Alias:
EnforcedStyle: prefer_alias_method