-
Notifications
You must be signed in to change notification settings - Fork 32
/
.rubocop.yml
66 lines (62 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
Style/StringLiterals:
Enabled: false
AllCops:
Exclude:
- 'rubyipmi.gemspec'
SignalException:
EnforcedStyle: only_raise
Documentation:
Enabled: false
ClassAndModuleChildren:
Enabled: false
HashSyntax:
EnforcedStyle: hash_rockets
ClassCheck:
EnforcedStyle: kind_of?
SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
Style/WordArray:
Enabled: false
# TODO: fix these
Metrics/AbcSize:
Max: 60
Metrics/CyclomaticComplexity:
Max: 19
Metrics/LineLength:
Max: 149
Metrics/MethodLength:
Max: 44
Metrics/ModuleLength:
Max: 128
Metrics/PerceivedComplexity:
Max: 22
Style/SpecialGlobalVars:
Exclude:
- 'lib/rubyipmi.rb'
- 'lib/rubyipmi/commands/basecommand.rb'
- 'lib/rubyipmi/freeipmi/commands/fru.rb'
- 'lib/rubyipmi/ipmitool/commands/fru.rb'
Style/RescueModifier:
Exclude:
- 'lib/rubyipmi.rb'
Style/RegexpLiteral:
Exclude:
- 'spec/spec_helper.rb'
Style/PredicateName:
Exclude:
- 'lib/rubyipmi.rb'
Lint/RescueException:
Exclude:
- 'spec/integration/rubyipmi_spec.rb'
Style/AccessorMethodName:
Exclude:
- 'lib/rubyipmi/freeipmi/connection.rb'
- 'lib/rubyipmi/ipmitool/connection.rb'
# Fixed by deprecation
Style/MethodName:
Exclude:
- 'lib/rubyipmi/commands/mixins/power_mixin.rb'
# Don't understand
Style/FileName:
Exclude:
- 'spec/unit/freeipmi/bmc-info_spec.rb'