|
|
|
@ -1,6 +1,6 @@ |
|
|
|
|
# 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.50.2. |
|
|
|
|
# using RuboCop version 1.52.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 |
|
|
|
@ -48,17 +48,14 @@ Layout/SpaceInLambdaLiteral: |
|
|
|
|
- 'config/environments/production.rb' |
|
|
|
|
- 'config/initializers/content_security_policy.rb' |
|
|
|
|
|
|
|
|
|
# This cop supports safe autocorrection (--autocorrect). |
|
|
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns. |
|
|
|
|
Lint/AmbiguousBlockAssociation: |
|
|
|
|
Exclude: |
|
|
|
|
- 'spec/controllers/admin/account_moderation_notes_controller_spec.rb' |
|
|
|
|
- 'spec/controllers/settings/two_factor_authentication/confirmations_controller_spec.rb' |
|
|
|
|
- 'spec/controllers/settings/two_factor_authentication/otp_authentication_controller_spec.rb' |
|
|
|
|
- 'spec/controllers/settings/two_factor_authentication/webauthn_credentials_controller_spec.rb' |
|
|
|
|
- 'spec/services/activitypub/process_status_update_service_spec.rb' |
|
|
|
|
- 'spec/services/post_status_service_spec.rb' |
|
|
|
|
- 'spec/services/suspend_account_service_spec.rb' |
|
|
|
|
- 'spec/services/unsuspend_account_service_spec.rb' |
|
|
|
|
- 'spec/workers/scheduler/accounts_statuses_cleanup_scheduler_spec.rb' |
|
|
|
|
|
|
|
|
|
# Configuration parameters: AllowComments, AllowEmptyLambdas. |
|
|
|
@ -124,6 +121,7 @@ Lint/UnusedBlockArgument: |
|
|
|
|
- 'config/initializers/paperclip.rb' |
|
|
|
|
- 'config/initializers/simple_form.rb' |
|
|
|
|
|
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all). |
|
|
|
|
Lint/UselessAssignment: |
|
|
|
|
Exclude: |
|
|
|
|
- 'app/services/activitypub/process_status_update_service.rb' |
|
|
|
@ -145,6 +143,7 @@ Lint/UselessAssignment: |
|
|
|
|
- 'spec/services/resolve_url_service_spec.rb' |
|
|
|
|
- 'spec/views/statuses/show.html.haml_spec.rb' |
|
|
|
|
|
|
|
|
|
# This cop supports safe autocorrection (--autocorrect). |
|
|
|
|
# Configuration parameters: CheckForMethodsWithNoSideEffects. |
|
|
|
|
Lint/Void: |
|
|
|
|
Exclude: |
|
|
|
@ -165,7 +164,7 @@ Metrics/CyclomaticComplexity: |
|
|
|
|
|
|
|
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns. |
|
|
|
|
Metrics/PerceivedComplexity: |
|
|
|
|
Max: 28 |
|
|
|
|
Max: 27 |
|
|
|
|
|
|
|
|
|
Naming/AccessorMethodName: |
|
|
|
|
Exclude: |
|
|
|
@ -178,6 +177,7 @@ Naming/FileName: |
|
|
|
|
Exclude: |
|
|
|
|
- 'config/locales/sr-Latn.rb' |
|
|
|
|
|
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all). |
|
|
|
|
# Configuration parameters: EnforcedStyleForLeadingUnderscores. |
|
|
|
|
# SupportedStylesForLeadingUnderscores: disallowed, required, optional |
|
|
|
|
Naming/MemoizedInstanceVariableName: |
|
|
|
@ -320,8 +320,6 @@ RSpec/LetSetup: |
|
|
|
|
- 'spec/controllers/admin/statuses_controller_spec.rb' |
|
|
|
|
- 'spec/controllers/api/v1/accounts/statuses_controller_spec.rb' |
|
|
|
|
- 'spec/controllers/api/v1/admin/accounts_controller_spec.rb' |
|
|
|
|
- 'spec/controllers/api/v1/admin/domain_allows_controller_spec.rb' |
|
|
|
|
- 'spec/controllers/api/v1/admin/domain_blocks_controller_spec.rb' |
|
|
|
|
- 'spec/controllers/api/v1/filters_controller_spec.rb' |
|
|
|
|
- 'spec/controllers/api/v1/followed_tags_controller_spec.rb' |
|
|
|
|
- 'spec/controllers/api/v1/tags_controller_spec.rb' |
|
|
|
@ -422,7 +420,6 @@ RSpec/StubbedMock: |
|
|
|
|
RSpec/SubjectDeclaration: |
|
|
|
|
Exclude: |
|
|
|
|
- 'spec/controllers/admin/domain_blocks_controller_spec.rb' |
|
|
|
|
- 'spec/controllers/api/v1/admin/domain_blocks_controller_spec.rb' |
|
|
|
|
- 'spec/models/account_migration_spec.rb' |
|
|
|
|
- 'spec/models/account_spec.rb' |
|
|
|
|
- 'spec/models/relationship_filter_spec.rb' |
|
|
|
@ -597,7 +594,6 @@ Rails/NegateInclude: |
|
|
|
|
- 'app/models/concerns/attachmentable.rb' |
|
|
|
|
- 'app/models/concerns/remotable.rb' |
|
|
|
|
- 'app/models/custom_filter.rb' |
|
|
|
|
- 'app/models/webhook.rb' |
|
|
|
|
- 'app/services/activitypub/process_status_update_service.rb' |
|
|
|
|
- 'app/services/fetch_link_card_service.rb' |
|
|
|
|
- 'app/services/search_service.rb' |
|
|
|
@ -767,11 +763,9 @@ Rails/WhereExists: |
|
|
|
|
- 'app/workers/move_worker.rb' |
|
|
|
|
- 'db/migrate/20190529143559_preserve_old_layout_for_existing_users.rb' |
|
|
|
|
- 'lib/tasks/tests.rake' |
|
|
|
|
- 'spec/controllers/api/v1/accounts/notes_controller_spec.rb' |
|
|
|
|
- 'spec/controllers/api/v1/tags_controller_spec.rb' |
|
|
|
|
- 'spec/models/account_spec.rb' |
|
|
|
|
- 'spec/services/activitypub/process_collection_service_spec.rb' |
|
|
|
|
- 'spec/services/post_status_service_spec.rb' |
|
|
|
|
- 'spec/services/purge_domain_service_spec.rb' |
|
|
|
|
- 'spec/services/unallow_domain_service_spec.rb' |
|
|
|
|
|
|
|
|
@ -793,6 +787,7 @@ Style/ClassVars: |
|
|
|
|
Exclude: |
|
|
|
|
- 'config/initializers/devise.rb' |
|
|
|
|
|
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all). |
|
|
|
|
Style/CombinableLoops: |
|
|
|
|
Exclude: |
|
|
|
|
- 'app/models/form/custom_emoji_batch.rb' |
|
|
|
|