]> git.openstreetmap.org Git - rails.git/blob - .rubocop_todo.yml
c1923e9829983578f92dee99beb8e7fd37cf7e86
[rails.git] / .rubocop_todo.yml
1 # This configuration was generated by
2 # `rubocop --auto-gen-config`
3 # on 2019-10-19 16:05:52 +0000 using RuboCop version 0.75.0.
4 # The point is for the user to remove these configuration records
5 # one by one as the offenses are removed from the code base.
6 # Note that changes in the inspected code, or installation of new
7 # versions of RuboCop, may require this file to be generated again.
8
9 # Offense count: 3338
10 # Cop supports --auto-correct.
11 # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
12 # URISchemes: http, https
13 Layout/LineLength:
14   Max: 260
15
16 # Offense count: 35
17 # Configuration parameters: AllowSafeAssignment.
18 Lint/AssignmentInCondition:
19   Exclude:
20     - 'app/controllers/api/traces_controller.rb'
21     - 'app/controllers/api/user_preferences_controller.rb'
22     - 'app/controllers/application_controller.rb'
23     - 'app/controllers/geocoder_controller.rb'
24     - 'app/controllers/notes_controller.rb'
25     - 'app/controllers/traces_controller.rb'
26     - 'app/controllers/users_controller.rb'
27     - 'app/helpers/application_helper.rb'
28     - 'app/helpers/browse_tags_helper.rb'
29     - 'app/mailers/notifier.rb'
30     - 'app/models/client_application.rb'
31     - 'lib/nominatim.rb'
32     - 'lib/osm.rb'
33     - 'script/deliver-message'
34
35 # Offense count: 4
36 # Configuration parameters: AllowComments.
37 Lint/SuppressedException:
38   Exclude:
39     - 'app/controllers/api/amf_controller.rb'
40     - 'app/controllers/users_controller.rb'
41     - 'app/controllers/site_controller.rb'
42
43 # Offense count: 701
44 Metrics/AbcSize:
45   Max: 189
46
47 # Offense count: 39
48 # Configuration parameters: CountComments, ExcludedMethods.
49 # ExcludedMethods: refine
50 Metrics/BlockLength:
51   Max: 71
52
53 # Offense count: 15
54 # Configuration parameters: CountBlocks.
55 Metrics/BlockNesting:
56   Max: 5
57
58 # Offense count: 25
59 # Configuration parameters: CountComments.
60 Metrics/ClassLength:
61   Max: 645
62
63 # Offense count: 74
64 Metrics/CyclomaticComplexity:
65   Max: 22
66
67 # Offense count: 722
68 # Configuration parameters: CountComments, ExcludedMethods.
69 Metrics/MethodLength:
70   Max: 179
71
72 # Offense count: 2
73 # Configuration parameters: CountComments.
74 Metrics/ModuleLength:
75   Max: 117
76
77 # Offense count: 4
78 # Configuration parameters: CountKeywordArgs.
79 Metrics/ParameterLists:
80   Max: 9
81
82 # Offense count: 72
83 Metrics/PerceivedComplexity:
84   Max: 25
85
86 # Offense count: 6
87 Naming/AccessorMethodName:
88   Exclude:
89     - 'app/controllers/application_controller.rb'
90     - 'app/helpers/title_helper.rb'
91     - 'app/models/old_way.rb'
92     - 'lib/osm.rb'
93     - 'lib/potlatch.rb'
94
95 # Offense count: 8
96 # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
97 # NamePrefix: is_, has_, have_
98 # NamePrefixBlacklist: is_, has_, have_
99 # NameWhitelist: is_a?
100 # MethodDefinitionMacros: define_method, define_singleton_method
101 Naming/PredicateName:
102   Exclude:
103     - 'spec/**/*'
104     - 'app/models/changeset.rb'
105     - 'app/models/old_node.rb'
106     - 'app/models/old_relation.rb'
107     - 'app/models/old_way.rb'
108     - 'app/models/user.rb'
109     - 'lib/classic_pagination/pagination.rb'
110
111 # Offense count: 5
112 # Cop supports --auto-correct.
113 Performance/RegexpMatch:
114   Exclude:
115     - 'app/helpers/browse_tags_helper.rb'
116     - 'app/validators/characters_validator.rb'
117     - 'app/validators/whitespace_validator.rb'
118
119 # Offense count: 6
120 # Configuration parameters: Database, Include.
121 # SupportedDatabases: mysql, postgresql
122 # Include: db/migrate/*.rb
123 Rails/BulkChangeTable:
124   Exclude:
125     - 'db/migrate/20111116184519_update_oauth.rb'
126     - 'db/migrate/20120208122334_merge_acl_address_and_mask.rb'
127     - 'db/migrate/20120208194454_add_domain_to_acl.rb'
128     - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
129
130 # Offense count: 2
131 # Configuration parameters: Include.
132 # Include: app/models/**/*.rb
133 Rails/HasAndBelongsToMany:
134   Exclude:
135     - 'app/models/changeset.rb'
136     - 'app/models/user.rb'
137
138 # Offense count: 11
139 # Configuration parameters: Include.
140 # Include: app/helpers/**/*.rb
141 Rails/HelperInstanceVariable:
142   Exclude:
143     - 'app/helpers/application_helper.rb'
144     - 'app/helpers/title_helper.rb'
145     - 'app/helpers/trace_helper.rb'
146
147 # Offense count: 5
148 # Configuration parameters: Include.
149 # Include: db/migrate/*.rb
150 Rails/NotNullColumn:
151   Exclude:
152     - 'db/migrate/002_cleanup_osm_db.rb'
153     - 'db/migrate/020_populate_node_tags_and_remove.rb'
154     - 'db/migrate/021_move_to_innodb.rb'
155     - 'db/migrate/025_add_end_time_to_changesets.rb'
156     - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
157
158 # Offense count: 18
159 Rails/OutputSafety:
160   Exclude:
161     - 'app/controllers/users_controller.rb'
162     - 'app/helpers/application_helper.rb'
163     - 'app/helpers/changesets_helper.rb'
164     - 'app/helpers/geocoder_helper.rb'
165     - 'app/helpers/note_helper.rb'
166     - 'app/helpers/open_graph_helper.rb'
167     - 'app/helpers/user_blocks_helper.rb'
168     - 'lib/rich_text.rb'
169     - 'test/helpers/application_helper_test.rb'
170
171 # Offense count: 94
172 # Cop supports --auto-correct.
173 # Configuration parameters: EnforcedStyle.
174 # SupportedStyles: strict, flexible
175 Rails/TimeZone:
176   Enabled: false
177
178 # Offense count: 1
179 # Configuration parameters: AllowedChars.
180 Style/AsciiComments:
181   Exclude:
182     - 'test/models/message_test.rb'
183
184 # Offense count: 27
185 # Configuration parameters: EnforcedStyle.
186 # SupportedStyles: annotated, template, unannotated
187 Style/FormatStringToken:
188   Exclude:
189     - 'app/models/concerns/geo_record.rb'
190     - 'app/views/api/map/_bounds.xml.builder'
191     - 'lib/bounding_box.rb'
192     - 'test/controllers/api/map_controller_test.rb'
193     - 'test/controllers/api/relations_controller_test.rb'
194     - 'test/controllers/api/ways_controller_test.rb'
195     - 'test/lib/bounding_box_test.rb'
196
197 # Offense count: 539
198 # Cop supports --auto-correct.
199 # Configuration parameters: EnforcedStyle.
200 # SupportedStyles: always, never
201 Style/FrozenStringLiteralComment:
202   Enabled: false
203
204 # Offense count: 2
205 # Cop supports --auto-correct.
206 Style/IfUnlessModifier:
207   Exclude:
208     - 'app/controllers/api/ways_controller.rb'
209
210 # Offense count: 70
211 # Cop supports --auto-correct.
212 # Configuration parameters: Strict.
213 Style/NumericLiterals:
214   MinDigits: 11