]> 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 2015-08-18 20:27:49 +0100 using RuboCop version 0.33.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: 34
10 Lint/AmbiguousOperator:
11   Exclude:
12     - 'test/controllers/amf_controller_test.rb'
13     - 'test/controllers/changeset_controller_test.rb'
14     - 'test/lib/bounding_box_test.rb'
15     - 'test/lib/country_test.rb'
16
17 # Offense count: 115
18 Lint/AmbiguousRegexpLiteral:
19   Enabled: false
20
21 # Offense count: 29
22 # Configuration parameters: AllowSafeAssignment.
23 Lint/AssignmentInCondition:
24   Exclude:
25     - 'app/controllers/application_controller.rb'
26     - 'app/controllers/geocoder_controller.rb'
27     - 'app/controllers/notes_controller.rb'
28     - 'app/controllers/trace_controller.rb'
29     - 'app/controllers/user_controller.rb'
30     - 'app/controllers/user_preference_controller.rb'
31     - 'app/helpers/application_helper.rb'
32     - 'app/helpers/browse_helper.rb'
33     - 'app/models/client_application.rb'
34     - 'app/models/notifier.rb'
35     - 'lib/nominatim.rb'
36     - 'lib/osm.rb'
37     - 'script/deliver-message'
38
39 # Offense count: 3
40 Lint/FormatParameterMismatch:
41   Exclude:
42     - 'app/controllers/swf_controller.rb'
43
44 # Offense count: 5
45 Lint/HandleExceptions:
46   Exclude:
47     - 'app/controllers/amf_controller.rb'
48     - 'app/controllers/user_controller.rb'
49     - 'config/initializers/session.rb'
50
51 # Offense count: 8
52 Lint/ParenthesesAsGroupedExpression:
53   Exclude:
54     - 'test/controllers/amf_controller_test.rb'
55     - 'test/lib/bounding_box_test.rb'
56     - 'test/models/user_preference_test.rb'
57
58 # Offense count: 671
59 Metrics/AbcSize:
60   Max: 277
61
62 # Offense count: 12
63 Metrics/BlockNesting:
64   Max: 5
65
66 # Offense count: 62
67 # Configuration parameters: CountComments.
68 Metrics/ClassLength:
69   Max: 1654
70
71 # Offense count: 67
72 Metrics/CyclomaticComplexity:
73   Max: 20
74
75 # Offense count: 2535
76 # Configuration parameters: AllowURI, URISchemes.
77 Metrics/LineLength:
78   Max: 962
79
80 # Offense count: 628
81 # Configuration parameters: CountComments.
82 Metrics/MethodLength:
83   Max: 179
84
85 # Offense count: 1
86 # Configuration parameters: CountComments.
87 Metrics/ModuleLength:
88   Max: 131
89
90 # Offense count: 4
91 # Configuration parameters: CountKeywordArgs.
92 Metrics/ParameterLists:
93   Max: 9
94
95 # Offense count: 69
96 Metrics/PerceivedComplexity:
97   Max: 23
98
99 # Offense count: 2
100 # Configuration parameters: Include.
101 Rails/HasAndBelongsToMany:
102   Exclude:
103     - 'app/models/changeset.rb'
104     - 'app/models/user.rb'
105
106 # Offense count: 66
107 # Configuration parameters: EnforcedStyle, SupportedStyles.
108 Rails/TimeZone:
109   Enabled: false
110
111 # Offense count: 5
112 Style/AccessorMethodName:
113   Exclude:
114     - 'app/controllers/application_controller.rb'
115     - 'app/helpers/title_helper.rb'
116     - 'app/models/old_way.rb'
117     - 'lib/osm.rb'
118     - 'lib/potlatch.rb'
119
120 # Offense count: 1
121 Style/AsciiComments:
122   Exclude:
123     - 'test/models/message_test.rb'
124
125 # Offense count: 310
126 Style/Documentation:
127   Enabled: false
128
129 # Offense count: 38
130 # Configuration parameters: MinBodyLength.
131 Style/GuardClause:
132   Exclude:
133     - 'app/controllers/application_controller.rb'
134     - 'app/controllers/diary_entry_controller.rb'
135     - 'app/controllers/message_controller.rb'
136     - 'app/controllers/notes_controller.rb'
137     - 'app/controllers/site_controller.rb'
138     - 'app/controllers/user_blocks_controller.rb'
139     - 'app/controllers/user_controller.rb'
140     - 'app/controllers/user_roles_controller.rb'
141     - 'app/helpers/application_helper.rb'
142     - 'app/models/changeset.rb'
143     - 'app/models/user.rb'
144     - 'lib/diff_reader.rb'
145     - 'lib/object_metadata.rb'
146
147 # Offense count: 60
148 # Cop supports --auto-correct.
149 Style/LineEndConcatenation:
150   Exclude:
151     - 'db/migrate/008_remove_segments.rb'
152     - 'db/migrate/020_populate_node_tags_and_remove.rb'
153     - 'db/migrate/023_add_changesets.rb'
154     - 'lib/bounding_box.rb'
155     - 'lib/diff_reader.rb'
156     - 'lib/osm.rb'
157     - 'test/controllers/changeset_controller_test.rb'
158     - 'test/controllers/node_controller_test.rb'
159     - 'test/controllers/relation_controller_test.rb'
160     - 'test/controllers/way_controller_test.rb'
161
162 # Offense count: 69
163 # Cop supports --auto-correct.
164 Style/NumericLiterals:
165   MinDigits: 11
166
167 # Offense count: 42
168 # Cop supports --auto-correct.
169 Style/PerlBackrefs:
170   Exclude:
171     - 'app/controllers/amf_controller.rb'
172     - 'app/controllers/application_controller.rb'
173     - 'app/helpers/browse_helper.rb'
174     - 'config/initializers/paperclip.rb'
175     - 'lib/id.rb'
176     - 'lib/potlatch.rb'
177     - 'test/lib/i18n_test.rb'
178
179 # Offense count: 8
180 # Configuration parameters: NamePrefix, NamePrefixBlacklist.
181 Style/PredicateName:
182   Exclude:
183     - 'app/models/changeset.rb'
184     - 'app/models/old_node.rb'
185     - 'app/models/old_relation.rb'
186     - 'app/models/old_way.rb'
187     - 'app/models/user.rb'
188     - 'lib/classic_pagination/pagination.rb'
189
190 # Offense count: 97
191 # Configuration parameters: EnforcedStyle, SupportedStyles.
192 Style/RaiseArgs:
193   Enabled: false
194
195 # Offense count: 2
196 Style/RescueModifier:
197   Exclude:
198     - 'app/helpers/browse_helper.rb'
199
200 # Offense count: 8
201 # Cop supports --auto-correct.
202 # Configuration parameters: EnforcedStyle, SupportedStyles.
203 Style/StringLiteralsInInterpolation:
204   Enabled: false