forked from GoogleCloudPlatform/magic-modules
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.rubocop.yml
40 lines (33 loc) · 998 Bytes
/
.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
AllCops:
Exclude:
- 'build/**/*'
# We do not validate the templates as they will have code that will only be
# properly formatted when compiled for the target module. These files should
# be checked in their final generated form.
- 'products/**/files/*'
- 'products/**/examples/**/*'
- 'templates/**/*'
Metrics/AbcSize:
Max: 20
# TODO(nelsonjr): Refactor this class and remove Rubocop exemptions below
Metrics/ClassLength:
Exclude:
- 'google/yaml_validator.rb'
- 'provider/core.rb'
- 'provider/puppet.rb'
- 'provider/legacy_test_data_formatter.rb'
# TODO(alexstephen): Remove this when generate_object is removed
- 'provider/chef.rb'
- 'tools/end2end/tester_base.rb'
Metrics/ModuleLength:
Exclude:
- 'compile/core.rb'
Metrics/MethodLength:
Max: 15
Security/Eval:
Exclude:
- 'provider/legacy_test_data_generator.rb'
Style/FrozenStringLiteralComment:
Enabled: false
Style/CommandLiteral:
EnforcedStyle: percent_x