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