|
|
|
@ -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.54.2.
|
|
|
|
|
# using RuboCop version 1.56.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
|
|
|
|
@ -61,38 +61,8 @@ Lint/EmptyBlock:
|
|
|
|
|
- 'spec/fabricators/access_token_fabricator.rb'
|
|
|
|
|
- 'spec/fabricators/conversation_fabricator.rb'
|
|
|
|
|
- 'spec/fabricators/system_key_fabricator.rb'
|
|
|
|
|
- 'spec/helpers/admin/action_logs_helper_spec.rb'
|
|
|
|
|
- 'spec/lib/activitypub/adapter_spec.rb'
|
|
|
|
|
- 'spec/models/account_alias_spec.rb'
|
|
|
|
|
- 'spec/models/account_deletion_request_spec.rb'
|
|
|
|
|
- 'spec/models/account_moderation_note_spec.rb'
|
|
|
|
|
- 'spec/models/announcement_mute_spec.rb'
|
|
|
|
|
- 'spec/models/announcement_reaction_spec.rb'
|
|
|
|
|
- 'spec/models/announcement_spec.rb'
|
|
|
|
|
- 'spec/models/backup_spec.rb'
|
|
|
|
|
- 'spec/models/conversation_mute_spec.rb'
|
|
|
|
|
- 'spec/models/custom_filter_keyword_spec.rb'
|
|
|
|
|
- 'spec/models/custom_filter_spec.rb'
|
|
|
|
|
- 'spec/models/device_spec.rb'
|
|
|
|
|
- 'spec/models/encrypted_message_spec.rb'
|
|
|
|
|
- 'spec/models/featured_tag_spec.rb'
|
|
|
|
|
- 'spec/models/follow_recommendation_suppression_spec.rb'
|
|
|
|
|
- 'spec/models/list_account_spec.rb'
|
|
|
|
|
- 'spec/models/list_spec.rb'
|
|
|
|
|
- 'spec/models/login_activity_spec.rb'
|
|
|
|
|
- 'spec/models/mute_spec.rb'
|
|
|
|
|
- 'spec/models/preview_card_spec.rb'
|
|
|
|
|
- 'spec/models/preview_card_trend_spec.rb'
|
|
|
|
|
- 'spec/models/relay_spec.rb'
|
|
|
|
|
- 'spec/models/scheduled_status_spec.rb'
|
|
|
|
|
- 'spec/models/status_stat_spec.rb'
|
|
|
|
|
- 'spec/models/status_trend_spec.rb'
|
|
|
|
|
- 'spec/models/system_key_spec.rb'
|
|
|
|
|
- 'spec/models/tag_follow_spec.rb'
|
|
|
|
|
- 'spec/models/unavailable_domain_spec.rb'
|
|
|
|
|
- 'spec/models/user_invite_request_spec.rb'
|
|
|
|
|
- 'spec/models/user_role_spec.rb'
|
|
|
|
|
- 'spec/models/web/setting_spec.rb'
|
|
|
|
|
|
|
|
|
|
Lint/NonLocalExitFromIterator:
|
|
|
|
|
Exclude:
|
|
|
|
@ -135,7 +105,7 @@ Lint/UselessAssignment:
|
|
|
|
|
|
|
|
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
|
|
|
|
|
Metrics/AbcSize:
|
|
|
|
|
Max: 146
|
|
|
|
|
Max: 144
|
|
|
|
|
|
|
|
|
|
# Configuration parameters: CountBlocks, Max.
|
|
|
|
|
Metrics/BlockNesting:
|
|
|
|
@ -164,6 +134,19 @@ Naming/VariableNumber:
|
|
|
|
|
- 'spec/models/domain_block_spec.rb'
|
|
|
|
|
- 'spec/models/user_spec.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
|
# Configuration parameters: SafeMultiline.
|
|
|
|
|
Performance/DeletePrefix:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'app/models/featured_tag.rb'
|
|
|
|
|
|
|
|
|
|
Performance/MapMethodChain:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'app/models/feed.rb'
|
|
|
|
|
- 'lib/mastodon/cli/maintenance.rb'
|
|
|
|
|
- 'spec/services/bulk_import_service_spec.rb'
|
|
|
|
|
- 'spec/services/import_service_spec.rb'
|
|
|
|
|
|
|
|
|
|
RSpec/AnyInstance:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'spec/controllers/activitypub/inboxes_controller_spec.rb'
|
|
|
|
@ -762,6 +745,15 @@ Style/RedundantFetchBlock:
|
|
|
|
|
- 'config/initializers/paperclip.rb'
|
|
|
|
|
- 'config/puma.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
|
# Configuration parameters: AllowMultipleReturnValues.
|
|
|
|
|
Style/RedundantReturn:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'app/controllers/api/v1/directories_controller.rb'
|
|
|
|
|
- 'app/controllers/auth/confirmations_controller.rb'
|
|
|
|
|
- 'app/lib/ostatus/tag_manager.rb'
|
|
|
|
|
- 'app/models/form/import.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
|
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
|
|
|
|
|
# AllowedMethods: present?, blank?, presence, try, try!
|
|
|
|
|