]> git.openstreetmap.org Git - rails.git/blob - .rubocop_todo.yml
Localisation updates from https://translatewiki.net.
[rails.git] / .rubocop_todo.yml
1 # This configuration was generated by
2 # `rubocop --auto-gen-config`
3 # on 2018-09-19 14:24:02 +0100 using RuboCop version 0.58.2.
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: 32
10 # Configuration parameters: AllowSafeAssignment.
11 Lint/AssignmentInCondition:
12   Exclude:
13     - 'app/controllers/application_controller.rb'
14     - 'app/controllers/geocoder_controller.rb'
15     - 'app/controllers/notes_controller.rb'
16     - 'app/controllers/api/traces_controller.rb'
17     - 'app/controllers/traces_controller.rb'
18     - 'app/controllers/users_controller.rb'
19     - 'app/controllers/api/user_preferences_controller.rb'
20     - 'app/helpers/application_helper.rb'
21     - 'app/helpers/browse_helper.rb'
22     - 'app/helpers/browse_tags_helper.rb'
23     - 'app/models/client_application.rb'
24     - 'app/mailers/notifier.rb'
25     - 'lib/nominatim.rb'
26     - 'lib/osm.rb'
27     - 'script/deliver-message'
28
29 # Offense count: 4
30 Lint/HandleExceptions:
31   Exclude:
32     - 'app/controllers/api/amf_controller.rb'
33     - 'app/controllers/users_controller.rb'
34
35 # Offense count: 692
36 Metrics/AbcSize:
37   Max: 283
38
39 # Offense count: 40
40 # Configuration parameters: CountComments, ExcludedMethods.
41 # ExcludedMethods: refine
42 Metrics/BlockLength:
43   Max: 262
44
45 # Offense count: 11
46 # Configuration parameters: CountBlocks.
47 Metrics/BlockNesting:
48   Max: 5
49
50 # Offense count: 63
51 # Configuration parameters: CountComments.
52 Metrics/ClassLength:
53   Max: 1627
54
55 # Offense count: 72
56 Metrics/CyclomaticComplexity:
57   Max: 23
58
59 # Offense count: 691
60 # Configuration parameters: CountComments.
61 Metrics/MethodLength:
62   Max: 179
63
64 # Offense count: 2
65 # Configuration parameters: CountComments.
66 Metrics/ModuleLength:
67   Max: 135
68
69 # Offense count: 4
70 # Configuration parameters: CountKeywordArgs.
71 Metrics/ParameterLists:
72   Max: 9
73
74 # Offense count: 72
75 Metrics/PerceivedComplexity:
76   Max: 25
77
78 # Offense count: 6
79 Naming/AccessorMethodName:
80   Exclude:
81     - 'app/controllers/application_controller.rb'
82     - 'app/helpers/title_helper.rb'
83     - 'app/models/old_way.rb'
84     - 'lib/osm.rb'
85     - 'lib/potlatch.rb'
86
87 # Offense count: 8
88 # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
89 # NamePrefix: is_, has_, have_
90 # NamePrefixBlacklist: is_, has_, have_
91 # NameWhitelist: is_a?
92 # MethodDefinitionMacros: define_method, define_singleton_method
93 Naming/PredicateName:
94   Exclude:
95     - 'spec/**/*'
96     - 'app/models/changeset.rb'
97     - 'app/models/old_node.rb'
98     - 'app/models/old_relation.rb'
99     - 'app/models/old_way.rb'
100     - 'app/models/user.rb'
101     - 'lib/classic_pagination/pagination.rb'
102
103 # Disabled pending merge of fix for:
104 # https://github.com/rubocop-hq/rubocop/issues/6943
105 Rails/ActiveRecordOverride:
106   Enabled: false
107
108 # Offense count: 6
109 # Configuration parameters: Database, Include.
110 # SupportedDatabases: mysql, postgresql
111 # Include: db/migrate/*.rb
112 Rails/BulkChangeTable:
113   Exclude:
114     - 'db/migrate/20111116184519_update_oauth.rb'
115     - 'db/migrate/20120208122334_merge_acl_address_and_mask.rb'
116     - 'db/migrate/20120208194454_add_domain_to_acl.rb'
117     - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
118
119 # Offense count: 2
120 # Configuration parameters: Include.
121 # Include: app/**/*.rb, config/**/*.rb, lib/**/*.rb
122 Rails/Exit:
123   Exclude:
124     - 'lib/**/*.rake'
125     - 'lib/daemons/gpx_import.rb'
126
127 # Offense count: 2
128 # Configuration parameters: Include.
129 # Include: app/models/**/*.rb
130 Rails/HasAndBelongsToMany:
131   Exclude:
132     - 'app/models/changeset.rb'
133     - 'app/models/user.rb'
134
135 # Offense count: 5
136 # Configuration parameters: Include.
137 # Include: db/migrate/*.rb
138 Rails/NotNullColumn:
139   Exclude:
140     - 'db/migrate/002_cleanup_osm_db.rb'
141     - 'db/migrate/020_populate_node_tags_and_remove.rb'
142     - 'db/migrate/021_move_to_innodb.rb'
143     - 'db/migrate/025_add_end_time_to_changesets.rb'
144     - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
145
146 # Offense count: 20
147 Rails/OutputSafety:
148   Exclude:
149     - 'app/controllers/users_controller.rb'
150     - 'app/helpers/application_helper.rb'
151     - 'app/helpers/changesets_helper.rb'
152     - 'app/helpers/geocoder_helper.rb'
153     - 'app/helpers/note_helper.rb'
154     - 'app/helpers/open_graph_helper.rb'
155     - 'app/helpers/user_blocks_helper.rb'
156     - 'app/helpers/user_roles_helper.rb'
157     - 'lib/rich_text.rb'
158     - 'test/helpers/application_helper_test.rb'
159
160 # Offense count: 86
161 # Configuration parameters: EnforcedStyle.
162 # SupportedStyles: strict, flexible
163 Rails/TimeZone:
164   Enabled: false
165
166 # Offense count: 1
167 # Configuration parameters: AllowedChars.
168 Style/AsciiComments:
169   Exclude:
170     - 'test/models/message_test.rb'
171
172 # Offense count: 230
173 Style/Documentation:
174   Enabled: false
175
176 # Offense count: 462
177 # Cop supports --auto-correct.
178 # Configuration parameters: EnforcedStyle.
179 # SupportedStyles: when_needed, always, never
180 Style/FrozenStringLiteralComment:
181   Enabled: false
182
183 # Offense count: 2
184 # Cop supports --auto-correct.
185 Style/IfUnlessModifier:
186   Exclude:
187     - 'app/controllers/api/ways_controller.rb'
188
189 # Offense count: 70
190 # Cop supports --auto-correct.
191 # Configuration parameters: Strict.
192 Style/NumericLiterals:
193   MinDigits: 11
194
195 # Offense count: 3080
196 # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
197 # URISchemes: http, https
198 Metrics/LineLength:
199   Max: 1073