-
Notifications
You must be signed in to change notification settings - Fork 30
/
.rubocop_todo.yml
188 lines (164 loc) · 5.64 KB
/
.rubocop_todo.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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2020-06-11 11:57:28 -0400 using RuboCop version 0.85.1.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 2
# Cop supports --auto-correct.
Layout/BlockEndNewline:
Exclude:
- 'spec/lib/authorities/getty/ulan_spec.rb'
# Offense count: 10
# Cop supports --auto-correct.
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
# SupportedHashRocketStyles: key, separator, table
# SupportedColonStyles: key, separator, table
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
Layout/HashAlignment:
Exclude:
- 'lib/qa/authorities/assign_fast_subauthority.rb'
- 'spec/lib/authorities/linked_data/term_config_spec.rb'
# Offense count: 194
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: normal, indented_internal_methods
Layout/IndentationConsistency:
Enabled: false
# Offense count: 194
# Cop supports --auto-correct.
# Configuration parameters: Width, IgnoredPatterns.
Layout/IndentationWidth:
Enabled: false
# Offense count: 1
# Cop supports --auto-correct.
Layout/RescueEnsureAlignment:
Exclude:
- 'app/controllers/qa/terms_controller.rb'
# Offense count: 5
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 241
# Offense count: 1
# Configuration parameters: IgnoredMethods.
Metrics/CyclomaticComplexity:
Max: 7
# Offense count: 1
# Cop supports --auto-correct.
Performance/RegexpMatch:
Exclude:
- 'lib/qa/authorities/local.rb'
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: SkipBlocks, EnforcedStyle.
# SupportedStyles: described_class, explicit
RSpec/DescribedClass:
Exclude:
- 'spec/models/subject_mesh_term_spec.rb'
# Offense count: 70
# Configuration parameters: Max.
RSpec/ExampleLength:
Enabled: false
# Offense count: 8
# Cop supports --auto-correct.
RSpec/LeadingSubject:
Exclude:
- 'spec/lib/authorities/geonames_spec.rb'
- 'spec/lib/authorities/getty/aat_spec.rb'
- 'spec/lib/authorities/getty/tgn_spec.rb'
- 'spec/lib/authorities/getty/ulan_spec.rb'
# Offense count: 319
# Configuration parameters: IgnoreSharedExamples.
RSpec/NamedSubject:
Enabled: false
# Offense count: 2
# Cop supports --auto-correct.
Rails/ApplicationRecord:
Exclude:
- 'app/models/qa/mesh_tree.rb'
- 'app/models/qa/subject_mesh_term.rb'
# Offense count: 10
# Cop supports --auto-correct.
# Configuration parameters: NilOrEmpty, NotPresent, UnlessPresent.
Rails/Blank:
Exclude:
- 'app/services/qa/linked_data/graph_service.rb'
- 'app/services/qa/linked_data/language_sort_service.rb'
- 'app/services/qa/linked_data/mapper/search_results_mapper_service.rb'
- 'lib/qa/authorities/discogs/discogs_instance_builder.rb'
- 'lib/qa/authorities/discogs/discogs_works_builder.rb'
- 'lib/qa/authorities/linked_data/config/search_config.rb'
# Offense count: 1
# Cop supports --auto-correct.
Rails/EnvironmentComparison:
Exclude:
- 'lib/qa.rb'
# Offense count: 1
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/HasManyOrHasOneDependent:
Exclude:
- 'app/models/qa/subject_mesh_term.rb'
# Offense count: 11
# Cop supports --auto-correct.
Rails/Presence:
Exclude:
- 'lib/qa/authorities/discogs/discogs_translation.rb'
- 'lib/qa/authorities/discogs/discogs_works_builder.rb'
- 'lib/qa/authorities/discogs/generic_authority.rb'
- 'lib/qa/authorities/getty/aat.rb'
- 'lib/qa/authorities/getty/tgn.rb'
- 'lib/qa/authorities/getty/ulan.rb'
- 'lib/qa/authorities/linked_data/search_query.rb'
# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: NotNilAndNotEmpty, NotBlank, UnlessBlank.
Rails/Present:
Exclude:
- 'app/services/qa/linked_data/authority_url_service.rb'
- 'lib/qa/authorities/linked_data/find_term.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: Include.
# Include: **/Rakefile, **/*.rake
Rails/RakeEnvironment:
Exclude:
- 'lib/capistrano/tasks/**/*.rake'
- 'lib/tasks/mesh.rake'
# Offense count: 153
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: always, always_true, never
Style/FrozenStringLiteralComment:
Enabled: false
# Offense count: 17
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
Style/HashSyntax:
Exclude:
- 'spec/models/iri_template/url_config_spec.rb'
- 'spec/models/iri_template/variable_map_spec.rb'
- 'spec/services/iri_template_service_spec.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
# SupportedStyles: predicate, comparison
Style/NumericPredicate:
Exclude:
- 'spec/**/*'
- 'lib/qa/authorities/linked_data/find_term.rb'
# Offense count: 2
# Cop supports --auto-correct.
Style/RedundantBegin:
Exclude:
- 'spec/lib/authorities/geonames_spec.rb'
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
# AllowedMethods: present?, blank?, presence, try, try!
Style/SafeNavigation:
Exclude:
- 'lib/qa/authorities/linked_data/find_term.rb'
- 'lib/qa/authorities/local/registry.rb'