forked from shinesolutions/puppet-aem-resources
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
52 lines (52 loc) · 1.31 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
# TODO: re-enable Metric/AbcSize, Metrics/CyclomaticComplexity, and Metrics/PerceivedComplexity
AllCops:
DisplayCopNames: true
Exclude:
- .bundle/*
- bin/*
- pkg/**/*
- test/**/*
# Disabled useless assignment check due to Puppet type param validation
# e.g.
# validate do |value|
# value = 'foo' if value == ''
# end
Lint/UselessAssignment:
Enabled: false
Metrics/AbcSize:
Enabled: false
Metrics/BlockLength:
Max: 110
Exclude:
# AEM SAML endpoint does support that many parameters
- "lib/puppet/provider/aem_saml/aem.rb"
- "lib/puppet/type/aem_saml.rb"
- "**/**/*_spec.rb"
Metrics/ClassLength:
Max: 300
Metrics/LineLength:
Max: 280
Exclude:
# AEM SAML endpoint does support that many parameters
- "lib/puppet/provider/aem_saml/aem.rb"
- "lib/puppet/type/aem_saml.rb"
Metrics/MethodLength:
Max: 30
Exclude:
# AEM SAML endpoint does support that many parameters
- "lib/puppet/provider/aem_saml/aem.rb"
- "lib/puppet/type/aem_saml.rb"
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
Naming/AccessorMethodName:
Enabled: false
Naming/PredicateName:
Enabled: false
Style/BracesAroundHashParameters:
EnforcedStyle: context_dependent
Style/BlockDelimiters:
Enabled: false
Style/RaiseArgs:
EnforcedStyle: compact