2023-02-16 06:33:50 +00:00
|
|
|
# This configuration was generated by
|
2023-03-16 03:31:08 +00:00
|
|
|
# `rubocop --auto-gen-config --auto-gen-only-exclude --no-exclude-limit --no-offense-counts --no-auto-gen-timestamp`
|
2024-01-05 12:26:31 +00:00
|
|
|
# using RuboCop version 1.59.0.
|
2023-02-16 06:33:50 +00:00
|
|
|
# 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'
|
|
|
|
|
2023-07-28 22:11:45 +01:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
# Configuration parameters: Max, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
|
|
|
|
# URISchemes: http, https
|
|
|
|
Layout/LineLength:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/account.rb'
|
|
|
|
|
2023-02-16 06:33:50 +00:00
|
|
|
Lint/NonLocalExitFromIterator:
|
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/jsonld_helper.rb'
|
|
|
|
|
|
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
|
|
|
|
Metrics/AbcSize:
|
2024-01-05 12:26:31 +00:00
|
|
|
Max: 82
|
2023-02-16 06:33:50 +00:00
|
|
|
|
|
|
|
# Configuration parameters: CountBlocks, Max.
|
|
|
|
Metrics/BlockNesting:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/tasks/mastodon.rake'
|
|
|
|
|
|
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
|
|
Metrics/CyclomaticComplexity:
|
2023-03-16 03:31:08 +00:00
|
|
|
Max: 25
|
2023-02-16 06:33:50 +00:00
|
|
|
|
2023-03-16 03:31:08 +00:00
|
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
2023-02-16 06:33:50 +00:00
|
|
|
Metrics/PerceivedComplexity:
|
2023-06-13 17:42:51 +01:00
|
|
|
Max: 27
|
2023-02-16 06:33:50 +00:00
|
|
|
|
|
|
|
# Configuration parameters: CountAsOne.
|
|
|
|
RSpec/ExampleLength:
|
|
|
|
Max: 22
|
|
|
|
|
|
|
|
RSpec/MultipleExpectations:
|
2023-06-10 17:38:22 +01:00
|
|
|
Max: 8
|
2023-02-16 06:33:50 +00:00
|
|
|
|
|
|
|
# Configuration parameters: AllowSubject.
|
|
|
|
RSpec/MultipleMemoizedHelpers:
|
2024-01-05 12:26:31 +00:00
|
|
|
Max: 17
|
2023-02-16 06:33:50 +00:00
|
|
|
|
|
|
|
# Configuration parameters: AllowedGroups.
|
|
|
|
RSpec/NestedGroups:
|
|
|
|
Max: 6
|
|
|
|
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
Rails/ApplicationController:
|
|
|
|
Exclude:
|
|
|
|
- 'app/controllers/health_controller.rb'
|
|
|
|
|
2023-03-17 09:13:28 +00:00
|
|
|
# Configuration parameters: Include.
|
2023-02-16 06:33:50 +00:00
|
|
|
# Include: app/models/**/*.rb
|
|
|
|
Rails/HasAndBelongsToMany:
|
|
|
|
Exclude:
|
2023-12-01 11:00:41 +00:00
|
|
|
- 'app/models/concerns/account/associations.rb'
|
2023-02-16 06:33:50 +00:00
|
|
|
- 'app/models/status.rb'
|
|
|
|
- 'app/models/tag.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'
|
|
|
|
|
2023-03-17 09:13:28 +00:00
|
|
|
Rails/OutputSafety:
|
|
|
|
Exclude:
|
|
|
|
- 'config/initializers/simple_form.rb'
|
|
|
|
|
2023-02-16 06:33:50 +00:00
|
|
|
# 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'
|
2023-12-01 11:00:41 +00:00
|
|
|
- 'app/models/concerns/account/merging.rb'
|
2023-02-16 06:33:50 +00:00
|
|
|
- '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'
|
2023-05-23 15:08:26 +01:00
|
|
|
- 'lib/mastodon/cli/accounts.rb'
|
|
|
|
- 'lib/mastodon/cli/maintenance.rb'
|
2023-02-16 06:33:50 +00:00
|
|
|
- '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'
|
|
|
|
|
|
|
|
# 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/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'
|
2023-12-01 11:00:41 +00:00
|
|
|
- 'app/models/concerns/account/interactions.rb'
|
2023-02-16 06:33:50 +00:00
|
|
|
- '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/vote_service.rb'
|
|
|
|
- 'app/validators/reaction_validator.rb'
|
|
|
|
- 'app/validators/vote_validator.rb'
|
|
|
|
- 'app/workers/move_worker.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'
|
|
|
|
|
2023-10-24 09:08:31 +01:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2023-02-16 06:33:50 +00:00
|
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
|
|
# AllowedMethods: ==, equal?, eql?
|
|
|
|
Style/ClassEqualityComparison:
|
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/jsonld_helper.rb'
|
|
|
|
- 'app/serializers/activitypub/outbox_serializer.rb'
|
|
|
|
|
2023-03-17 09:13:28 +00:00
|
|
|
Style/ClassVars:
|
|
|
|
Exclude:
|
|
|
|
- 'config/initializers/devise.rb'
|
|
|
|
|
2023-03-16 03:31:08 +00:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
# Configuration parameters: AllowedVars.
|
|
|
|
Style/FetchEnvVar:
|
|
|
|
Exclude:
|
|
|
|
- 'app/lib/redis_configuration.rb'
|
|
|
|
- 'app/lib/translation_service.rb'
|
2023-03-17 09:13:28 +00:00
|
|
|
- 'config/environments/development.rb'
|
|
|
|
- 'config/environments/production.rb'
|
2023-08-02 18:32:48 +01:00
|
|
|
- 'config/initializers/2_limited_federation_mode.rb'
|
2023-09-13 18:54:04 +01:00
|
|
|
- 'config/initializers/3_omniauth.rb'
|
2023-03-17 09:13:28 +00:00
|
|
|
- 'config/initializers/blacklists.rb'
|
|
|
|
- 'config/initializers/cache_buster.rb'
|
|
|
|
- 'config/initializers/devise.rb'
|
|
|
|
- 'config/initializers/paperclip.rb'
|
|
|
|
- 'config/initializers/vapid.rb'
|
2023-03-16 03:31:08 +00:00
|
|
|
- 'lib/mastodon/redis_config.rb'
|
2024-01-05 12:26:31 +00:00
|
|
|
- 'lib/premailer_webpack_strategy.rb'
|
2023-03-16 03:31:08 +00:00
|
|
|
- '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
|
2023-03-17 09:13:28 +00:00
|
|
|
# AllowedMethods: redirect
|
2023-03-16 03:31:08 +00:00
|
|
|
Style/FormatStringToken:
|
|
|
|
Exclude:
|
|
|
|
- 'app/models/privacy_policy.rb'
|
2023-03-17 09:13:28 +00:00
|
|
|
- 'config/initializers/devise.rb'
|
2023-03-16 03:31:08 +00:00
|
|
|
- 'lib/paperclip/color_extractor.rb'
|
|
|
|
|
2023-03-17 09:13:28 +00:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
Style/GlobalStdStream:
|
|
|
|
Exclude:
|
|
|
|
- 'config/environments/development.rb'
|
|
|
|
- 'config/environments/production.rb'
|
|
|
|
|
2023-03-16 03:31:08 +00:00
|
|
|
# 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'
|
2023-12-01 11:00:41 +00:00
|
|
|
- 'app/models/concerns/account/counters.rb'
|
|
|
|
- 'app/models/concerns/user/ldap_authenticable.rb'
|
2023-03-16 03:31:08 +00:00
|
|
|
- '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'
|
2023-03-17 09:13:28 +00:00
|
|
|
- 'config/initializers/devise.rb'
|
2023-11-29 10:10:21 +00:00
|
|
|
- 'lib/devise/strategies/two_factor_ldap_authenticatable.rb'
|
|
|
|
- 'lib/devise/strategies/two_factor_pam_authenticatable.rb'
|
2023-05-23 15:08:26 +01:00
|
|
|
- 'lib/mastodon/cli/accounts.rb'
|
|
|
|
- 'lib/mastodon/cli/maintenance.rb'
|
|
|
|
- 'lib/mastodon/cli/media.rb'
|
2023-03-16 03:31:08 +00:00
|
|
|
- 'lib/paperclip/attachment_extensions.rb'
|
|
|
|
- 'lib/tasks/repo.rake'
|
|
|
|
|
2023-02-16 06:33:50 +00:00
|
|
|
# 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'
|
2023-12-01 11:00:41 +00:00
|
|
|
- 'app/models/concerns/account/counters.rb'
|
|
|
|
- 'app/models/concerns/status/threading_concern.rb'
|
2023-02-16 06:33:50 +00:00
|
|
|
- 'app/models/status.rb'
|
|
|
|
- 'app/services/batched_remove_status_service.rb'
|
|
|
|
- 'app/services/notify_service.rb'
|
|
|
|
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
Style/HashTransformValues:
|
|
|
|
Exclude:
|
|
|
|
- 'app/serializers/rest/web_push_subscription_serializer.rb'
|
|
|
|
- 'app/services/import_service.rb'
|
|
|
|
|
2023-03-17 09:13:28 +00:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
Style/IfUnlessModifier:
|
|
|
|
Exclude:
|
|
|
|
- 'config/environments/production.rb'
|
|
|
|
- 'config/initializers/devise.rb'
|
|
|
|
- 'config/initializers/ffmpeg.rb'
|
|
|
|
|
2023-02-16 06:33:50 +00:00
|
|
|
# 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'
|
2023-04-27 00:46:18 +01:00
|
|
|
- 'lib/mastodon/migration_warning.rb'
|
2023-02-16 06:33:50 +00:00
|
|
|
|
2023-03-17 09:13:28 +00:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
Style/NilLambda:
|
|
|
|
Exclude:
|
|
|
|
- 'config/initializers/paperclip.rb'
|
|
|
|
|
2023-02-16 06:33:50 +00:00
|
|
|
# Configuration parameters: AllowedMethods.
|
|
|
|
# AllowedMethods: respond_to_missing?
|
|
|
|
Style/OptionalBooleanParameter:
|
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/admin/account_moderation_notes_helper.rb'
|
|
|
|
- 'app/helpers/jsonld_helper.rb'
|
2023-03-16 22:07:25 +00:00
|
|
|
- 'app/lib/admin/system_check/message.rb'
|
2023-02-16 06:33:50 +00:00
|
|
|
- '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'
|
|
|
|
|
2023-03-17 09:13:28 +00:00
|
|
|
# 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'
|
|
|
|
|
2023-02-16 06:33:50 +00:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
|
|
|
|
# AllowedMethods: present?, blank?, presence, try, try!
|
|
|
|
Style/SafeNavigation:
|
|
|
|
Exclude:
|
2023-12-01 11:00:41 +00:00
|
|
|
- 'app/models/concerns/account/finder_concern.rb'
|
2023-02-16 06:33:50 +00:00
|
|
|
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: only_raise, only_fail, semantic
|
|
|
|
Style/SignalException:
|
|
|
|
Exclude:
|
2023-11-29 10:10:21 +00:00
|
|
|
- 'lib/devise/strategies/two_factor_ldap_authenticatable.rb'
|
|
|
|
- 'lib/devise/strategies/two_factor_pam_authenticatable.rb'
|
2023-02-16 06:33:50 +00:00
|
|
|
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
Style/SingleArgumentDig:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/webpacker/manifest_extensions.rb'
|
|
|
|
|
2023-03-17 09:13:28 +00:00
|
|
|
# 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 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).
|
2024-01-05 12:26:31 +00:00
|
|
|
# Configuration parameters: WordRegex.
|
2023-03-17 09:13:28 +00:00
|
|
|
# SupportedStyles: percent, brackets
|
|
|
|
Style/WordArray:
|
2024-01-05 12:26:31 +00:00
|
|
|
EnforcedStyle: percent
|
|
|
|
MinSize: 3
|