|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
# This configuration was generated by
|
|
|
|
|
# `rubocop --auto-gen-config --auto-gen-only-exclude --no-exclude-limit --no-offense-counts --no-auto-gen-timestamp`
|
|
|
|
|
# using RuboCop version 1.56.1.
|
|
|
|
|
# using RuboCop version 1.57.1.
|
|
|
|
|
# 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
|
|
|
|
@ -215,19 +215,6 @@ Rails/ApplicationController:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'app/controllers/health_controller.rb'
|
|
|
|
|
|
|
|
|
|
# Configuration parameters: Include.
|
|
|
|
|
# Include: db/**/*.rb
|
|
|
|
|
Rails/CreateTableWithTimestamps:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'db/migrate/20170508230434_create_conversation_mutes.rb'
|
|
|
|
|
- 'db/migrate/20170823162448_create_status_pins.rb'
|
|
|
|
|
- 'db/migrate/20171116161857_create_list_accounts.rb'
|
|
|
|
|
- 'db/migrate/20180929222014_create_account_conversations.rb'
|
|
|
|
|
- 'db/migrate/20181007025445_create_pghero_space_stats.rb'
|
|
|
|
|
- 'db/migrate/20190103124649_create_scheduled_statuses.rb'
|
|
|
|
|
- 'db/migrate/20220824233535_create_status_trends.rb'
|
|
|
|
|
- 'db/migrate/20221006061337_create_preview_card_trends.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
|
# Configuration parameters: Severity.
|
|
|
|
|
Rails/DuplicateAssociation:
|
|
|
|
@ -269,7 +256,6 @@ Rails/LexicallyScopedActionFilter:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'app/controllers/auth/passwords_controller.rb'
|
|
|
|
|
- 'app/controllers/auth/registrations_controller.rb'
|
|
|
|
|
- 'app/controllers/auth/sessions_controller.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
|
Rails/NegateInclude:
|
|
|
|
@ -285,7 +271,6 @@ Rails/NegateInclude:
|
|
|
|
|
- 'app/models/custom_filter.rb'
|
|
|
|
|
- 'app/services/activitypub/process_status_update_service.rb'
|
|
|
|
|
- 'app/services/fetch_link_card_service.rb'
|
|
|
|
|
- 'app/services/search_service.rb'
|
|
|
|
|
- 'app/workers/web/push_notification_worker.rb'
|
|
|
|
|
- 'lib/paperclip/color_extractor.rb'
|
|
|
|
|
|
|
|
|
@ -305,24 +290,6 @@ Rails/RakeEnvironment:
|
|
|
|
|
- 'lib/tasks/repo.rake'
|
|
|
|
|
- 'lib/tasks/statistics.rake'
|
|
|
|
|
|
|
|
|
|
# Configuration parameters: Include.
|
|
|
|
|
# Include: db/**/*.rb
|
|
|
|
|
Rails/ReversibleMigration:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'db/migrate/20160223164502_make_uris_nullable_in_statuses.rb'
|
|
|
|
|
- 'db/migrate/20161122163057_remove_unneeded_indexes.rb'
|
|
|
|
|
- 'db/migrate/20170205175257_remove_devices.rb'
|
|
|
|
|
- 'db/migrate/20170322143850_change_primary_key_to_bigint_on_statuses.rb'
|
|
|
|
|
- 'db/migrate/20170520145338_change_language_filter_to_opt_out.rb'
|
|
|
|
|
- 'db/migrate/20170609145826_remove_default_language_from_statuses.rb'
|
|
|
|
|
- 'db/migrate/20170711225116_fix_null_booleans.rb'
|
|
|
|
|
- 'db/migrate/20171129172043_add_index_on_stream_entries.rb'
|
|
|
|
|
- 'db/migrate/20171212195226_remove_duplicate_indexes_in_lists.rb'
|
|
|
|
|
- 'db/migrate/20171226094803_more_faster_index_on_notifications.rb'
|
|
|
|
|
- 'db/migrate/20180106000232_add_index_on_statuses_for_api_v1_accounts_account_id_statuses.rb'
|
|
|
|
|
- 'db/migrate/20180617162849_remove_unused_indexes.rb'
|
|
|
|
|
- 'db/migrate/20220827195229_change_canonical_email_blocks_nullable.rb'
|
|
|
|
|
|
|
|
|
|
# Configuration parameters: ForbiddenMethods, AllowedMethods.
|
|
|
|
|
# ForbiddenMethods: decrement!, decrement_counter, increment!, increment_counter, insert, insert!, insert_all, insert_all!, toggle!, touch, touch_all, update_all, update_attribute, update_column, update_columns, update_counters, upsert, upsert_all
|
|
|
|
|
Rails/SkipsModelValidations:
|
|
|
|
@ -375,30 +342,6 @@ Rails/SkipsModelValidations:
|
|
|
|
|
- 'spec/services/follow_service_spec.rb'
|
|
|
|
|
- 'spec/services/update_account_service_spec.rb'
|
|
|
|
|
|
|
|
|
|
# Configuration parameters: Include.
|
|
|
|
|
# Include: db/**/*.rb
|
|
|
|
|
Rails/ThreeStateBooleanColumn:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'db/migrate/20160325130944_add_admin_to_users.rb'
|
|
|
|
|
- 'db/migrate/20161123093447_add_sensitive_to_statuses.rb'
|
|
|
|
|
- 'db/migrate/20170123203248_add_reject_media_to_domain_blocks.rb'
|
|
|
|
|
- 'db/migrate/20170127165745_add_devise_two_factor_to_users.rb'
|
|
|
|
|
- 'db/migrate/20170209184350_add_reply_to_statuses.rb'
|
|
|
|
|
- 'db/migrate/20170330163835_create_imports.rb'
|
|
|
|
|
- 'db/migrate/20170905165803_add_local_to_statuses.rb'
|
|
|
|
|
- 'db/migrate/20181203021853_add_discoverable_to_accounts.rb'
|
|
|
|
|
- 'db/migrate/20190509164208_add_by_moderator_to_tombstone.rb'
|
|
|
|
|
- 'db/migrate/20190805123746_add_capabilities_to_tags.rb'
|
|
|
|
|
- 'db/migrate/20191212163405_add_hide_collections_to_accounts.rb'
|
|
|
|
|
- 'db/migrate/20200309150742_add_forwarded_to_reports.rb'
|
|
|
|
|
- 'db/migrate/20210609202149_create_login_activities.rb'
|
|
|
|
|
- 'db/migrate/20210621221010_add_skip_sign_in_token_to_users.rb'
|
|
|
|
|
- 'db/migrate/20211031031021_create_preview_card_providers.rb'
|
|
|
|
|
- 'db/migrate/20211115032527_add_trendable_to_preview_cards.rb'
|
|
|
|
|
- 'db/migrate/20220202200743_add_trendable_to_accounts.rb'
|
|
|
|
|
- 'db/migrate/20220202200926_add_trendable_to_statuses.rb'
|
|
|
|
|
- 'db/migrate/20220303000827_add_ordered_media_attachment_ids_to_status_edits.rb'
|
|
|
|
|
|
|
|
|
|
# Configuration parameters: Include.
|
|
|
|
|
# Include: app/models/**/*.rb
|
|
|
|
|
Rails/UniqueValidationWithoutIndex:
|
|
|
|
@ -462,7 +405,7 @@ Style/CaseEquality:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'config/initializers/trusted_proxies.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
|
|
|
# AllowedMethods: ==, equal?, eql?
|
|
|
|
|
Style/ClassEqualityComparison:
|
|
|
|
@ -670,7 +613,6 @@ Style/RedundantReturn:
|
|
|
|
|
Style/SafeNavigation:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'app/models/concerns/account_finder_concern.rb'
|
|
|
|
|
- 'app/models/status.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
|