]> git.openstreetmap.org Git - rails.git/blob - .rubocop_todo.yml
f3151d2ff8824b64603bc631fa12eabb8c9fd5be
[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: 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: 32
18 # Configuration parameters: AllowSafeAssignment.
19 Lint/AssignmentInCondition:
20   Exclude:
21     - 'app/controllers/application_controller.rb'
22     - 'app/controllers/geocoder_controller.rb'
23     - 'app/controllers/notes_controller.rb'
24     - 'app/controllers/traces_controller.rb'
25     - 'app/controllers/user_controller.rb'
26     - 'app/controllers/user_preferences_controller.rb'
27     - 'app/helpers/application_helper.rb'
28     - 'app/helpers/browse_helper.rb'
29     - 'app/models/client_application.rb'
30     - 'app/models/notifier.rb'
31     - 'lib/nominatim.rb'
32     - 'lib/osm.rb'
33     - 'script/deliver-message'
34
35 # Offense count: 4
36 Lint/HandleExceptions:
37   Exclude:
38     - 'app/controllers/amf_controller.rb'
39     - 'app/controllers/user_controller.rb'
40
41 # Offense count: 2
42 Lint/ShadowingOuterLocalVariable:
43   Exclude:
44     - 'app/views/changeset/list.atom.builder'
45
46 # Offense count: 690
47 Metrics/AbcSize:
48   Max: 280
49
50 # Offense count: 41
51 # Configuration parameters: CountComments, ExcludedMethods.
52 Metrics/BlockLength:
53   Max: 261
54
55 # Offense count: 11
56 # Configuration parameters: CountBlocks.
57 Metrics/BlockNesting:
58   Max: 5
59
60 # Offense count: 63
61 # Configuration parameters: CountComments.
62 Metrics/ClassLength:
63   Max: 1795
64
65 # Offense count: 72
66 Metrics/CyclomaticComplexity:
67   Max: 20
68
69 # Offense count: 688
70 # Configuration parameters: CountComments.
71 Metrics/MethodLength:
72   Max: 179
73
74 # Offense count: 2
75 # Configuration parameters: CountComments.
76 Metrics/ModuleLength:
77   Max: 135
78
79 # Offense count: 4
80 # Configuration parameters: CountKeywordArgs.
81 Metrics/ParameterLists:
82   Max: 9
83
84 # Offense count: 71
85 Metrics/PerceivedComplexity:
86   Max: 23
87
88 # Offense count: 6
89 Naming/AccessorMethodName:
90   Exclude:
91     - 'app/controllers/application_controller.rb'
92     - 'app/helpers/title_helper.rb'
93     - 'app/models/old_way.rb'
94     - 'lib/osm.rb'
95     - 'lib/potlatch.rb'
96
97 # Offense count: 8
98 # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
99 # NamePrefix: is_, has_, have_
100 # NamePrefixBlacklist: is_, has_, have_
101 # NameWhitelist: is_a?
102 # MethodDefinitionMacros: define_method, define_singleton_method
103 Naming/PredicateName:
104   Exclude:
105     - 'spec/**/*'
106     - 'app/models/changeset.rb'
107     - 'app/models/old_node.rb'
108     - 'app/models/old_relation.rb'
109     - 'app/models/old_way.rb'
110     - 'app/models/user.rb'
111     - 'lib/classic_pagination/pagination.rb'
112
113 # Offense count: 6
114 # Configuration parameters: Database, Include.
115 # SupportedDatabases: mysql, postgresql
116 # Include: db/migrate/*.rb
117 Rails/BulkChangeTable:
118   Exclude:
119     - 'db/migrate/20111116184519_update_oauth.rb'
120     - 'db/migrate/20120208122334_merge_acl_address_and_mask.rb'
121     - 'db/migrate/20120208194454_add_domain_to_acl.rb'
122     - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
123
124 # Offense count: 2
125 # Configuration parameters: Include.
126 # Include: app/**/*.rb, config/**/*.rb, lib/**/*.rb
127 Rails/Exit:
128   Exclude:
129     - 'lib/**/*.rake'
130     - 'lib/daemons/gpx_import.rb'
131
132 # Offense count: 2
133 # Configuration parameters: Include.
134 # Include: app/models/**/*.rb
135 Rails/HasAndBelongsToMany:
136   Exclude:
137     - 'app/models/changeset.rb'
138     - 'app/models/user.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: 20
152 Rails/OutputSafety:
153   Exclude:
154     - 'app/controllers/user_controller.rb'
155     - 'app/helpers/application_helper.rb'
156     - 'app/helpers/changeset_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     - 'app/helpers/user_roles_helper.rb'
162     - 'lib/rich_text.rb'
163     - 'test/helpers/application_helper_test.rb'
164
165 # Offense count: 86
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: 229
178 Style/Documentation:
179   Enabled: false
180
181 # Offense count: 2
182 # Cop supports --auto-correct.
183 Style/IfUnlessModifier:
184   Exclude:
185     - 'app/controllers/way_controller.rb'
186
187 # Offense count: 70
188 # Cop supports --auto-correct.
189 # Configuration parameters: Strict.
190 Style/NumericLiterals:
191   MinDigits: 11
192
193 # Offense count: 3064
194 # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
195 # URISchemes: http, https
196 Metrics/LineLength:
197   Max: 1073