-
Notifications
You must be signed in to change notification settings - Fork 4
/
.rubocop.yml
105 lines (87 loc) · 2.29 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
require: rubocop-rspec
Rails:
Enabled: true
AllCops:
UseCache: false
DisplayCopNames: true
Include:
- '**/Rakefile'
- '**/config.ru'
Exclude:
- 'db/**/*'
- 'script/**/*'
- 'vendor/**/*'
- 'bin/**/*'
- 'spec/internal/**/*'
- 'misc/**/*'
Lint/UselessAssignment:
Exclude:
- 'spec/factories/*.rb'
Metrics/LineLength:
Max: 100
Exclude:
- 'app/models/concerns/geo_concerns/extractors/iso19139_helper.rb'
- 'app/helpers/metadata_extraction_helper.rb'
- 'app/models/concerns/file_set/image_file_behavior.rb'
- 'app/models/concerns/file_set/raster_file_behavior.rb'
- 'app/models/concerns/file_set/vector_file_behavior.rb'
- 'app/models/concerns/georeferenced_behavior.rb'
- 'app/models/solr_document.rb'
- 'app/schemas/geo_concerns/basic_geo_metadata_required.rb'
- 'app/services/geo_concerns/discovery/geoblacklight_document.rb'
- 'config/**/*.rb'
- 'app/values/geo_concerns/coverage.rb'
- 'app/values/geo_concerns/time_period.rb'
- 'lib/geo_concerns/fgdc_metadata_extractor.rb'
- 'lib/generators/geo_concerns/install_generator.rb'
- 'spec/**/*.rb'
Metrics/AbcSize:
Exclude:
- 'app/models/concerns/geo_concerns/extractors/iso19139_helper.rb'
- 'lib/geo_concerns/fgdc_metadata_extractor.rb'
Metrics/MethodLength:
Exclude:
- 'Rakefile'
- 'app/models/concerns/geo_concerns/extractors/iso19139_helper.rb'
- 'app/models/concerns/geo_concerns/file_set/derivatives.rb'
Metrics/ClassLength:
Exclude:
- 'app/controllers/catalog_controller.rb'
- 'lib/generators/geo_concerns/install_generator.rb'
Style/BlockDelimiters:
Exclude:
- 'spec/**/*'
Style/MultilineBlockLayout:
Exclude:
- 'spec/**/*'
Style/IndentationConsistency:
EnforcedStyle: rails
Style/CollectionMethods:
PreferredMethods:
collect: 'map'
collect!: 'map!'
inject: 'reduce'
detect: 'find'
find_all: 'select'
Style/WordArray:
Enabled: false
Style/StringLiterals:
Enabled: false
Style/Documentation:
Enabled: false
Style/GlobalVars:
Exclude:
- 'spec/spec_helper.rb'
RSpec/ExampleWording:
CustomTransform:
be: is
have: has
not: does not
NOT: does NOT
IgnoredWords:
- only
RSpec/FilePath:
Enabled: false
RSpec/DescribeClass:
Exclude:
- 'spec/features/**/*'