Repository navigation
Expand file tree
/
Copy path.rubocop.yml
More file actions
59 lines (56 loc) · 1.42 KB
/
Copy path.rubocop.yml
File metadata and controls
59 lines (56 loc) · 1.42 KB
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
AllCops:
TargetRubyVersion: 3.1 # this cannot be bumped until we upgrade RuboCop
Exclude:
- "spec/data/**/*"
- "vendor/**/*"
- "*/vendor/**/*"
- "pkg/**/*"
- "chef-config/pkg/**/*"
- "habitat/**/*"
Security/Eval:
Enabled: false
Lint/UselessAssignment:
Enabled: false
Lint/DeprecatedClassMethods:
Enabled: false
Lint/AmbiguousRegexpLiteral:
Enabled: false
Lint/AssignmentInCondition:
Enabled: false
Lint/AmbiguousBlockAssociation:
Enabled: false
Lint/ShadowingOuterLocalVariable:
Enabled: false
Lint/IneffectiveAccessModifier:
Enabled: false
Lint/InterpolationCheck:
Enabled: true
Exclude:
- 'spec/unit/property_spec.rb'
- 'spec/functional/shell_spec.rb'
Lint/DeprecatedConstants:
Enabled: true
Exclude:
- lib/chef/node/attribute.rb # false alarms
# Disable these until we upgrade to a modern Rubocop release
Layout/ArgumentAlignment:
Enabled: false
Layout/HashAlignment:
Enabled: false
Layout/AssignmentIndentation:
Enabled: false
Layout/HeredocIndentation:
Enabled: false
# This cop shouldn't alert on the helper / specs itself
Chef/Ruby/LegacyPowershellOutMethods:
Exclude:
- 'lib/chef/mixin/powershell_out.rb'
- 'spec/functional/mixin/powershell_out_spec.rb'
- 'spec/unit/mixin/powershell_out_spec.rb'
# set additional paths
Chef/Ruby/UnlessDefinedRequire:
Include:
- 'lib/**/*'
- 'chef-bin/**/*'
- 'chef-config/lib/**/*'
- 'chef-utils/lib/**/*'