|
|
|
@ -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.50.2.
|
|
|
|
|
# using RuboCop version 1.52.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
|
|
|
|
@ -21,12 +21,6 @@ Layout/ArgumentAlignment:
|
|
|
|
|
- 'config/initializers/cors.rb'
|
|
|
|
|
- 'config/initializers/session_store.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
|
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
|
|
|
|
Layout/ExtraSpacing:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'config/initializers/omniauth.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
|
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
|
|
|
|
# SupportedHashRocketStyles: key, separator, table
|
|
|
|
@ -39,12 +33,6 @@ Layout/HashAlignment:
|
|
|
|
|
- 'config/initializers/rack_attack.rb'
|
|
|
|
|
- 'config/routes.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
|
# Configuration parameters: Width, AllowedPatterns.
|
|
|
|
|
Layout/IndentationWidth:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'config/initializers/ffmpeg.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
|
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
|
|
|
|
|
Layout/LeadingCommentSpace:
|
|
|
|
@ -52,14 +40,6 @@ Layout/LeadingCommentSpace:
|
|
|
|
|
- 'config/application.rb'
|
|
|
|
|
- 'config/initializers/omniauth.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
|
|
|
|
# SupportedStyles: space, no_space
|
|
|
|
|
# SupportedStylesForEmptyBraces: space, no_space
|
|
|
|
|
Layout/SpaceBeforeBlockBraces:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'config/initializers/paperclip.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
|
# SupportedStyles: require_no_space, require_space
|
|
|
|
@ -69,35 +49,13 @@ Layout/SpaceInLambdaLiteral:
|
|
|
|
|
- 'config/initializers/content_security_policy.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
|
# SupportedStyles: space, no_space
|
|
|
|
|
Layout/SpaceInsideStringInterpolation:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'config/initializers/webauthn.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
|
# Configuration parameters: AllowInHeredoc.
|
|
|
|
|
Layout/TrailingWhitespace:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'config/initializers/paperclip.rb'
|
|
|
|
|
|
|
|
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
|
|
|
Lint/AmbiguousBlockAssociation:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'spec/controllers/admin/account_moderation_notes_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/settings/two_factor_authentication/confirmations_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/settings/two_factor_authentication/otp_authentication_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/settings/two_factor_authentication/webauthn_credentials_controller_spec.rb'
|
|
|
|
|
- 'spec/services/activitypub/process_status_update_service_spec.rb'
|
|
|
|
|
- 'spec/services/post_status_service_spec.rb'
|
|
|
|
|
- 'spec/services/suspend_account_service_spec.rb'
|
|
|
|
|
- 'spec/services/unsuspend_account_service_spec.rb'
|
|
|
|
|
- 'spec/workers/scheduler/accounts_statuses_cleanup_scheduler_spec.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
|
Lint/AmbiguousOperatorPrecedence:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'config/initializers/rack_attack.rb'
|
|
|
|
|
|
|
|
|
|
# Configuration parameters: AllowComments, AllowEmptyLambdas.
|
|
|
|
|
Lint/EmptyBlock:
|
|
|
|
@ -162,6 +120,7 @@ Lint/UnusedBlockArgument:
|
|
|
|
|
- 'config/initializers/paperclip.rb'
|
|
|
|
|
- 'config/initializers/simple_form.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
|
Lint/UselessAssignment:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'app/services/activitypub/process_status_update_service.rb'
|
|
|
|
@ -183,6 +142,7 @@ Lint/UselessAssignment:
|
|
|
|
|
- 'spec/services/resolve_url_service_spec.rb'
|
|
|
|
|
- 'spec/views/statuses/show.html.haml_spec.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
|
# Configuration parameters: CheckForMethodsWithNoSideEffects.
|
|
|
|
|
Lint/Void:
|
|
|
|
|
Exclude:
|
|
|
|
@ -194,12 +154,6 @@ Metrics/AbcSize:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'app/serializers/initial_state_serializer.rb'
|
|
|
|
|
|
|
|
|
|
# Configuration parameters: CountComments, Max, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
|
|
|
|
|
# AllowedMethods: refine
|
|
|
|
|
Metrics/BlockLength:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'app/models/concerns/status_safe_reblog_insert.rb'
|
|
|
|
|
|
|
|
|
|
# Configuration parameters: CountBlocks, Max.
|
|
|
|
|
Metrics/BlockNesting:
|
|
|
|
|
Exclude:
|
|
|
|
@ -209,31 +163,9 @@ Metrics/BlockNesting:
|
|
|
|
|
Metrics/CyclomaticComplexity:
|
|
|
|
|
Max: 25
|
|
|
|
|
|
|
|
|
|
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
|
|
|
|
Metrics/MethodLength:
|
|
|
|
|
Max: 58
|
|
|
|
|
|
|
|
|
|
# Configuration parameters: CountComments, Max, CountAsOne.
|
|
|
|
|
Metrics/ModuleLength:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'app/controllers/concerns/signature_verification.rb'
|
|
|
|
|
- 'app/helpers/application_helper.rb'
|
|
|
|
|
- 'app/helpers/jsonld_helper.rb'
|
|
|
|
|
- 'app/models/concerns/account_interactions.rb'
|
|
|
|
|
- 'app/models/concerns/has_user_settings.rb'
|
|
|
|
|
- 'lib/sanitize_ext/sanitize_config.rb'
|
|
|
|
|
|
|
|
|
|
# Configuration parameters: Max, CountKeywordArgs, MaxOptionalParameters.
|
|
|
|
|
Metrics/ParameterLists:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'app/models/concerns/account_interactions.rb'
|
|
|
|
|
- 'app/services/activitypub/fetch_remote_account_service.rb'
|
|
|
|
|
- 'app/services/activitypub/fetch_remote_actor_service.rb'
|
|
|
|
|
- 'app/services/activitypub/fetch_remote_status_service.rb'
|
|
|
|
|
|
|
|
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
|
|
|
Metrics/PerceivedComplexity:
|
|
|
|
|
Max: 28
|
|
|
|
|
Max: 27
|
|
|
|
|
|
|
|
|
|
Naming/AccessorMethodName:
|
|
|
|
|
Exclude:
|
|
|
|
@ -246,6 +178,7 @@ Naming/FileName:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'config/locales/sr-Latn.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
|
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
|
|
|
|
|
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
|
|
|
|
|
Naming/MemoizedInstanceVariableName:
|
|
|
|
@ -268,39 +201,9 @@ Naming/VariableNumber:
|
|
|
|
|
- 'db/migrate/20190820003045_update_statuses_index.rb'
|
|
|
|
|
- 'db/migrate/20190823221802_add_local_index_to_statuses.rb'
|
|
|
|
|
- 'db/migrate/20200119112504_add_public_index_to_statuses.rb'
|
|
|
|
|
- 'spec/controllers/activitypub/followers_synchronizations_controller_spec.rb'
|
|
|
|
|
- 'spec/lib/feed_manager_spec.rb'
|
|
|
|
|
- 'spec/models/account_spec.rb'
|
|
|
|
|
- 'spec/models/concerns/account_interactions_spec.rb'
|
|
|
|
|
- 'spec/models/custom_emoji_filter_spec.rb'
|
|
|
|
|
- 'spec/models/domain_block_spec.rb'
|
|
|
|
|
- 'spec/models/user_spec.rb'
|
|
|
|
|
- 'spec/services/activitypub/fetch_featured_collection_service_spec.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
|
Performance/MapCompact:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'app/lib/admin/metrics/dimension.rb'
|
|
|
|
|
- 'app/lib/admin/metrics/measure.rb'
|
|
|
|
|
- 'app/lib/feed_manager.rb'
|
|
|
|
|
- 'app/models/account.rb'
|
|
|
|
|
- 'app/models/account_statuses_cleanup_policy.rb'
|
|
|
|
|
- 'app/models/account_suggestions/setting_source.rb'
|
|
|
|
|
- 'app/models/account_suggestions/source.rb'
|
|
|
|
|
- 'app/models/follow_recommendation_filter.rb'
|
|
|
|
|
- 'app/models/notification.rb'
|
|
|
|
|
- 'app/models/user_role.rb'
|
|
|
|
|
- 'app/models/webhook.rb'
|
|
|
|
|
- 'app/services/process_mentions_service.rb'
|
|
|
|
|
- 'app/validators/existing_username_validator.rb'
|
|
|
|
|
- 'db/migrate/20200407202420_migrate_unavailable_inboxes.rb'
|
|
|
|
|
- 'spec/presenters/status_relationships_presenter_spec.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
|
# Configuration parameters: SafeMultiline.
|
|
|
|
|
Performance/StartWith:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'app/lib/extractor.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
|
Performance/UnfreezeString:
|
|
|
|
@ -330,79 +233,6 @@ RSpec/AnyInstance:
|
|
|
|
|
- 'spec/workers/activitypub/delivery_worker_spec.rb'
|
|
|
|
|
- 'spec/workers/web/push_notification_worker_spec.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
|
# Configuration parameters: SkipBlocks, EnforcedStyle.
|
|
|
|
|
# SupportedStyles: described_class, explicit
|
|
|
|
|
RSpec/DescribedClass:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'spec/controllers/concerns/cache_concern_spec.rb'
|
|
|
|
|
- 'spec/controllers/concerns/challengable_concern_spec.rb'
|
|
|
|
|
- 'spec/lib/entity_cache_spec.rb'
|
|
|
|
|
- 'spec/lib/extractor_spec.rb'
|
|
|
|
|
- 'spec/lib/feed_manager_spec.rb'
|
|
|
|
|
- 'spec/lib/hash_object_spec.rb'
|
|
|
|
|
- 'spec/lib/ostatus/tag_manager_spec.rb'
|
|
|
|
|
- 'spec/lib/request_spec.rb'
|
|
|
|
|
- 'spec/lib/tag_manager_spec.rb'
|
|
|
|
|
- 'spec/lib/webfinger_resource_spec.rb'
|
|
|
|
|
- 'spec/mailers/notification_mailer_spec.rb'
|
|
|
|
|
- 'spec/mailers/user_mailer_spec.rb'
|
|
|
|
|
- 'spec/models/account_conversation_spec.rb'
|
|
|
|
|
- 'spec/models/account_domain_block_spec.rb'
|
|
|
|
|
- 'spec/models/account_migration_spec.rb'
|
|
|
|
|
- 'spec/models/account_spec.rb'
|
|
|
|
|
- 'spec/models/block_spec.rb'
|
|
|
|
|
- 'spec/models/domain_block_spec.rb'
|
|
|
|
|
- 'spec/models/email_domain_block_spec.rb'
|
|
|
|
|
- 'spec/models/export_spec.rb'
|
|
|
|
|
- 'spec/models/favourite_spec.rb'
|
|
|
|
|
- 'spec/models/follow_spec.rb'
|
|
|
|
|
- 'spec/models/identity_spec.rb'
|
|
|
|
|
- 'spec/models/import_spec.rb'
|
|
|
|
|
- 'spec/models/media_attachment_spec.rb'
|
|
|
|
|
- 'spec/models/notification_spec.rb'
|
|
|
|
|
- 'spec/models/relationship_filter_spec.rb'
|
|
|
|
|
- 'spec/models/report_filter_spec.rb'
|
|
|
|
|
- 'spec/models/session_activation_spec.rb'
|
|
|
|
|
- 'spec/models/setting_spec.rb'
|
|
|
|
|
- 'spec/models/site_upload_spec.rb'
|
|
|
|
|
- 'spec/models/status_pin_spec.rb'
|
|
|
|
|
- 'spec/models/status_spec.rb'
|
|
|
|
|
- 'spec/models/user_spec.rb'
|
|
|
|
|
- 'spec/policies/account_moderation_note_policy_spec.rb'
|
|
|
|
|
- 'spec/presenters/account_relationships_presenter_spec.rb'
|
|
|
|
|
- 'spec/presenters/status_relationships_presenter_spec.rb'
|
|
|
|
|
- 'spec/serializers/activitypub/note_serializer_spec.rb'
|
|
|
|
|
- 'spec/serializers/activitypub/update_poll_serializer_spec.rb'
|
|
|
|
|
- 'spec/serializers/rest/account_serializer_spec.rb'
|
|
|
|
|
- 'spec/services/activitypub/fetch_remote_account_service_spec.rb'
|
|
|
|
|
- 'spec/services/activitypub/fetch_remote_actor_service_spec.rb'
|
|
|
|
|
- 'spec/services/activitypub/fetch_remote_key_service_spec.rb'
|
|
|
|
|
- 'spec/services/after_block_domain_from_account_service_spec.rb'
|
|
|
|
|
- 'spec/services/authorize_follow_service_spec.rb'
|
|
|
|
|
- 'spec/services/batched_remove_status_service_spec.rb'
|
|
|
|
|
- 'spec/services/block_domain_service_spec.rb'
|
|
|
|
|
- 'spec/services/block_service_spec.rb'
|
|
|
|
|
- 'spec/services/bootstrap_timeline_service_spec.rb'
|
|
|
|
|
- 'spec/services/clear_domain_media_service_spec.rb'
|
|
|
|
|
- 'spec/services/favourite_service_spec.rb'
|
|
|
|
|
- 'spec/services/follow_service_spec.rb'
|
|
|
|
|
- 'spec/services/import_service_spec.rb'
|
|
|
|
|
- 'spec/services/post_status_service_spec.rb'
|
|
|
|
|
- 'spec/services/precompute_feed_service_spec.rb'
|
|
|
|
|
- 'spec/services/process_mentions_service_spec.rb'
|
|
|
|
|
- 'spec/services/purge_domain_service_spec.rb'
|
|
|
|
|
- 'spec/services/reblog_service_spec.rb'
|
|
|
|
|
- 'spec/services/reject_follow_service_spec.rb'
|
|
|
|
|
- 'spec/services/remove_from_followers_service_spec.rb'
|
|
|
|
|
- 'spec/services/remove_status_service_spec.rb'
|
|
|
|
|
- 'spec/services/unallow_domain_service_spec.rb'
|
|
|
|
|
- 'spec/services/unblock_service_spec.rb'
|
|
|
|
|
- 'spec/services/unfollow_service_spec.rb'
|
|
|
|
|
- 'spec/services/unmute_service_spec.rb'
|
|
|
|
|
- 'spec/services/update_account_service_spec.rb'
|
|
|
|
|
- 'spec/validators/note_length_validator_spec.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
|
RSpec/EmptyExampleGroup:
|
|
|
|
|
Exclude:
|
|
|
|
@ -442,29 +272,6 @@ RSpec/EmptyExampleGroup:
|
|
|
|
|
RSpec/ExampleLength:
|
|
|
|
|
Max: 22
|
|
|
|
|
|
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
|
# SupportedStyles: method_call, block
|
|
|
|
|
RSpec/ExpectChange:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'spec/controllers/admin/account_moderation_notes_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/admin/custom_emojis_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/admin/invites_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/admin/report_notes_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/concerns/accountable_concern_spec.rb'
|
|
|
|
|
- 'spec/controllers/invites_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/settings/two_factor_authentication/webauthn_credentials_controller_spec.rb'
|
|
|
|
|
- 'spec/models/admin/account_action_spec.rb'
|
|
|
|
|
- 'spec/services/suspend_account_service_spec.rb'
|
|
|
|
|
- 'spec/services/unsuspend_account_service_spec.rb'
|
|
|
|
|
- 'spec/workers/scheduler/accounts_statuses_cleanup_scheduler_spec.rb'
|
|
|
|
|
|
|
|
|
|
RSpec/ExpectInHook:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'spec/controllers/api/v1/media_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/settings/applications_controller_spec.rb'
|
|
|
|
|
- 'spec/lib/status_filter_spec.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
|
# SupportedStyles: implicit, each, example
|
|
|
|
@ -509,11 +316,8 @@ RSpec/LetSetup:
|
|
|
|
|
- 'spec/controllers/admin/statuses_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/api/v1/accounts/statuses_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/api/v1/admin/accounts_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/api/v1/admin/domain_allows_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/api/v1/admin/domain_blocks_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/api/v1/filters_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/api/v1/followed_tags_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/api/v1/tags_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/api/v2/admin/accounts_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/api/v2/filters/keywords_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/api/v2/filters/statuses_controller_spec.rb'
|
|
|
|
@ -550,7 +354,6 @@ RSpec/LetSetup:
|
|
|
|
|
- 'spec/services/suspend_account_service_spec.rb'
|
|
|
|
|
- 'spec/services/unallow_domain_service_spec.rb'
|
|
|
|
|
- 'spec/services/unsuspend_account_service_spec.rb'
|
|
|
|
|
- 'spec/workers/scheduler/accounts_statuses_cleanup_scheduler_spec.rb'
|
|
|
|
|
- 'spec/workers/scheduler/user_cleanup_scheduler_spec.rb'
|
|
|
|
|
|
|
|
|
|
RSpec/MessageChain:
|
|
|
|
@ -582,32 +385,8 @@ RSpec/MessageSpies:
|
|
|
|
|
- 'spec/spec_helper.rb'
|
|
|
|
|
- 'spec/validators/status_length_validator_spec.rb'
|
|
|
|
|
|
|
|
|
|
RSpec/MissingExampleGroupArgument:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'spec/controllers/accounts_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/activitypub/collections_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/admin/statuses_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/admin/users/roles_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/api/v1/accounts_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/api/v1/admin/account_actions_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/api/v1/admin/domain_allows_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/api/v1/statuses_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/auth/registrations_controller_spec.rb'
|
|
|
|
|
- 'spec/features/log_in_spec.rb'
|
|
|
|
|
- 'spec/lib/activitypub/activity/undo_spec.rb'
|
|
|
|
|
- 'spec/lib/status_reach_finder_spec.rb'
|
|
|
|
|
- 'spec/models/account_spec.rb'
|
|
|
|
|
- 'spec/models/email_domain_block_spec.rb'
|
|
|
|
|
- 'spec/models/trends/statuses_spec.rb'
|
|
|
|
|
- 'spec/models/trends/tags_spec.rb'
|
|
|
|
|
- 'spec/models/user_role_spec.rb'
|
|
|
|
|
- 'spec/models/user_spec.rb'
|
|
|
|
|
- 'spec/services/fetch_link_card_service_spec.rb'
|
|
|
|
|
- 'spec/services/notify_service_spec.rb'
|
|
|
|
|
- 'spec/services/process_mentions_service_spec.rb'
|
|
|
|
|
|
|
|
|
|
RSpec/MultipleExpectations:
|
|
|
|
|
Max: 19
|
|
|
|
|
Max: 8
|
|
|
|
|
|
|
|
|
|
# Configuration parameters: AllowSubject.
|
|
|
|
|
RSpec/MultipleMemoizedHelpers:
|
|
|
|
@ -617,53 +396,10 @@ RSpec/MultipleMemoizedHelpers:
|
|
|
|
|
RSpec/NestedGroups:
|
|
|
|
|
Max: 6
|
|
|
|
|
|
|
|
|
|
# Configuration parameters: AllowedPatterns.
|
|
|
|
|
# AllowedPatterns: ^expect_, ^assert_
|
|
|
|
|
RSpec/NoExpectationExample:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'spec/controllers/auth/registrations_controller_spec.rb'
|
|
|
|
|
- 'spec/services/precompute_feed_service_spec.rb'
|
|
|
|
|
|
|
|
|
|
RSpec/PendingWithoutReason:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'spec/controllers/statuses_controller_spec.rb'
|
|
|
|
|
- 'spec/models/account_spec.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
|
# Configuration parameters: Strict, EnforcedStyle, AllowedExplicitMatchers.
|
|
|
|
|
# SupportedStyles: inflected, explicit
|
|
|
|
|
RSpec/PredicateMatcher:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'spec/controllers/api/v1/accounts/notes_controller_spec.rb'
|
|
|
|
|
- 'spec/models/user_spec.rb'
|
|
|
|
|
- 'spec/services/post_status_service_spec.rb'
|
|
|
|
|
|
|
|
|
|
RSpec/RepeatedExample:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'spec/policies/status_policy_spec.rb'
|
|
|
|
|
|
|
|
|
|
RSpec/RepeatedExampleGroupBody:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'spec/controllers/statuses_controller_spec.rb'
|
|
|
|
|
|
|
|
|
|
RSpec/RepeatedExampleGroupDescription:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'spec/controllers/admin/reports/actions_controller_spec.rb'
|
|
|
|
|
- 'spec/policies/report_note_policy_spec.rb'
|
|
|
|
|
|
|
|
|
|
RSpec/ScatteredSetup:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'spec/controllers/activitypub/followers_synchronizations_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/activitypub/outboxes_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/admin/disputes/appeals_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/auth/registrations_controller_spec.rb'
|
|
|
|
|
- 'spec/services/activitypub/process_account_service_spec.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
|
RSpec/SharedContext:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'spec/services/unsuspend_account_service_spec.rb'
|
|
|
|
|
|
|
|
|
|
RSpec/StubbedMock:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'spec/controllers/api/base_controller_spec.rb'
|
|
|
|
@ -678,7 +414,6 @@ RSpec/StubbedMock:
|
|
|
|
|
RSpec/SubjectDeclaration:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'spec/controllers/admin/domain_blocks_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/api/v1/admin/domain_blocks_controller_spec.rb'
|
|
|
|
|
- 'spec/models/account_migration_spec.rb'
|
|
|
|
|
- 'spec/models/account_spec.rb'
|
|
|
|
|
- 'spec/models/relationship_filter_spec.rb'
|
|
|
|
@ -704,45 +439,6 @@ RSpec/SubjectStub:
|
|
|
|
|
- 'spec/services/unallow_domain_service_spec.rb'
|
|
|
|
|
- 'spec/validators/blacklisted_email_validator_spec.rb'
|
|
|
|
|
|
|
|
|
|
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
|
|
|
|
|
RSpec/VerifiedDoubles:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'spec/controllers/admin/change_emails_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/admin/confirmations_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/admin/disputes/appeals_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/admin/domain_allows_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/admin/domain_blocks_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/api/v1/reports_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/api/web/embeds_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/auth/sessions_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/disputes/appeals_controller_spec.rb'
|
|
|
|
|
- 'spec/helpers/statuses_helper_spec.rb'
|
|
|
|
|
- 'spec/lib/suspicious_sign_in_detector_spec.rb'
|
|
|
|
|
- 'spec/models/account/field_spec.rb'
|
|
|
|
|
- 'spec/models/session_activation_spec.rb'
|
|
|
|
|
- 'spec/models/setting_spec.rb'
|
|
|
|
|
- 'spec/services/account_search_service_spec.rb'
|
|
|
|
|
- 'spec/services/post_status_service_spec.rb'
|
|
|
|
|
- 'spec/services/search_service_spec.rb'
|
|
|
|
|
- 'spec/validators/blacklisted_email_validator_spec.rb'
|
|
|
|
|
- 'spec/validators/disallowed_hashtags_validator_spec.rb'
|
|
|
|
|
- 'spec/validators/email_mx_validator_spec.rb'
|
|
|
|
|
- 'spec/validators/follow_limit_validator_spec.rb'
|
|
|
|
|
- 'spec/validators/note_length_validator_spec.rb'
|
|
|
|
|
- 'spec/validators/poll_validator_spec.rb'
|
|
|
|
|
- 'spec/validators/status_length_validator_spec.rb'
|
|
|
|
|
- 'spec/validators/status_pin_validator_spec.rb'
|
|
|
|
|
- 'spec/validators/unique_username_validator_spec.rb'
|
|
|
|
|
- 'spec/validators/unreserved_username_validator_spec.rb'
|
|
|
|
|
- 'spec/validators/url_validator_spec.rb'
|
|
|
|
|
- 'spec/views/statuses/show.html.haml_spec.rb'
|
|
|
|
|
- 'spec/workers/activitypub/processing_worker_spec.rb'
|
|
|
|
|
- 'spec/workers/admin/domain_purge_worker_spec.rb'
|
|
|
|
|
- 'spec/workers/domain_block_worker_spec.rb'
|
|
|
|
|
- 'spec/workers/domain_clear_media_worker_spec.rb'
|
|
|
|
|
- 'spec/workers/feed_insert_worker_spec.rb'
|
|
|
|
|
- 'spec/workers/regeneration_worker_spec.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
|
Rails/ApplicationController:
|
|
|
|
|
Exclude:
|
|
|
|
@ -805,12 +501,6 @@ Rails/DuplicateAssociation:
|
|
|
|
|
- 'app/serializers/activitypub/collection_serializer.rb'
|
|
|
|
|
- 'app/serializers/activitypub/note_serializer.rb'
|
|
|
|
|
|
|
|
|
|
# Configuration parameters: Include.
|
|
|
|
|
# Include: app/**/*.rb, config/**/*.rb, lib/**/*.rb
|
|
|
|
|
Rails/Exit:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'config/boot.rb'
|
|
|
|
|
|
|
|
|
|
# Configuration parameters: Include.
|
|
|
|
|
# Include: app/models/**/*.rb
|
|
|
|
|
Rails/HasAndBelongsToMany:
|
|
|
|
@ -859,7 +549,6 @@ Rails/NegateInclude:
|
|
|
|
|
- 'app/models/concerns/attachmentable.rb'
|
|
|
|
|
- 'app/models/concerns/remotable.rb'
|
|
|
|
|
- 'app/models/custom_filter.rb'
|
|
|
|
|
- 'app/models/webhook.rb'
|
|
|
|
|
- 'app/services/activitypub/process_status_update_service.rb'
|
|
|
|
|
- 'app/services/fetch_link_card_service.rb'
|
|
|
|
|
- 'app/services/search_service.rb'
|
|
|
|
@ -945,9 +634,9 @@ Rails/SkipsModelValidations:
|
|
|
|
|
- 'db/post_migrate/20220617202502_migrate_roles.rb'
|
|
|
|
|
- 'db/post_migrate/20221101190723_backfill_admin_action_logs.rb'
|
|
|
|
|
- 'db/post_migrate/20221206114142_backfill_admin_action_logs_again.rb'
|
|
|
|
|
- 'lib/cli.rb'
|
|
|
|
|
- 'lib/mastodon/accounts_cli.rb'
|
|
|
|
|
- 'lib/mastodon/maintenance_cli.rb'
|
|
|
|
|
- 'lib/mastodon/cli/accounts.rb'
|
|
|
|
|
- 'lib/mastodon/cli/main.rb'
|
|
|
|
|
- 'lib/mastodon/cli/maintenance.rb'
|
|
|
|
|
- 'spec/controllers/api/v1/admin/accounts_controller_spec.rb'
|
|
|
|
|
- 'spec/lib/activitypub/activity/follow_spec.rb'
|
|
|
|
|
- 'spec/services/follow_service_spec.rb'
|
|
|
|
@ -1029,13 +718,9 @@ Rails/WhereExists:
|
|
|
|
|
- 'app/validators/vote_validator.rb'
|
|
|
|
|
- 'app/workers/move_worker.rb'
|
|
|
|
|
- 'db/migrate/20190529143559_preserve_old_layout_for_existing_users.rb'
|
|
|
|
|
- 'lib/mastodon/email_domain_blocks_cli.rb'
|
|
|
|
|
- 'lib/tasks/tests.rake'
|
|
|
|
|
- 'spec/controllers/api/v1/accounts/notes_controller_spec.rb'
|
|
|
|
|
- 'spec/controllers/api/v1/tags_controller_spec.rb'
|
|
|
|
|
- 'spec/models/account_spec.rb'
|
|
|
|
|
- 'spec/services/activitypub/process_collection_service_spec.rb'
|
|
|
|
|
- 'spec/services/post_status_service_spec.rb'
|
|
|
|
|
- 'spec/services/purge_domain_service_spec.rb'
|
|
|
|
|
- 'spec/services/unallow_domain_service_spec.rb'
|
|
|
|
|
|
|
|
|
@ -1057,6 +742,7 @@ Style/ClassVars:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'config/initializers/devise.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
|
Style/CombinableLoops:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'app/models/form/custom_emoji_batch.rb'
|
|
|
|
@ -1091,7 +777,6 @@ Style/FormatStringToken:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'app/models/privacy_policy.rb'
|
|
|
|
|
- 'config/initializers/devise.rb'
|
|
|
|
|
- 'lib/mastodon/maintenance_cli.rb'
|
|
|
|
|
- 'lib/paperclip/color_extractor.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
@ -1501,11 +1186,6 @@ Style/GlobalStdStream:
|
|
|
|
|
- 'config/environments/development.rb'
|
|
|
|
|
- 'config/environments/production.rb'
|
|
|
|
|
|
|
|
|
|
# Configuration parameters: AllowedVariables.
|
|
|
|
|
Style/GlobalVars:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'config/initializers/statsd.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
|
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
|
|
|
|
|
Style/GuardClause:
|
|
|
|
@ -1536,9 +1216,9 @@ Style/GuardClause:
|
|
|
|
|
- 'db/post_migrate/20220704024901_migrate_settings_to_user_roles.rb'
|
|
|
|
|
- 'lib/devise/two_factor_ldap_authenticatable.rb'
|
|
|
|
|
- 'lib/devise/two_factor_pam_authenticatable.rb'
|
|
|
|
|
- 'lib/mastodon/accounts_cli.rb'
|
|
|
|
|
- 'lib/mastodon/maintenance_cli.rb'
|
|
|
|
|
- 'lib/mastodon/media_cli.rb'
|
|
|
|
|
- 'lib/mastodon/cli/accounts.rb'
|
|
|
|
|
- 'lib/mastodon/cli/maintenance.rb'
|
|
|
|
|
- 'lib/mastodon/cli/media.rb'
|
|
|
|
|
- 'lib/paperclip/attachment_extensions.rb'
|
|
|
|
|
- 'lib/tasks/repo.rake'
|
|
|
|
|
|
|
|
|
@ -1639,7 +1319,6 @@ Style/RedundantConstantBase:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'config/environments/production.rb'
|
|
|
|
|
- 'config/initializers/sidekiq.rb'
|
|
|
|
|
- 'config/initializers/statsd.rb'
|
|
|
|
|
- 'config/locales/sr-Latn.rb'
|
|
|
|
|
- 'config/locales/sr.rb'
|
|
|
|
|
|
|
|
|
@ -1653,52 +1332,6 @@ Style/RedundantFetchBlock:
|
|
|
|
|
- 'config/initializers/paperclip.rb'
|
|
|
|
|
- 'config/puma.rb'
|
|
|
|
|
|
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
|
Style/RedundantRegexpCharacterClass:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'app/lib/link_details_extractor.rb'
|
|
|
|
|
- 'app/lib/tag_manager.rb'
|
|
|
|
|
- 'app/models/domain_allow.rb'
|
|
|
|
|
- 'app/models/domain_block.rb'
|
|
|
|
|
- 'app/services/fetch_oembed_service.rb'
|
|
|
|
|
- 'config/initializers/rack_attack.rb'
|
|
|
|
|
- 'lib/tasks/emojis.rake'
|
|
|
|
|
- 'lib/tasks/mastodon.rake'
|
|
|
|
|
|
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
|
Style/RedundantRegexpEscape:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'app/lib/webfinger_resource.rb'
|
|
|
|
|
- 'app/models/account.rb'
|
|
|
|
|
- 'app/models/tag.rb'
|
|
|
|
|
- 'app/services/fetch_link_card_service.rb'
|
|
|
|
|
- 'config/initializers/twitter_regex.rb'
|
|
|
|
|
- 'lib/paperclip/color_extractor.rb'
|
|
|
|
|
- 'lib/tasks/mastodon.rake'
|
|
|
|
|
|
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
|
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
|
|
|
|
|
# SupportedStyles: slashes, percent_r, mixed
|
|
|
|
|
Style/RegexpLiteral:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'app/lib/link_details_extractor.rb'
|
|
|
|
|
- 'app/lib/plain_text_formatter.rb'
|
|
|
|
|
- 'app/lib/tag_manager.rb'
|
|
|
|
|
- 'app/lib/text_formatter.rb'
|
|
|
|
|
- 'app/models/account.rb'
|
|
|
|
|
- 'app/models/domain_allow.rb'
|
|
|
|
|
- 'app/models/domain_block.rb'
|
|
|
|
|
- 'app/models/site_upload.rb'
|
|
|
|
|
- 'app/models/tag.rb'
|
|
|
|
|
- 'app/services/backup_service.rb'
|
|
|
|
|
- 'app/services/fetch_oembed_service.rb'
|
|
|
|
|
- 'app/services/search_service.rb'
|
|
|
|
|
- 'config/initializers/rack_attack.rb'
|
|
|
|
|
- 'config/initializers/twitter_regex.rb'
|
|
|
|
|
- 'config/routes.rb'
|
|
|
|
|
- 'lib/mastodon/premailer_webpack_strategy.rb'
|
|
|
|
|
- 'lib/tasks/mastodon.rake'
|
|
|
|
|
|
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
|
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
|
|
|
|
|
# AllowedMethods: present?, blank?, presence, try, try!
|
|
|
|
|