-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy path.rubocop.yml
53 lines (53 loc) · 1.09 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
require: rubocop-performance
AllCops:
NewCops: enable
SuggestExtensions: false
TargetRubyVersion: 2.5
Exclude:
- '*.gemspec'
- 'vendor/**/*'
- 'example/**/*'
Layout/LineLength:
Max: 120
Lint/ConstantDefinitionInBlock:
Enabled: false
Lint/FloatComparison:
Exclude:
- spec/app/models/version_spec.rb
Lint/MissingSuper:
Enabled: false
Lint/UriEscapeUnescape:
Enabled: false
Lint/UselessMethodDefinition:
Exclude:
- spec/lib/finders/same_type_finder_spec.rb
- spec/lib/finders/unique_finder_spec.rb
Metrics/AbcSize:
Max: 28
Metrics/BlockLength:
Exclude:
- 'spec/**/*'
Metrics/CyclomaticComplexity:
Max: 10
Metrics/MethodLength:
Max: 18
Exclude:
- app/controllers/core/cli_options.rb
Metrics/ParameterLists:
Max: 6
MaxOptionalParameters: 4
Metrics/PerceivedComplexity:
Max: 9
Style/ClassVars:
Enabled: false
Style/CombinableLoops:
Exclude:
- spec/lib/controllers_spec.rb
Style/Documentation:
Enabled: false
Style/FormatStringToken:
Exclude:
- lib/cms_scanner/finders/finder.rb
Style/MixinUsage:
Exclude:
- lib/cms_scanner/formatter.rb