123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628 |
- # 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.57.2.
- # 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.
- # This cop supports safe autocorrection (--autocorrect).
- # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
- # Include: **/*.gemfile, **/Gemfile, **/gems.rb
- Bundler/OrderedGems:
- Exclude:
- - 'Gemfile'
- # This cop supports safe autocorrection (--autocorrect).
- # Configuration parameters: Max, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
- # URISchemes: http, https
- Layout/LineLength:
- Exclude:
- - 'app/models/account.rb'
- Lint/NonLocalExitFromIterator:
- Exclude:
- - 'app/helpers/jsonld_helper.rb'
- # This cop supports safe autocorrection (--autocorrect).
- # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
- Lint/UnusedBlockArgument:
- Exclude:
- - 'config/initializers/content_security_policy.rb'
- - 'config/initializers/doorkeeper.rb'
- - 'config/initializers/paperclip.rb'
- - 'config/initializers/simple_form.rb'
- # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
- Metrics/AbcSize:
- Max: 144
- # Configuration parameters: CountBlocks, Max.
- Metrics/BlockNesting:
- Exclude:
- - 'lib/tasks/mastodon.rake'
- # Configuration parameters: AllowedMethods, AllowedPatterns.
- Metrics/CyclomaticComplexity:
- Max: 25
- # Configuration parameters: AllowedMethods, AllowedPatterns.
- Metrics/PerceivedComplexity:
- Max: 27
- RSpec/AnyInstance:
- Exclude:
- - 'spec/controllers/activitypub/inboxes_controller_spec.rb'
- - 'spec/controllers/admin/accounts_controller_spec.rb'
- - 'spec/controllers/admin/resets_controller_spec.rb'
- - 'spec/controllers/auth/sessions_controller_spec.rb'
- - 'spec/controllers/settings/two_factor_authentication/confirmations_controller_spec.rb'
- - 'spec/controllers/settings/two_factor_authentication/recovery_codes_controller_spec.rb'
- - 'spec/lib/request_spec.rb'
- - 'spec/lib/status_filter_spec.rb'
- - 'spec/models/account_spec.rb'
- - 'spec/models/setting_spec.rb'
- - 'spec/services/activitypub/process_collection_service_spec.rb'
- - 'spec/validators/follow_limit_validator_spec.rb'
- - 'spec/workers/activitypub/delivery_worker_spec.rb'
- - 'spec/workers/web/push_notification_worker_spec.rb'
- # Configuration parameters: CountAsOne.
- RSpec/ExampleLength:
- Max: 22
- # Configuration parameters: AssignmentOnly.
- RSpec/InstanceVariable:
- Exclude:
- - 'spec/controllers/api/v1/streaming_controller_spec.rb'
- - 'spec/controllers/auth/confirmations_controller_spec.rb'
- - 'spec/controllers/auth/passwords_controller_spec.rb'
- - 'spec/controllers/auth/sessions_controller_spec.rb'
- - 'spec/controllers/concerns/export_controller_concern_spec.rb'
- - 'spec/controllers/home_controller_spec.rb'
- - 'spec/controllers/settings/two_factor_authentication/webauthn_credentials_controller_spec.rb'
- - 'spec/controllers/statuses_cleanup_controller_spec.rb'
- - 'spec/models/concerns/account_finder_concern_spec.rb'
- - 'spec/models/concerns/account_interactions_spec.rb'
- - 'spec/models/public_feed_spec.rb'
- - 'spec/serializers/activitypub/note_serializer_spec.rb'
- - 'spec/serializers/activitypub/update_poll_serializer_spec.rb'
- - 'spec/services/remove_status_service_spec.rb'
- - 'spec/services/search_service_spec.rb'
- - 'spec/services/unblock_domain_service_spec.rb'
- RSpec/LetSetup:
- Exclude:
- - 'spec/controllers/api/v1/accounts/statuses_controller_spec.rb'
- - 'spec/controllers/api/v1/filters_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'
- - 'spec/controllers/auth/confirmations_controller_spec.rb'
- - 'spec/controllers/auth/passwords_controller_spec.rb'
- - 'spec/controllers/auth/sessions_controller_spec.rb'
- - 'spec/controllers/follower_accounts_controller_spec.rb'
- - 'spec/controllers/following_accounts_controller_spec.rb'
- - 'spec/controllers/oauth/authorized_applications_controller_spec.rb'
- - 'spec/controllers/oauth/tokens_controller_spec.rb'
- - 'spec/controllers/settings/imports_controller_spec.rb'
- - 'spec/lib/activitypub/activity/delete_spec.rb'
- - 'spec/lib/vacuum/applications_vacuum_spec.rb'
- - 'spec/lib/vacuum/preview_cards_vacuum_spec.rb'
- - 'spec/models/account_spec.rb'
- - 'spec/models/account_statuses_cleanup_policy_spec.rb'
- - 'spec/models/canonical_email_block_spec.rb'
- - 'spec/models/status_spec.rb'
- - 'spec/models/user_spec.rb'
- - 'spec/services/account_statuses_cleanup_service_spec.rb'
- - 'spec/services/activitypub/fetch_featured_collection_service_spec.rb'
- - 'spec/services/activitypub/fetch_remote_status_service_spec.rb'
- - 'spec/services/activitypub/process_account_service_spec.rb'
- - 'spec/services/activitypub/process_collection_service_spec.rb'
- - 'spec/services/batched_remove_status_service_spec.rb'
- - 'spec/services/block_domain_service_spec.rb'
- - 'spec/services/bulk_import_service_spec.rb'
- - 'spec/services/delete_account_service_spec.rb'
- - 'spec/services/import_service_spec.rb'
- - 'spec/services/notify_service_spec.rb'
- - 'spec/services/remove_status_service_spec.rb'
- - 'spec/services/report_service_spec.rb'
- - 'spec/services/resolve_account_service_spec.rb'
- - 'spec/services/suspend_account_service_spec.rb'
- - 'spec/services/unallow_domain_service_spec.rb'
- - 'spec/services/unsuspend_account_service_spec.rb'
- - 'spec/workers/scheduler/user_cleanup_scheduler_spec.rb'
- RSpec/MessageChain:
- Exclude:
- - 'spec/models/concerns/remotable_spec.rb'
- - 'spec/models/session_activation_spec.rb'
- - 'spec/models/setting_spec.rb'
- RSpec/MultipleExpectations:
- Max: 8
- # Configuration parameters: AllowSubject.
- RSpec/MultipleMemoizedHelpers:
- Max: 21
- # Configuration parameters: AllowedGroups.
- RSpec/NestedGroups:
- Max: 6
- # This cop supports unsafe autocorrection (--autocorrect-all).
- Rails/ApplicationController:
- Exclude:
- - 'app/controllers/health_controller.rb'
- # Configuration parameters: Include.
- # Include: app/models/**/*.rb
- Rails/HasAndBelongsToMany:
- Exclude:
- - 'app/models/concerns/account_associations.rb'
- - 'app/models/preview_card.rb'
- - 'app/models/status.rb'
- - 'app/models/tag.rb'
- # Configuration parameters: Include.
- # Include: app/models/**/*.rb
- Rails/HasManyOrHasOneDependent:
- Exclude:
- - 'app/models/concerns/account_counters.rb'
- - 'app/models/conversation.rb'
- - 'app/models/custom_emoji.rb'
- - 'app/models/custom_emoji_category.rb'
- - 'app/models/domain_block.rb'
- - 'app/models/invite.rb'
- - 'app/models/status.rb'
- - 'app/models/user.rb'
- - 'app/models/web/push_subscription.rb'
- Rails/I18nLocaleTexts:
- Exclude:
- - 'lib/tasks/mastodon.rake'
- - 'spec/helpers/flashes_helper_spec.rb'
- # Configuration parameters: Include.
- # Include: app/controllers/**/*.rb, app/mailers/**/*.rb
- Rails/LexicallyScopedActionFilter:
- Exclude:
- - 'app/controllers/auth/passwords_controller.rb'
- - 'app/controllers/auth/registrations_controller.rb'
- # This cop supports unsafe autocorrection (--autocorrect-all).
- Rails/NegateInclude:
- Exclude:
- - 'app/controllers/concerns/signature_verification.rb'
- - 'app/helpers/jsonld_helper.rb'
- - 'app/lib/activitypub/activity/create.rb'
- - 'app/lib/activitypub/activity/move.rb'
- - 'app/lib/feed_manager.rb'
- - 'app/lib/link_details_extractor.rb'
- - 'app/models/concerns/attachmentable.rb'
- - 'app/models/concerns/remotable.rb'
- - 'app/models/custom_filter.rb'
- - 'app/services/activitypub/process_status_update_service.rb'
- - 'app/services/fetch_link_card_service.rb'
- - 'app/workers/web/push_notification_worker.rb'
- - 'lib/paperclip/color_extractor.rb'
- Rails/OutputSafety:
- Exclude:
- - 'config/initializers/simple_form.rb'
- # This cop supports unsafe autocorrection (--autocorrect-all).
- # Configuration parameters: Include.
- # Include: **/Rakefile, **/*.rake
- Rails/RakeEnvironment:
- Exclude:
- - 'lib/tasks/auto_annotate_models.rake'
- - 'lib/tasks/db.rake'
- - 'lib/tasks/emojis.rake'
- - 'lib/tasks/mastodon.rake'
- - 'lib/tasks/repo.rake'
- - 'lib/tasks/statistics.rake'
- # 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:
- Exclude:
- - 'app/controllers/admin/invites_controller.rb'
- - 'app/controllers/concerns/session_tracking_concern.rb'
- - 'app/models/concerns/account_merging.rb'
- - 'app/models/concerns/expireable.rb'
- - 'app/models/status.rb'
- - 'app/models/trends/links.rb'
- - 'app/models/trends/preview_card_batch.rb'
- - 'app/models/trends/preview_card_provider_batch.rb'
- - 'app/models/trends/status_batch.rb'
- - 'app/models/trends/statuses.rb'
- - 'app/models/trends/tag_batch.rb'
- - 'app/models/trends/tags.rb'
- - 'app/models/user.rb'
- - 'app/services/activitypub/process_status_update_service.rb'
- - 'app/services/approve_appeal_service.rb'
- - 'app/services/block_domain_service.rb'
- - 'app/services/delete_account_service.rb'
- - 'app/services/process_mentions_service.rb'
- - 'app/services/unallow_domain_service.rb'
- - 'app/services/unblock_domain_service.rb'
- - 'app/services/update_status_service.rb'
- - 'app/workers/activitypub/post_upgrade_worker.rb'
- - 'app/workers/move_worker.rb'
- - 'app/workers/scheduler/ip_cleanup_scheduler.rb'
- - 'app/workers/scheduler/scheduled_statuses_scheduler.rb'
- - 'db/migrate/20161203164520_add_from_account_id_to_notifications.rb'
- - 'db/migrate/20170105224407_add_shortcode_to_media_attachments.rb'
- - 'db/migrate/20170209184350_add_reply_to_statuses.rb'
- - 'db/migrate/20170304202101_add_type_to_media_attachments.rb'
- - 'db/migrate/20180528141303_fix_accounts_unique_index.rb'
- - 'db/migrate/20180609104432_migrate_web_push_subscriptions2.rb'
- - 'db/migrate/20181207011115_downcase_custom_emoji_domains.rb'
- - 'db/migrate/20190511134027_add_silenced_at_suspended_at_to_accounts.rb'
- - 'db/migrate/20191007013357_update_pt_locales.rb'
- - 'db/migrate/20220316233212_update_kurdish_locales.rb'
- - 'db/post_migrate/20190511152737_remove_suspended_silenced_account_fields.rb'
- - 'db/post_migrate/20200917193528_migrate_notifications_type.rb'
- - 'db/post_migrate/20201017234926_fill_account_suspension_origin.rb'
- - '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/mastodon/cli/accounts.rb'
- - 'lib/mastodon/cli/maintenance.rb'
- - 'spec/lib/activitypub/activity/follow_spec.rb'
- - 'spec/services/follow_service_spec.rb'
- - 'spec/services/update_account_service_spec.rb'
- # Configuration parameters: Include.
- # Include: app/models/**/*.rb
- Rails/UniqueValidationWithoutIndex:
- Exclude:
- - 'app/models/account_alias.rb'
- - 'app/models/custom_filter_status.rb'
- - 'app/models/identity.rb'
- - 'app/models/webauthn_credential.rb'
- # Configuration parameters: Include.
- # Include: app/models/**/*.rb
- Rails/UnusedIgnoredColumns:
- Exclude:
- - 'app/models/account.rb'
- - 'app/models/account_stat.rb'
- - 'app/models/admin/action_log.rb'
- - 'app/models/custom_filter.rb'
- - 'app/models/email_domain_block.rb'
- - 'app/models/report.rb'
- - 'app/models/status_edit.rb'
- - 'app/models/user.rb'
- # This cop supports unsafe autocorrection (--autocorrect-all).
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: exists, where
- Rails/WhereExists:
- Exclude:
- - 'app/controllers/activitypub/inboxes_controller.rb'
- - 'app/controllers/admin/email_domain_blocks_controller.rb'
- - 'app/controllers/auth/registrations_controller.rb'
- - 'app/lib/activitypub/activity/create.rb'
- - 'app/lib/delivery_failure_tracker.rb'
- - 'app/lib/feed_manager.rb'
- - 'app/lib/status_cache_hydrator.rb'
- - 'app/lib/suspicious_sign_in_detector.rb'
- - 'app/models/concerns/account_interactions.rb'
- - 'app/models/featured_tag.rb'
- - 'app/models/poll.rb'
- - 'app/models/session_activation.rb'
- - 'app/models/status.rb'
- - 'app/models/user.rb'
- - 'app/policies/status_policy.rb'
- - 'app/serializers/rest/announcement_serializer.rb'
- - 'app/serializers/rest/tag_serializer.rb'
- - 'app/services/activitypub/fetch_remote_status_service.rb'
- - 'app/services/app_sign_up_service.rb'
- - 'app/services/vote_service.rb'
- - 'app/validators/reaction_validator.rb'
- - 'app/validators/vote_validator.rb'
- - 'app/workers/move_worker.rb'
- - 'db/migrate/20190529143559_preserve_old_layout_for_existing_users.rb'
- - 'lib/tasks/tests.rake'
- - 'spec/models/account_spec.rb'
- - 'spec/services/activitypub/process_collection_service_spec.rb'
- - 'spec/services/purge_domain_service_spec.rb'
- - 'spec/services/unallow_domain_service_spec.rb'
- # This cop supports safe autocorrection (--autocorrect).
- # Configuration parameters: AllowOnConstant, AllowOnSelfClass.
- Style/CaseEquality:
- Exclude:
- - 'config/initializers/trusted_proxies.rb'
- # This cop supports unsafe autocorrection (--autocorrect-all).
- # Configuration parameters: AllowedMethods, AllowedPatterns.
- # AllowedMethods: ==, equal?, eql?
- Style/ClassEqualityComparison:
- Exclude:
- - 'app/helpers/jsonld_helper.rb'
- - 'app/serializers/activitypub/outbox_serializer.rb'
- Style/ClassVars:
- Exclude:
- - 'config/initializers/devise.rb'
- # This cop supports safe autocorrection (--autocorrect).
- # Configuration parameters: AllowedVars.
- Style/FetchEnvVar:
- Exclude:
- - 'app/lib/redis_configuration.rb'
- - 'app/lib/translation_service.rb'
- - 'config/environments/development.rb'
- - 'config/environments/production.rb'
- - 'config/initializers/2_limited_federation_mode.rb'
- - 'config/initializers/3_omniauth.rb'
- - 'config/initializers/blacklists.rb'
- - 'config/initializers/cache_buster.rb'
- - 'config/initializers/devise.rb'
- - 'config/initializers/paperclip.rb'
- - 'config/initializers/vapid.rb'
- - 'lib/mastodon/premailer_webpack_strategy.rb'
- - 'lib/mastodon/redis_config.rb'
- - 'lib/tasks/repo.rake'
- - 'spec/features/profile_spec.rb'
- # This cop supports safe autocorrection (--autocorrect).
- # Configuration parameters: EnforcedStyle, MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns.
- # SupportedStyles: annotated, template, unannotated
- # AllowedMethods: redirect
- Style/FormatStringToken:
- Exclude:
- - 'app/models/privacy_policy.rb'
- - 'config/initializers/devise.rb'
- - 'lib/paperclip/color_extractor.rb'
- # This cop supports unsafe autocorrection (--autocorrect-all).
- Style/GlobalStdStream:
- Exclude:
- - 'config/boot.rb'
- - 'config/environments/development.rb'
- - 'config/environments/production.rb'
- # This cop supports safe autocorrection (--autocorrect).
- # Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
- Style/GuardClause:
- Exclude:
- - 'app/controllers/admin/confirmations_controller.rb'
- - 'app/controllers/auth/confirmations_controller.rb'
- - 'app/controllers/auth/passwords_controller.rb'
- - 'app/controllers/settings/two_factor_authentication/webauthn_credentials_controller.rb'
- - 'app/lib/activitypub/activity/block.rb'
- - 'app/lib/request.rb'
- - 'app/lib/request_pool.rb'
- - 'app/lib/webfinger.rb'
- - 'app/lib/webfinger_resource.rb'
- - 'app/models/concerns/account_counters.rb'
- - 'app/models/concerns/ldap_authenticable.rb'
- - 'app/models/tag.rb'
- - 'app/models/user.rb'
- - 'app/services/fan_out_on_write_service.rb'
- - 'app/services/post_status_service.rb'
- - 'app/services/process_hashtags_service.rb'
- - 'app/workers/move_worker.rb'
- - 'app/workers/redownload_avatar_worker.rb'
- - 'app/workers/redownload_header_worker.rb'
- - 'app/workers/redownload_media_worker.rb'
- - 'app/workers/remote_account_refresh_worker.rb'
- - 'config/initializers/devise.rb'
- - 'db/migrate/20170901141119_truncate_preview_cards.rb'
- - '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/cli/accounts.rb'
- - 'lib/mastodon/cli/maintenance.rb'
- - 'lib/mastodon/cli/media.rb'
- - 'lib/paperclip/attachment_extensions.rb'
- - 'lib/tasks/repo.rake'
- # This cop supports safe autocorrection (--autocorrect).
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: braces, no_braces
- Style/HashAsLastArrayItem:
- Exclude:
- - 'app/controllers/admin/statuses_controller.rb'
- - 'app/controllers/api/v1/statuses_controller.rb'
- - 'app/models/concerns/account_counters.rb'
- - 'app/models/concerns/status_threading_concern.rb'
- - 'app/models/status.rb'
- - 'app/services/batched_remove_status_service.rb'
- - 'app/services/notify_service.rb'
- - 'db/migrate/20181024224956_migrate_account_conversations.rb'
- # This cop supports unsafe autocorrection (--autocorrect-all).
- Style/HashTransformValues:
- Exclude:
- - 'app/serializers/rest/web_push_subscription_serializer.rb'
- - 'app/services/import_service.rb'
- # This cop supports safe autocorrection (--autocorrect).
- Style/IfUnlessModifier:
- Exclude:
- - 'config/environments/production.rb'
- - 'config/initializers/devise.rb'
- - 'config/initializers/ffmpeg.rb'
- # This cop supports unsafe autocorrection (--autocorrect-all).
- # Configuration parameters: InverseMethods, InverseBlocks.
- Style/InverseMethods:
- Exclude:
- - 'app/models/custom_filter.rb'
- - 'app/services/update_account_service.rb'
- - 'spec/controllers/activitypub/replies_controller_spec.rb'
- # This cop supports safe autocorrection (--autocorrect).
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: line_count_dependent, lambda, literal
- Style/Lambda:
- Exclude:
- - 'config/initializers/simple_form.rb'
- - 'config/routes.rb'
- # This cop supports unsafe autocorrection (--autocorrect-all).
- Style/MapToHash:
- Exclude:
- - 'app/models/status.rb'
- # This cop supports unsafe autocorrection (--autocorrect-all).
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: literals, strict
- Style/MutableConstant:
- Exclude:
- - 'app/models/tag.rb'
- - 'app/services/delete_account_service.rb'
- - 'lib/mastodon/migration_warning.rb'
- # This cop supports safe autocorrection (--autocorrect).
- Style/NilLambda:
- Exclude:
- - 'config/initializers/paperclip.rb'
- # Configuration parameters: AllowedMethods.
- # AllowedMethods: respond_to_missing?
- Style/OptionalBooleanParameter:
- Exclude:
- - 'app/helpers/admin/account_moderation_notes_helper.rb'
- - 'app/helpers/jsonld_helper.rb'
- - 'app/lib/admin/system_check/message.rb'
- - 'app/lib/request.rb'
- - 'app/lib/webfinger.rb'
- - 'app/services/block_domain_service.rb'
- - 'app/services/fetch_resource_service.rb'
- - 'app/workers/domain_block_worker.rb'
- - 'app/workers/unfollow_follow_worker.rb'
- - 'lib/mastodon/redis_config.rb'
- # This cop supports safe autocorrection (--autocorrect).
- # Configuration parameters: PreferredDelimiters.
- Style/PercentLiteralDelimiters:
- Exclude:
- - 'config/deploy.rb'
- - 'config/initializers/doorkeeper.rb'
- # This cop supports unsafe autocorrection (--autocorrect-all).
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: short, verbose
- Style/PreferredHashMethods:
- Exclude:
- - 'config/initializers/paperclip.rb'
- # This cop supports safe autocorrection (--autocorrect).
- Style/RedundantConstantBase:
- Exclude:
- - 'config/environments/production.rb'
- - 'config/initializers/sidekiq.rb'
- # This cop supports unsafe autocorrection (--autocorrect-all).
- # Configuration parameters: SafeForConstants.
- Style/RedundantFetchBlock:
- Exclude:
- - 'config/initializers/1_hosts.rb'
- - 'config/initializers/chewy.rb'
- - 'config/initializers/devise.rb'
- - '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!
- Style/SafeNavigation:
- Exclude:
- - 'app/models/concerns/account_finder_concern.rb'
- # This cop supports safe autocorrection (--autocorrect).
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: only_raise, only_fail, semantic
- Style/SignalException:
- Exclude:
- - 'lib/devise/two_factor_ldap_authenticatable.rb'
- - 'lib/devise/two_factor_pam_authenticatable.rb'
- # This cop supports unsafe autocorrection (--autocorrect-all).
- Style/SingleArgumentDig:
- Exclude:
- - 'lib/webpacker/manifest_extensions.rb'
- # This cop supports safe autocorrection (--autocorrect).
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: require_parentheses, require_no_parentheses
- Style/StabbyLambdaParentheses:
- Exclude:
- - 'config/environments/production.rb'
- - 'config/initializers/content_security_policy.rb'
- # This cop supports safe autocorrection (--autocorrect).
- Style/StderrPuts:
- Exclude:
- - 'config/boot.rb'
- # This cop supports unsafe autocorrection (--autocorrect-all).
- # Configuration parameters: Mode.
- Style/StringConcatenation:
- Exclude:
- - 'config/initializers/paperclip.rb'
- # This cop supports safe autocorrection (--autocorrect).
- # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
- # SupportedStyles: single_quotes, double_quotes
- Style/StringLiterals:
- Exclude:
- - 'config/environments/production.rb'
- - 'config/initializers/backtrace_silencers.rb'
- - 'config/initializers/http_client_proxy.rb'
- - 'config/initializers/rack_attack.rb'
- - 'config/initializers/webauthn.rb'
- - 'config/routes.rb'
- # This cop supports unsafe autocorrection (--autocorrect-all).
- # Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
- # AllowedMethods: define_method, mail, respond_to
- Style/SymbolProc:
- Exclude:
- - 'config/initializers/3_omniauth.rb'
- # This cop supports safe autocorrection (--autocorrect).
- # Configuration parameters: EnforcedStyle, AllowSafeAssignment.
- # SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
- Style/TernaryParentheses:
- Exclude:
- - 'config/environments/development.rb'
- # This cop supports safe autocorrection (--autocorrect).
- # Configuration parameters: EnforcedStyleForMultiline.
- # SupportedStylesForMultiline: comma, consistent_comma, no_comma
- Style/TrailingCommaInArguments:
- Exclude:
- - 'config/initializers/paperclip.rb'
- # This cop supports safe autocorrection (--autocorrect).
- # Configuration parameters: EnforcedStyleForMultiline.
- # SupportedStylesForMultiline: comma, consistent_comma, no_comma
- Style/TrailingCommaInHashLiteral:
- Exclude:
- - 'config/environments/production.rb'
- - 'config/environments/test.rb'
- # This cop supports safe autocorrection (--autocorrect).
- # Configuration parameters: EnforcedStyle, MinSize, WordRegex.
- # SupportedStyles: percent, brackets
- Style/WordArray:
- Exclude:
- - 'app/helpers/languages_helper.rb'
- - 'spec/controllers/settings/imports_controller_spec.rb'
- - 'spec/models/form/import_spec.rb'
|