-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.rubocop.yml
75 lines (61 loc) · 1.7 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
# use the shared YaST defaults
inherit_from:
/usr/share/YaST2/data/devtools/data/rubocop-1.24.1_yast_style.yml
Metrics/AbcSize:
Max: 128
Metrics/BlockLength:
Max: 591
Exclude:
- 'test/**/*.rb'
Metrics/BlockNesting:
Max: 6
Metrics/ClassLength:
Max: 650
Metrics/CyclomaticComplexity:
Max: 34
Metrics/MethodLength:
Max: 315
Metrics/ModuleLength:
Max: 760
Metrics/PerceivedComplexity:
Max: 40
Naming/FileName:
Exclude:
- 'src/modules/Security.rb'
- 'test/SCRStub.rb'
# Do not break API
Naming/MethodName:
Exclude:
- 'src/clients/security.rb'
- 'src/include/security/complex.rb'
- 'src/include/security/dialogs.rb'
- 'src/include/security/routines.rb'
- 'src/include/security/users.rb'
- 'src/include/security/wizards.rb'
- 'src/modules/Security.rb'
- 'test/levels_test.rb'
# Offense count: 9
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
# AllowedNames: io, id, to, by, on, in, at, ip, db
Naming/MethodParameterName:
Exclude:
- 'src/include/security/routines.rb'
- 'src/modules/Security.rb'
# Offense count: 29
# Configuration parameters: EnforcedStyle.
# SupportedStyles: snake_case, camelCase
Naming/VariableName:
Exclude:
- 'src/include/security/complex.rb'
- 'src/include/security/dialogs.rb'
- 'src/include/security/helps.rb'
- 'src/include/security/levels.rb'
- 'src/include/security/routines.rb'
- 'src/include/security/widgets.rb'
- 'src/modules/Security.rb'
# TODO: if someone has too much spare time, feel free to enable it
Style/Documentation:
Enabled: false
# Frozen strings are too dangerous to switch now
Style/FrozenStringLiteralComment:
Enabled: false