2023-02-15 22:33:50 -08:00
|
|
|
# This configuration was generated by
|
2023-03-15 20:31:08 -07:00
|
|
|
# `rubocop --auto-gen-config --auto-gen-only-exclude --no-exclude-limit --no-offense-counts --no-auto-gen-timestamp`
|
2024-04-02 12:56:54 -07:00
|
|
|
# using RuboCop version 1.62.1.
|
2023-02-15 22:33:50 -08: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 04:26:31 -08:00
|
|
|
Max: 82
|
2023-02-15 22:33:50 -08:00
|
|
|
|
|
|
|
# Configuration parameters: CountBlocks, Max.
|
|
|
|
Metrics/BlockNesting:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/tasks/mastodon.rake'
|
|
|
|
|
|
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
|
|
Metrics/CyclomaticComplexity:
|
2023-03-15 20:31:08 -07:00
|
|
|
Max: 25
|
2023-02-15 22:33:50 -08:00
|
|
|
|
2023-03-15 20:31:08 -07:00
|
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
2023-02-15 22:33:50 -08:00
|
|
|
Metrics/PerceivedComplexity:
|
2023-06-13 09:42:51 -07:00
|
|
|
Max: 27
|
2023-02-15 22:33:50 -08:00
|
|
|
|
|
|
|
# Configuration parameters: CountAsOne.
|
|
|
|
RSpec/ExampleLength:
|
2024-04-02 12:56:54 -07:00
|
|
|
Max: 18
|
2023-02-15 22:33:50 -08:00
|
|
|
|
|
|
|
RSpec/MultipleExpectations:
|
2024-02-06 05:04:02 -08:00
|
|
|
Max: 7
|
2023-02-15 22:33:50 -08:00
|
|
|
|
|
|
|
# Configuration parameters: AllowSubject.
|
|
|
|
RSpec/MultipleMemoizedHelpers:
|
2024-01-05 04:26:31 -08:00
|
|
|
Max: 17
|
2023-02-15 22:33:50 -08:00
|
|
|
|
|
|
|
# Configuration parameters: AllowedGroups.
|
|
|
|
RSpec/NestedGroups:
|
|
|
|
Max: 6
|
|
|
|
|
2023-03-17 02:13:28 -07:00
|
|
|
Rails/OutputSafety:
|
|
|
|
Exclude:
|
|
|
|
- 'config/initializers/simple_form.rb'
|
|
|
|
|
2023-10-24 01:08:31 -07:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2023-02-15 22:33:50 -08:00
|
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
|
|
# AllowedMethods: ==, equal?, eql?
|
|
|
|
Style/ClassEqualityComparison:
|
|
|
|
Exclude:
|
|
|
|
- 'app/helpers/jsonld_helper.rb'
|
|
|
|
- 'app/serializers/activitypub/outbox_serializer.rb'
|
|
|
|
|
2023-03-15 20:31:08 -07: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 02:13:28 -07:00
|
|
|
- 'config/environments/production.rb'
|
2023-08-02 10:32:48 -07:00
|
|
|
- 'config/initializers/2_limited_federation_mode.rb'
|
2023-09-13 10:54:04 -07:00
|
|
|
- 'config/initializers/3_omniauth.rb'
|
2023-03-17 02:13:28 -07:00
|
|
|
- 'config/initializers/blacklists.rb'
|
|
|
|
- 'config/initializers/cache_buster.rb'
|
|
|
|
- 'config/initializers/devise.rb'
|
|
|
|
- 'config/initializers/paperclip.rb'
|
|
|
|
- 'config/initializers/vapid.rb'
|
2023-03-15 20:31:08 -07:00
|
|
|
- 'lib/mastodon/redis_config.rb'
|
|
|
|
- 'lib/tasks/repo.rake'
|
2024-05-10 05:36:09 -07:00
|
|
|
- 'spec/system/profile_spec.rb'
|
2023-03-15 20:31:08 -07:00
|
|
|
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
# Configuration parameters: EnforcedStyle, MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns.
|
|
|
|
# SupportedStyles: annotated, template, unannotated
|
2023-03-17 02:13:28 -07:00
|
|
|
# AllowedMethods: redirect
|
2023-03-15 20:31:08 -07:00
|
|
|
Style/FormatStringToken:
|
|
|
|
Exclude:
|
2023-03-17 02:13:28 -07:00
|
|
|
- 'config/initializers/devise.rb'
|
2023-03-15 20:31:08 -07:00
|
|
|
- 'lib/paperclip/color_extractor.rb'
|
|
|
|
|
2023-03-17 02:13:28 -07:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
Style/GlobalStdStream:
|
|
|
|
Exclude:
|
|
|
|
- 'config/environments/development.rb'
|
|
|
|
- 'config/environments/production.rb'
|
|
|
|
|
2023-03-15 20:31:08 -07:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
|
|
|
|
Style/GuardClause:
|
|
|
|
Exclude:
|
|
|
|
- '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 03:00:41 -08:00
|
|
|
- 'app/models/concerns/account/counters.rb'
|
|
|
|
- 'app/models/concerns/user/ldap_authenticable.rb'
|
2023-03-15 20:31:08 -07: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 02:13:28 -07:00
|
|
|
- 'config/initializers/devise.rb'
|
2023-11-29 02:10:21 -08:00
|
|
|
- 'lib/devise/strategies/two_factor_ldap_authenticatable.rb'
|
|
|
|
- 'lib/devise/strategies/two_factor_pam_authenticatable.rb'
|
2023-05-23 07:08:26 -07:00
|
|
|
- 'lib/mastodon/cli/accounts.rb'
|
|
|
|
- 'lib/mastodon/cli/maintenance.rb'
|
|
|
|
- 'lib/mastodon/cli/media.rb'
|
2023-03-15 20:31:08 -07:00
|
|
|
- 'lib/tasks/repo.rake'
|
|
|
|
|
2023-02-15 22:33:50 -08:00
|
|
|
# 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 02:13:28 -07:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
Style/IfUnlessModifier:
|
|
|
|
Exclude:
|
|
|
|
- 'config/environments/production.rb'
|
|
|
|
- 'config/initializers/devise.rb'
|
|
|
|
- 'config/initializers/ffmpeg.rb'
|
|
|
|
|
2023-02-15 22:33:50 -08: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-26 16:46:18 -07:00
|
|
|
- 'lib/mastodon/migration_warning.rb'
|
2023-02-15 22:33:50 -08:00
|
|
|
|
2023-03-17 02:13:28 -07:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
Style/NilLambda:
|
|
|
|
Exclude:
|
|
|
|
- 'config/initializers/paperclip.rb'
|
|
|
|
|
2023-02-15 22:33:50 -08: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 15:07:25 -07:00
|
|
|
- 'app/lib/admin/system_check/message.rb'
|
2023-02-15 22:33:50 -08: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 02:13:28 -07: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 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-15 22:33:50 -08: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 03:00:41 -08:00
|
|
|
- 'app/models/concerns/account/finder_concern.rb'
|
2023-02-15 22:33:50 -08:00
|
|
|
|
2023-03-17 02:13:28 -07:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
# Configuration parameters: Mode.
|
|
|
|
Style/StringConcatenation:
|
|
|
|
Exclude:
|
|
|
|
- 'config/initializers/paperclip.rb'
|
|
|
|
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
2024-01-05 04:26:31 -08:00
|
|
|
# Configuration parameters: WordRegex.
|
2023-03-17 02:13:28 -07:00
|
|
|
# SupportedStyles: percent, brackets
|
|
|
|
Style/WordArray:
|
2024-01-05 04:26:31 -08:00
|
|
|
EnforcedStyle: percent
|
|
|
|
MinSize: 3
|