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