forked from CDCgov/SDP-Vocabulary-Service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
72 lines (71 loc) · 1.63 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
67
68
69
70
71
72
inherit_from: .rubocop_todo.yml
AllCops:
TargetRubyVersion: 2.2
Exclude:
- 'bin/**/*'
- 'lib/ext/*'
- 'lib/sdp/importers/phin_vads_importer.rb'
- 'lib/tasks/cucumber.rake'
- 'lib/tasks/data.rake'
- 'db/schema.rb'
- 'node_modules/**/*'
- 'app/views/api/fhir/**/*'
Rails:
Enabled: true
Rails/HasAndBelongsToMany:
Exclude:
- 'app/models/role.rb'
Metrics/BlockLength:
Exclude:
- 'config/routes.rb'
- 'lib/tasks/admin.rake'
Metrics/LineLength:
Max: 160
Exclude:
- 'test/**/*'
- 'lib/sdp/imports/spreadsheet.rb'
Metrics/BlockLength:
Exclude:
- 'config/environments/*'
- 'config/routes.rb'
- 'lib/tasks/admin.rake'
- 'config/initializers/devise.rb'
- 'test/**/*'
- 'db/migrate/*'
- 'lib/sdp/importers/spreadsheet.rb'
Metrics/MethodLength:
CountComments: false # count full line comments?
Max: 30
Exclude:
- 'db/migrate/*'
- 'lib/sdp/simple_search.rb'
- 'lib/sdp/importers/spreadsheet.rb'
Metrics/ClassLength:
Max: 250
Exclude:
- 'test/**/*'
- 'lib/sdp/importers/spreadsheet.rb'
Metrics/AbcSize:
# The ABC size is a calculated magnitude, so this number can be a Fixnum or
# a Float.
Max: 35
Exclude:
- 'test/**/*.rb'
- 'lib/sdp/importers/spreadsheet.rb'
Metrics/ModuleLength:
Exclude:
# Avoid complex methods.
Metrics/CyclomaticComplexity:
Max: 20
Metrics/PerceivedComplexity:
Max: 20
Style/GuardClause:
Enabled: false
Style/ClassVars:
Exclude:
- 'config/initializers/elastic_search.rb'
- 'test/support/json_schema.rb'
Style/NumericPredicate:
Enabled: false
#Style/HashSyntax:
# UseHashRocketsWithSymbolValues: true