2023-02-16 17:33:50 +11:00
|
|
|
# This configuration was generated by
|
2024-06-21 01:30:49 +10:00
|
|
|
# `rubocop --auto-gen-config --auto-gen-only-exclude --no-offense-counts --no-auto-gen-timestamp`
|
2024-07-12 18:22:31 +10:00
|
|
|
# using RuboCop version 1.65.0.
|
2023-02-16 17:33:50 +11: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.
|
|
|
|
|
|
|
|
Lint/NonLocalExitFromIterator:
|
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/jsonld_helper.rb'
|
|
|
|
|
|
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
|
|
|
|
Metrics/AbcSize:
|
2024-01-05 23:26:31 +11:00
|
|
|
Max: 82
|
2023-02-16 17:33:50 +11:00
|
|
|
|
2024-07-12 18:22:31 +10:00
|
|
|
# Configuration parameters: CountBlocks, CountModifierForms, Max.
|
2023-02-16 17:33:50 +11:00
|
|
|
Metrics/BlockNesting:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/tasks/mastodon.rake'
|
|
|
|
|
|
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
|
|
Metrics/CyclomaticComplexity:
|
2023-03-16 14:31:08 +11:00
|
|
|
Max: 25
|
2023-02-16 17:33:50 +11:00
|
|
|
|
2023-03-16 14:31:08 +11:00
|
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
2023-02-16 17:33:50 +11:00
|
|
|
Metrics/PerceivedComplexity:
|
2023-06-14 02:42:51 +10:00
|
|
|
Max: 27
|
2023-02-16 17:33:50 +11:00
|
|
|
|
2023-03-17 20:13:28 +11:00
|
|
|
Rails/OutputSafety:
|
|
|
|
Exclude:
|
|
|
|
- 'config/initializers/simple_form.rb'
|
|
|
|
|
2023-03-16 14:31:08 +11: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 20:13:28 +11:00
|
|
|
- 'config/environments/production.rb'
|
2023-08-03 03:32:48 +10:00
|
|
|
- 'config/initializers/2_limited_federation_mode.rb'
|
2023-09-14 03:54:04 +10:00
|
|
|
- 'config/initializers/3_omniauth.rb'
|
2023-03-17 20:13:28 +11:00
|
|
|
- 'config/initializers/cache_buster.rb'
|
|
|
|
- 'config/initializers/devise.rb'
|
|
|
|
- 'config/initializers/paperclip.rb'
|
|
|
|
- 'config/initializers/vapid.rb'
|
2023-03-16 14:31:08 +11:00
|
|
|
- 'lib/mastodon/redis_config.rb'
|
|
|
|
- 'lib/tasks/repo.rake'
|
|
|
|
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
# Configuration parameters: EnforcedStyle, MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns.
|
|
|
|
# SupportedStyles: annotated, template, unannotated
|
2023-03-17 20:13:28 +11:00
|
|
|
# AllowedMethods: redirect
|
2023-03-16 14:31:08 +11:00
|
|
|
Style/FormatStringToken:
|
|
|
|
Exclude:
|
2023-03-17 20:13:28 +11:00
|
|
|
- 'config/initializers/devise.rb'
|
2023-03-16 14:31:08 +11:00
|
|
|
- 'lib/paperclip/color_extractor.rb'
|
|
|
|
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
|
|
|
|
Style/GuardClause:
|
2024-06-21 01:30:49 +10:00
|
|
|
Enabled: false
|
2023-03-16 14:31:08 +11:00
|
|
|
|
2023-02-16 17:33:50 +11:00
|
|
|
# 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 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 09:46:18 +10:00
|
|
|
- 'lib/mastodon/migration_warning.rb'
|
2023-02-16 17:33:50 +11:00
|
|
|
|
|
|
|
# Configuration parameters: AllowedMethods.
|
|
|
|
# AllowedMethods: respond_to_missing?
|
|
|
|
Style/OptionalBooleanParameter:
|
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/jsonld_helper.rb'
|
2023-03-17 09:07:25 +11:00
|
|
|
- 'app/lib/admin/system_check/message.rb'
|
2023-02-16 17:33:50 +11: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 20:13:28 +11:00
|
|
|
# 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 safe autocorrection (--autocorrect).
|
2024-01-05 23:26:31 +11:00
|
|
|
# Configuration parameters: WordRegex.
|
2023-03-17 20:13:28 +11:00
|
|
|
# SupportedStyles: percent, brackets
|
|
|
|
Style/WordArray:
|
2024-01-05 23:26:31 +11:00
|
|
|
EnforcedStyle: percent
|
|
|
|
MinSize: 3
|