docbrown/.rubocop_todo.yml
rhymes 864b13b9ab
[deploy] Rubocop: fix Rails/HasManyOrHasOneDependent for Ahoy::Visit and Badge (#9565)
* Fix Layout/EmptyLines

* Fix Rails/HasManyOrHasOneDependent for Ahoy::Visit

* Fix Rails/HasManyOrHasOneDependent for Badge
2020-07-31 11:43:50 -04:00

45 lines
1.4 KiB
YAML

# https://github.com/openstreetmap/openstreetmap-website/issues/2472
require:
- rubocop-performance
- rubocop-rails
- rubocop-rspec
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2020-07-29 11:14:03 UTC using RuboCop version 0.88.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 6
Performance/OpenStruct:
Exclude:
- 'spec/models/github_repo_spec.rb'
- 'spec/requests/github_repos_spec.rb'
# Offense count: 28
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/HasManyOrHasOneDependent:
Exclude:
- 'app/models/article.rb'
- 'app/models/broadcast.rb'
- 'app/models/collection.rb'
- 'app/models/concerns/user_subscription_sourceable.rb'
- 'app/models/display_ad.rb'
- 'app/models/html_variant.rb'
- 'app/models/listing_category.rb'
- 'app/models/organization.rb'
- 'app/models/podcast.rb'
- 'app/models/podcast_episode.rb'
- 'app/models/poll.rb'
- 'app/models/poll_option.rb'
- 'app/models/user.rb'
# Offense count: 4
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/UniqueValidationWithoutIndex:
Exclude:
- 'app/models/article.rb'