1 # This configuration was generated by
 
   2 # `rubocop --auto-gen-config`
 
   3 # on 2024-08-27 18:01:13 UTC using RuboCop version 1.65.1.
 
   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.
 
  10 # Configuration parameters: Include, MaxAmount.
 
  11 # Include: **/*_spec.rb, **/spec/**/*, **/test/**/*, **/features/support/factories/**/*.rb
 
  12 FactoryBot/ExcessiveCreateList:
 
  14     - 'test/controllers/api/changeset_comments_controller_test.rb'
 
  15     - 'test/controllers/api/messages/inboxes_controller_test.rb'
 
  16     - 'test/controllers/api/messages/outboxes_controller_test.rb'
 
  17     - 'test/controllers/changesets_controller_test.rb'
 
  18     - 'test/controllers/diary_entries_controller_test.rb'
 
  19     - 'test/controllers/notes_controller_test.rb'
 
  20     - 'test/controllers/traces_controller_test.rb'
 
  21     - 'test/controllers/user_blocks_controller_test.rb'
 
  22     - 'test/controllers/users/issued_blocks_controller_test.rb'
 
  23     - 'test/controllers/users/received_blocks_controller_test.rb'
 
  24     - 'test/system/users_test.rb'
 
  27 # This cop supports safe autocorrection (--autocorrect).
 
  28 # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
 
  29 # URISchemes: http, https
 
  34 # This cop supports unsafe autocorrection (--autocorrect-all).
 
  35 # Configuration parameters: AllowSafeAssignment.
 
  36 Lint/AssignmentInCondition:
 
  38     - 'app/controllers/accounts_controller.rb'
 
  39     - 'app/controllers/api/traces_controller.rb'
 
  40     - 'app/controllers/api/user_preferences_controller.rb'
 
  41     - 'app/controllers/traces_controller.rb'
 
  42     - 'app/controllers/users_controller.rb'
 
  43     - 'app/helpers/application_helper.rb'
 
  44     - 'app/helpers/browse_tags_helper.rb'
 
  45     - 'app/mailers/user_mailer.rb'
 
  48     - 'script/deliver-message'
 
  51 # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
 
  56 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
 
  57 # AllowedMethods: refine
 
  62 # Configuration parameters: CountBlocks, CountModifierForms.
 
  67 # Configuration parameters: CountComments, CountAsOne.
 
  72 # Configuration parameters: AllowedMethods, AllowedPatterns.
 
  73 Metrics/CyclomaticComplexity:
 
  77 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
 
  82 # Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
 
  83 Metrics/ParameterLists:
 
  87 # Configuration parameters: AllowedMethods, AllowedPatterns.
 
  88 Metrics/PerceivedComplexity:
 
  92 # This cop supports safe autocorrection (--autocorrect).
 
  93 Minitest/EmptyLineBeforeAssertionMethods:
 
  97 Minitest/MultipleAssertions:
 
 101 # Configuration parameters: Include.
 
 102 # Include: app/models/**/*.rb
 
 103 Rails/HasAndBelongsToMany:
 
 105     - 'app/models/changeset.rb'
 
 106     - 'app/models/user.rb'
 
 109 # Configuration parameters: Include.
 
 110 # Include: app/helpers/**/*.rb
 
 111 Rails/HelperInstanceVariable:
 
 113     - 'app/helpers/title_helper.rb'
 
 116 # Configuration parameters: IgnoreScopes, Include.
 
 117 # Include: app/models/**/*.rb
 
 120     - 'app/models/changeset.rb'
 
 121     - 'app/models/diary_entry.rb'
 
 122     - 'app/models/issue.rb'
 
 123     - 'app/models/message.rb'
 
 124     - 'app/models/note.rb'
 
 125     - 'app/models/user.rb'
 
 128 # Configuration parameters: Include.
 
 129 # Include: app/controllers/**/*.rb, app/mailers/**/*.rb
 
 130 Rails/LexicallyScopedActionFilter:
 
 132     - 'app/controllers/oauth2_applications_controller.rb'
 
 135 # Configuration parameters: Database, Include.
 
 136 # SupportedDatabases: mysql
 
 137 # Include: db/**/*.rb
 
 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'
 
 149     - 'app/helpers/application_helper.rb'
 
 150     - 'app/helpers/user_mailer_helper.rb'
 
 152     - 'test/helpers/application_helper_test.rb'
 
 155 # Configuration parameters: Include.
 
 156 # Include: db/**/*.rb
 
 157 Rails/ThreeStateBooleanColumn:
 
 159     - 'db/migrate/001_create_osm_db.rb'
 
 160     - 'db/migrate/006_tile_nodes.rb'
 
 161     - 'db/migrate/007_add_relations.rb'
 
 162     - 'db/migrate/054_refactor_map_bug_tables.rb'
 
 163     - 'db/migrate/20140507110937_create_changeset_comments.rb'
 
 166 # This cop supports safe autocorrection (--autocorrect).
 
 169     - 'lib/tasks/eslint.rake'
 
 170     - 'lib/tasks/subscribe_diary_authors.rake'
 
 171     - 'lib/tasks/subscribe_old_changesets.rake'
 
 174 # This cop supports safe autocorrection (--autocorrect).
 
 175 # Configuration parameters: Strict, AllowedNumbers, AllowedPatterns.
 
 176 Style/NumericLiterals: