mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-27 13:51:36 +01:00
ef3d15554b
Conflicts: - `Gemfile.lock`: Changes were already cherry-picked and updated further in glitch-soc. Kept glitch-soc's version. - `README.md`: Upstream updated its README, we have a completely different one. Kept glitch-soc's README. - `app/models/account.rb`: Not a real conflict, upstream updated some lines textually adjacent to glitch-soc-specific lines. Ported upstream's changes.
298 lines
9.8 KiB
YAML
298 lines
9.8 KiB
YAML
# 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.60.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'
|
|
|
|
Lint/NonLocalExitFromIterator:
|
|
Exclude:
|
|
- 'app/helpers/jsonld_helper.rb'
|
|
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
|
|
Metrics/AbcSize:
|
|
Max: 90
|
|
|
|
# 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
|
|
|
|
# Configuration parameters: CountAsOne.
|
|
RSpec/ExampleLength:
|
|
Max: 20 # Override default of 5
|
|
|
|
RSpec/MultipleExpectations:
|
|
Max: 7
|
|
|
|
# Configuration parameters: AllowSubject.
|
|
RSpec/MultipleMemoizedHelpers:
|
|
Max: 17
|
|
|
|
# Configuration parameters: AllowedGroups.
|
|
RSpec/NestedGroups:
|
|
Max: 6
|
|
|
|
# Configuration parameters: Include.
|
|
# Include: app/models/**/*.rb
|
|
Rails/HasAndBelongsToMany:
|
|
Exclude:
|
|
- 'app/models/concerns/account/associations.rb'
|
|
- 'app/models/status.rb'
|
|
- 'app/models/tag.rb'
|
|
|
|
Rails/OutputSafety:
|
|
Exclude:
|
|
- 'config/initializers/simple_form.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: 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/redis_config.rb'
|
|
- 'lib/premailer_webpack_strategy.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:
|
|
- 'config/initializers/devise.rb'
|
|
- 'lib/paperclip/color_extractor.rb'
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
Style/GlobalStdStream:
|
|
Exclude:
|
|
- 'config/environments/development.rb'
|
|
- 'config/environments/production.rb'
|
|
|
|
# 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'
|
|
- 'app/models/concerns/account/counters.rb'
|
|
- 'app/models/concerns/user/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'
|
|
- 'lib/devise/strategies/two_factor_ldap_authenticatable.rb'
|
|
- 'lib/devise/strategies/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'
|
|
|
|
# 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).
|
|
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 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/strategies/two_factor_ldap_authenticatable.rb'
|
|
- 'lib/devise/strategies/two_factor_pam_authenticatable.rb'
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
Style/SingleArgumentDig:
|
|
Exclude:
|
|
- 'lib/webpacker/manifest_extensions.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 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: WordRegex.
|
|
# SupportedStyles: percent, brackets
|
|
Style/WordArray:
|
|
EnforcedStyle: percent
|
|
MinSize: 3
|