-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
163 lines (124 loc) · 3.41 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
require: rubocop-rspec
AllCops:
TargetRubyVersion: 2.5
DisplayCopNames: true
Exclude:
- 'db/**/*'
- 'script/**/*'
- 'build/**/*'
- 'vendor/**/*'
- 'bin/**/*'
- 'Gemfile'
- 'Rakefile'
- 'config/**/*'
- 'tmp/**/*'
- 'lib/tasks/**/*'
- 'app/presenters/hyrax/file_set_presenter.rb'
- 'app/presenters/hyrax/collapsable_section_presenter.rb'
- 'app/parsers/bulkrax/bagit_complex_parser.rb'
- 'app/views/bulkrax/**/*'
- 'app/parsers/bulkrax/parser_export_record_set.rb'
Metrics/BlockLength:
ExcludedMethods: ['included']
Exclude:
- 'lib/tasks/**/*'
- 'spec/**/*.rb'
- 'config/**/*'
- 'app/controllers/catalog_controller.rb'
- 'app/controllers/concerns/oregon_digital/blacklight_config_behavior.rb'
Style/AsciiComments:
Enabled: false
Style/CollectionMethods:
PreferredMethods:
collect: 'map'
collect!: 'map!'
inject: 'reduce'
detect: 'find'
find_all: 'select'
Style/ClassAndModuleChildren:
Enabled: false
Style/SingleLineBlockParams:
Enabled: false
Naming/MethodParameterName:
Enabled: false
Layout/LineLength:
Enabled: false
Layout/RescueEnsureAlignment:
Exclude:
- 'app/indexers/generic_indexer.rb'
Style/Documentation:
Exclude:
- 'spec/**/*'
Metrics/ModuleLength:
Exclude:
- 'app/models/concerns/oregon_digital/collection_metadata.rb'
- 'app/models/concerns/oregon_digital/generic_metadata.rb'
- 'app/models/concerns/oregon_digital/video_metadata.rb'
- 'app/models/concerns/oregon_digital/document_metadata.rb'
- 'app/models/concerns/oregon_digital/image_metadata.rb'
- 'app/controllers/concerns/oregon_digital/blacklight_config_behavior.rb'
Metrics/ClassLength:
Exclude:
- 'app/controllers/catalog_controller.rb'
Metrics/MethodLength:
Exclude:
- 'app/inputs/multi_value_input.rb'
RSpec/DescribeClass:
Exclude:
- 'spec/system/**/*'
- 'spec/views/**/*'
- 'spec/config/initializers/**/*'
- 'spec/tasks/**/*'
RSpec/AnyInstance:
Enabled: false
RSpec/LetSetup:
Enabled: false
# # By default RSpec/MessageSpies has the following:
# # Prefer have_received for setting message expectations. Setup form as a spy using allow or instance_spy.
# # The default assumes EnforcedStyle is 'have_received'. Most of our specs are 'receive'
RSpec/MessageSpies:
Enabled: false
RSpec/MultipleExpectations:
Enabled: false
RSpec/MultipleMemoizedHelpers:
Enabled: false
RSpec/ExampleLength:
Enabled: false
Layout/EmptyLinesAroundAttributeAccessor:
Enabled: false
Layout/SpaceAroundMethodCallOperator:
Enabled: false
Lint/DeprecatedOpenSSLConstant:
Enabled: false
Lint/RaiseException:
Enabled: false
Lint/StructNewOverride:
Enabled: false
Style/ExponentialNotation:
Enabled: false
Style/HashEachMethods:
Enabled: false
Style/HashTransformKeys:
Enabled: false
Style/HashTransformValues:
Enabled: false
Style/SlicingWithRange:
Enabled: false
RSpec/EmptyLineAfterExample:
Enabled: false
Lint/NonDeterministicRequireOrder:
Enabled: false
Style/FormatStringToken:
Enabled: false
FactoryBot/FactoryClassName:
Enabled: false
Style/RedundantReturn:
Enabled: false
Migration/DepartmentName:
Enabled: false
RSpec/VerifiedDoubles:
Exclude:
- 'spec/helpers/oregon_digital/citations_behaviors/formatters/wiki_formatter_spec.rb'
RSpec/SubjectStub:
Exclude:
- 'spec/helpers/oregon_digital/citations_behaviors/formatters/wiki_formatter_spec.rb'