forked from chef-cookbooks/aix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
95 lines (81 loc) · 2.25 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
91
92
93
94
95
# rubocop todo
Lint/DuplicatedKey:
Exclude:
- 'libraries/helpers.rb'
Lint/RescueException:
Exclude:
- 'resources/nim.rb'
- 'resources/suma.rb'
Lint/UselessAssignment:
Exclude:
- 'examples/update_by_suma.rb'
- 'providers/chsec.rb'
- 'providers/nimclient.rb'
- 'resources/nim.rb'
- 'resources/suma.rb'
Metrics/BlockNesting:
Max: 5
Style/AccessorMethodName:
Exclude:
- 'libraries/storage_objects.rb'
- 'providers/altdisk.rb'
- 'test/lvm/unittests/mock.rb'
Style/ClassAndModuleCamelCase:
Exclude:
- 'test/lvm/unittests/tc_aix_storage_objects.rb'
- 'test/lvm/unittests/tc_storage_objects.rb'
# Cop supports --auto-correct.
# Configuration parameters: Keywords.
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
Style/CommentAnnotation:
Exclude:
- 'resources/subserver.rb'
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: for, each
Style/For:
Exclude:
- 'libraries/lvmobj_vg.rb'
- 'libraries/storage_objects.rb'
- 'test/lvm/unittests/mock.rb'
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: format, sprintf, percent
Style/FormatString:
Exclude:
- 'libraries/lvmobj_fs.rb'
- 'libraries/lvmobj_lv.rb'
- 'libraries/lvmobj_vg.rb'
- 'libraries/storage_objects.rb'
- 'test/lvm/unittests/mock.rb'
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Exclude:
- 'libraries/lvmobj_fs.rb'
- 'libraries/storage_objects.rb'
- 'libraries/tools.rb'
- 'providers/altdisk.rb'
- 'providers/chdev.rb'
- 'providers/chsec.rb'
- 'providers/etchosts.rb'
- 'providers/inittab.rb'
- 'providers/nimclient.rb'
- 'providers/no.rb'
- 'resources/suma.rb'
Style/IdenticalConditionalBranches:
Exclude:
- 'providers/etchosts.rb'
Style/IfInsideElse:
Exclude:
- 'libraries/storage_objects.rb'
# Cop supports --auto-correct.
# Configuration parameters: IncludeSemanticChanges.
Style/NonNilCheck:
Exclude:
- 'test/lvm/unittests/ts_all.rb'
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
# NamePrefix: is_, has_, have_
# NamePrefixBlacklist: is_, has_, have_
# NameWhitelist: is_a?
Style/PredicateName:
Exclude:
- 'spec/**/*'
- 'providers/nimclient.rb'