-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.rubocop.yml
66 lines (55 loc) · 1.17 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
require:
- standard
- rubocop-rails
inherit_gem:
standard: config/base.yml
Bundler/OrderedGems:
Enabled: true
AllCops:
NewCops: enable
SuggestExtensions: false
Exclude:
- 'db/migrate/*.*'
- 'db/schema.rb'
- 'bin/*'
- vendor/bundle/**/*
Style/Documentation:
Enabled: false
Style/NumericPredicate:
Enabled: false
Style/ZeroLengthPredicate:
Enabled: false
Style/KeywordParametersOrder:
Exclude:
- 'app/models/concerns/cacheable.rb'
Naming/PredicateName:
Enabled: false
Naming/VariableNumber:
Exclude:
- 'app/controllers/application_controller.rb'
Metrics/ModuleLength:
Exclude:
- 'app/lib/*_queries.rb'
Metrics/MethodLength:
Exclude:
- 'app/lib/*_queries.rb'
Max: 20
Metrics/BlockLength:
Exclude:
- 'config/environments/*.rb'
Metrics/AbcSize:
Enabled: false
Rails/SkipsModelValidations:
Exclude:
- 'app/lib/model_indexer.rb'
- 'app/jobs/single_tournament_results_job.rb'
Rails/SquishedSQLHeredocs:
Enabled: false
Rails/Pluck:
Enabled: false
Rails/ApplicationController:
Exclude:
- 'app/controllers/api_controller.rb'
- 'app/controllers/reports_controller.rb'
Rails/RootPublicPath:
Enabled: false