mirror of
https://github.com/funamitech/mastodon
synced 2025-01-24 02:34:17 +09:00
0aa69487a2
Conflicts: - `app/models/concerns/user/has_settings.rb`: Not a real conflict, upstream added a setting textually close to a glitch-soc one. Added upstream's new setting. - `app/views/settings/preferences/appearance/show.html.haml`: Not a real conflict, upstream added a setting textually close to a glitch-soc one. Added upstream's new setting. - `config/routes.rb`: Upstream moved web app routes to `config/routes/web_app.rb`, while glitch-soc had an extra route. Moved the extra route to `config/routes/web_app.rb`. - `spec/controllers/settings/preferences/appearance_controller_spec.rb`: This spec got converted to a system spec upstream. However, the theme setting works differently in glitch-soc, so the spec had been changed. Changed the corresponding system spec as well.
113 lines
3.6 KiB
YAML
113 lines
3.6 KiB
YAML
# This configuration was generated by
|
|
# `rubocop --auto-gen-config --auto-gen-only-exclude --no-offense-counts --no-auto-gen-timestamp`
|
|
# using RuboCop version 1.69.1.
|
|
# 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:
|
|
Max: 90
|
|
|
|
# Configuration parameters: CountBlocks, CountModifierForms, Max.
|
|
Metrics/BlockNesting:
|
|
Exclude:
|
|
- 'lib/tasks/mastodon.rake'
|
|
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
Metrics/CyclomaticComplexity:
|
|
Max: 25
|
|
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
Metrics/PerceivedComplexity:
|
|
Max: 27
|
|
|
|
Rails/OutputSafety:
|
|
Exclude:
|
|
- 'config/initializers/simple_form.rb'
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
# Configuration parameters: AllowedVars.
|
|
Style/FetchEnvVar:
|
|
Exclude:
|
|
- 'config/environments/production.rb'
|
|
- 'config/initializers/2_limited_federation_mode.rb'
|
|
- 'config/initializers/3_omniauth.rb'
|
|
- 'config/initializers/cache_buster.rb'
|
|
- 'config/initializers/devise.rb'
|
|
- 'config/initializers/paperclip.rb'
|
|
- 'config/initializers/vapid.rb'
|
|
- 'lib/tasks/repo.rake'
|
|
|
|
# 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 safe autocorrection (--autocorrect).
|
|
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
|
|
Style/GuardClause:
|
|
Enabled: false
|
|
|
|
# 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'
|
|
- 'lib/mastodon/migration_warning.rb'
|
|
|
|
# Configuration parameters: AllowedMethods.
|
|
# AllowedMethods: respond_to_missing?
|
|
Style/OptionalBooleanParameter:
|
|
Exclude:
|
|
- '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'
|
|
|
|
# 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).
|
|
# Configuration parameters: WordRegex.
|
|
# SupportedStyles: percent, brackets
|
|
Style/WordArray:
|
|
EnforcedStyle: percent
|
|
MinSize: 3
|