|
|
|
@ -14,154 +14,6 @@ Bundler/OrderedGems:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'Gemfile'
|
|
|
|
|
|
|
|
|
|
# Offense count: 81
|
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
|
Layout/EmptyLineAfterGuardClause:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'app/controllers/api/v1/tags_controller.rb'
|
|
|
|
|
- 'app/controllers/application_controller.rb'
|
|
|
|
|
- 'app/controllers/concerns/session_tracking_concern.rb'
|
|
|
|
|
- 'app/controllers/concerns/signature_verification.rb'
|
|
|
|
|
- 'app/helpers/application_helper.rb'
|
|
|
|
|
- 'app/lib/activitypub/activity.rb'
|
|
|
|
|
- 'app/lib/activitypub/tag_manager.rb'
|
|
|
|
|
- 'app/lib/request.rb'
|
|
|
|
|
- 'app/lib/settings/scoped_settings.rb'
|
|
|
|
|
- 'app/lib/status_filter.rb'
|
|
|
|
|
- 'app/lib/tag_manager.rb'
|
|
|
|
|
- 'app/lib/webfinger.rb'
|
|
|
|
|
- 'app/models/account.rb'
|
|
|
|
|
- 'app/models/account_conversation.rb'
|
|
|
|
|
- 'app/models/admin/import.rb'
|
|
|
|
|
- 'app/models/custom_filter.rb'
|
|
|
|
|
- 'app/models/favourite.rb'
|
|
|
|
|
- 'app/models/form/admin_settings.rb'
|
|
|
|
|
- 'app/models/poll.rb'
|
|
|
|
|
- 'app/models/session_activation.rb'
|
|
|
|
|
- 'app/models/setting.rb'
|
|
|
|
|
- 'app/models/status_edit.rb'
|
|
|
|
|
- 'app/models/user.rb'
|
|
|
|
|
- 'app/models/user_role.rb'
|
|
|
|
|
- 'app/services/activitypub/fetch_remote_actor_service.rb'
|
|
|
|
|
- 'app/services/activitypub/fetch_remote_status_service.rb'
|
|
|
|
|
- 'app/services/activitypub/fetch_replies_service.rb'
|
|
|
|
|
- 'app/services/activitypub/process_account_service.rb'
|
|
|
|
|
- 'app/services/favourite_service.rb'
|
|
|
|
|
- 'app/services/notify_service.rb'
|
|
|
|
|
- 'app/services/post_status_service.rb'
|
|
|
|
|
- 'app/services/vote_service.rb'
|
|
|
|
|
- 'app/validators/follow_limit_validator.rb'
|
|
|
|
|
- 'app/validators/unreserved_username_validator.rb'
|
|
|
|
|
- 'app/workers/scheduler/accounts_statuses_cleanup_scheduler.rb'
|
|
|
|
|
- 'db/migrate/20190314181829_migrate_open_registrations_setting.rb'
|
|
|
|
|
- 'db/migrate/20190529143559_preserve_old_layout_for_existing_users.rb'
|
|
|
|
|
- 'db/migrate/20210421121431_add_case_insensitive_btree_index_to_tags.rb'
|
|
|
|
|
- 'db/post_migrate/20221101190723_backfill_admin_action_logs.rb'
|
|
|
|
|
- 'db/post_migrate/20221206114142_backfill_admin_action_logs_again.rb'
|
|
|
|
|
- 'lib/mastodon/domains_cli.rb'
|
|
|
|
|
|
|
|
|
|
# Offense count: 71
|
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
|
Layout/EmptyLineAfterMagicComment:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'Capfile'
|
|
|
|
|
- 'app/helpers/languages_helper.rb'
|
|
|
|
|
- 'app/models/account.rb'
|
|
|
|
|
- 'app/models/account_conversation.rb'
|
|
|
|
|
- 'app/models/account_domain_block.rb'
|
|
|
|
|
- 'app/models/account_moderation_note.rb'
|
|
|
|
|
- 'app/models/account_note.rb'
|
|
|
|
|
- 'app/models/account_pin.rb'
|
|
|
|
|
- 'app/models/account_stat.rb'
|
|
|
|
|
- 'app/models/account_summary.rb'
|
|
|
|
|
- 'app/models/account_warning.rb'
|
|
|
|
|
- 'app/models/backup.rb'
|
|
|
|
|
- 'app/models/block.rb'
|
|
|
|
|
- 'app/models/bookmark.rb'
|
|
|
|
|
- 'app/models/canonical_email_block.rb'
|
|
|
|
|
- 'app/models/conversation.rb'
|
|
|
|
|
- 'app/models/conversation_mute.rb'
|
|
|
|
|
- 'app/models/custom_emoji.rb'
|
|
|
|
|
- 'app/models/custom_filter.rb'
|
|
|
|
|
- 'app/models/custom_filter_keyword.rb'
|
|
|
|
|
- 'app/models/custom_filter_status.rb'
|
|
|
|
|
- 'app/models/device.rb'
|
|
|
|
|
- 'app/models/domain_block.rb'
|
|
|
|
|
- 'app/models/email_domain_block.rb'
|
|
|
|
|
- 'app/models/encrypted_message.rb'
|
|
|
|
|
- 'app/models/favourite.rb'
|
|
|
|
|
- 'app/models/featured_tag.rb'
|
|
|
|
|
- 'app/models/follow.rb'
|
|
|
|
|
- 'app/models/follow_recommendation.rb'
|
|
|
|
|
- 'app/models/follow_recommendation_suppression.rb'
|
|
|
|
|
- 'app/models/follow_request.rb'
|
|
|
|
|
- 'app/models/identity.rb'
|
|
|
|
|
- 'app/models/import.rb'
|
|
|
|
|
- 'app/models/instance.rb'
|
|
|
|
|
- 'app/models/invite.rb'
|
|
|
|
|
- 'app/models/ip_block.rb'
|
|
|
|
|
- 'app/models/list.rb'
|
|
|
|
|
- 'app/models/list_account.rb'
|
|
|
|
|
- 'app/models/login_activity.rb'
|
|
|
|
|
- 'app/models/media_attachment.rb'
|
|
|
|
|
- 'app/models/mention.rb'
|
|
|
|
|
- 'app/models/mute.rb'
|
|
|
|
|
- 'app/models/notification.rb'
|
|
|
|
|
- 'app/models/one_time_key.rb'
|
|
|
|
|
- 'app/models/poll.rb'
|
|
|
|
|
- 'app/models/poll_vote.rb'
|
|
|
|
|
- 'app/models/preview_card.rb'
|
|
|
|
|
- 'app/models/preview_card_provider.rb'
|
|
|
|
|
- 'app/models/relay.rb'
|
|
|
|
|
- 'app/models/report.rb'
|
|
|
|
|
- 'app/models/report_note.rb'
|
|
|
|
|
- 'app/models/session_activation.rb'
|
|
|
|
|
- 'app/models/setting.rb'
|
|
|
|
|
- 'app/models/site_upload.rb'
|
|
|
|
|
- 'app/models/status.rb'
|
|
|
|
|
- 'app/models/status_edit.rb'
|
|
|
|
|
- 'app/models/status_pin.rb'
|
|
|
|
|
- 'app/models/status_stat.rb'
|
|
|
|
|
- 'app/models/tag.rb'
|
|
|
|
|
- 'app/models/unavailable_domain.rb'
|
|
|
|
|
- 'app/models/user.rb'
|
|
|
|
|
- 'app/models/user_ip.rb'
|
|
|
|
|
- 'app/models/web/push_subscription.rb'
|
|
|
|
|
- 'app/models/web/setting.rb'
|
|
|
|
|
- 'app/models/webauthn_credential.rb'
|
|
|
|
|
- 'config.ru'
|
|
|
|
|
- 'db/migrate/20220613110834_add_action_to_custom_filters.rb'
|
|
|
|
|
- 'db/post_migrate/20220613110802_remove_whole_word_from_custom_filters.rb'
|
|
|
|
|
- 'db/post_migrate/20220613110903_remove_irreversible_from_custom_filters.rb'
|
|
|
|
|
- 'spec/controllers/api/v1/accounts/statuses_controller_spec.rb'
|
|
|
|
|
- 'spec/models/tag_spec.rb'
|
|
|
|
|
|
|
|
|
|
# Offense count: 113
|
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
|
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
|
|
|
|
# SupportedHashRocketStyles: key, separator, table
|
|
|
|
|
# SupportedColonStyles: key, separator, table
|
|
|
|
|
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
|
|
|
|
Layout/HashAlignment:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'app/lib/activitypub/linked_data_signature.rb'
|
|
|
|
|
- 'app/lib/ostatus/tag_manager.rb'
|
|
|
|
|
- 'app/models/account/field.rb'
|
|
|
|
|
- 'app/models/account_warning.rb'
|
|
|
|
|
- 'app/models/media_attachment.rb'
|
|
|
|
|
- 'app/models/notification.rb'
|
|
|
|
|
- 'app/models/poll.rb'
|
|
|
|
|
- 'app/presenters/account_relationships_presenter.rb'
|
|
|
|
|
- 'app/services/keys/claim_service.rb'
|
|
|
|
|
- 'app/services/keys/query_service.rb'
|
|
|
|
|
- 'app/workers/web/push_notification_worker.rb'
|
|
|
|
|
- 'db/post_migrate/20200917193528_migrate_notifications_type.rb'
|
|
|
|
|
- 'lib/sanitize_ext/sanitize_config.rb'
|
|
|
|
|
- 'lib/tasks/auto_annotate_models.rake'
|
|
|
|
|
- 'lib/tasks/mastodon.rake'
|
|
|
|
|
- 'spec/models/admin/account_action_spec.rb'
|
|
|
|
|
- 'spec/models/concerns/account_interactions_spec.rb'
|
|
|
|
|
|
|
|
|
|
# Offense count: 581
|
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
|
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
|
|
|
|
|