]> git.openstreetmap.org Git - rails.git/blob - .rubocop_todo.yml
Add links to new approved OSMF privacy policy and some rewording.
[rails.git] / .rubocop_todo.yml
1 # This configuration was generated by
2 # `rubocop --auto-gen-config`
3 # on 2016-09-07 11:03:27 +0100 using RuboCop version 0.41.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: 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: 117
18 Lint/AmbiguousRegexpLiteral:
19   Enabled: false
20
21 # Offense count: 30
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: 5
40 Lint/HandleExceptions:
41   Exclude:
42     - 'app/controllers/amf_controller.rb'
43     - 'app/controllers/user_controller.rb'
44     - 'config/initializers/session.rb'
45
46 # Offense count: 2
47 Lint/ShadowingOuterLocalVariable:
48   Exclude:
49     - 'app/views/changeset/list.atom.builder'
50
51 # Offense count: 626
52 Metrics/AbcSize:
53   Max: 277
54
55 # Offense count: 12
56 Metrics/BlockNesting:
57   Max: 5
58
59 # Offense count: 62
60 # Configuration parameters: CountComments.
61 Metrics/ClassLength:
62   Max: 1650
63
64 # Offense count: 68
65 Metrics/CyclomaticComplexity:
66   Max: 20
67
68 # Offense count: 2561
69 # Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
70 # URISchemes: http, https
71 Metrics/LineLength:
72   Max: 962
73
74 # Offense count: 604
75 # Configuration parameters: CountComments.
76 Metrics/MethodLength:
77   Max: 179
78
79 # Offense count: 1
80 # Configuration parameters: CountComments.
81 Metrics/ModuleLength:
82   Max: 139
83
84 # Offense count: 4
85 # Configuration parameters: CountKeywordArgs.
86 Metrics/ParameterLists:
87   Max: 9
88
89 # Offense count: 70
90 Metrics/PerceivedComplexity:
91   Max: 23
92
93 # Offense count: 2
94 # Configuration parameters: Include.
95 # Include: app/**/*.rb, config/**/*.rb, lib/**/*.rb
96 Rails/Exit:
97   Exclude:
98     - 'lib/**/*.rake'
99     - 'lib/daemons/gpx_import.rb'
100
101 # Offense count: 2
102 # Configuration parameters: Include.
103 # Include: app/models/**/*.rb
104 Rails/HasAndBelongsToMany:
105   Exclude:
106     - 'app/models/changeset.rb'
107     - 'app/models/user.rb'
108
109 # Offense count: 17
110 Rails/OutputSafety:
111   Exclude:
112     - 'app/controllers/user_controller.rb'
113     - 'app/helpers/application_helper.rb'
114     - 'app/helpers/changeset_helper.rb'
115     - 'app/helpers/geocoder_helper.rb'
116     - 'app/helpers/note_helper.rb'
117     - 'app/helpers/open_graph_helper.rb'
118     - 'app/helpers/user_blocks_helper.rb'
119     - 'app/helpers/user_roles_helper.rb'
120     - 'lib/rich_text.rb'
121     - 'test/helpers/application_helper_test.rb'
122
123 # Offense count: 65
124 # Configuration parameters: EnforcedStyle, SupportedStyles.
125 # SupportedStyles: strict, flexible
126 Rails/TimeZone:
127   Enabled: false
128
129 # Offense count: 5
130 Style/AccessorMethodName:
131   Exclude:
132     - 'app/controllers/application_controller.rb'
133     - 'app/helpers/title_helper.rb'
134     - 'app/models/old_way.rb'
135     - 'lib/osm.rb'
136     - 'lib/potlatch.rb'
137
138 # Offense count: 1
139 Style/AsciiComments:
140   Exclude:
141     - 'test/models/message_test.rb'
142
143 # Offense count: 218
144 Style/Documentation:
145   Enabled: false
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: 8
168 # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
169 # NamePrefix: is_, has_, have_
170 # NamePrefixBlacklist: is_, has_, have_
171 # NameWhitelist: is_a?
172 Style/PredicateName:
173   Exclude:
174     - 'spec/**/*'
175     - 'app/models/changeset.rb'
176     - 'app/models/old_node.rb'
177     - 'app/models/old_relation.rb'
178     - 'app/models/old_way.rb'
179     - 'app/models/user.rb'
180     - 'lib/classic_pagination/pagination.rb'
181
182 # Offense count: 97
183 # Cop supports --auto-correct.
184 # Configuration parameters: EnforcedStyle, SupportedStyles.
185 # SupportedStyles: compact, exploded
186 Style/RaiseArgs:
187   Enabled: false
188
189 # Offense count: 2
190 # Cop supports --auto-correct.
191 Style/RescueModifier:
192   Exclude:
193     - 'app/helpers/browse_helper.rb'