Skip to content

Commit

Permalink
Disable Style/OptionalBooleanParameter cop
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski committed Apr 29, 2024
1 parent f1a4b4e commit eec0522
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
5 changes: 5 additions & 0 deletions .rubocop.yml
Expand Up @@ -199,6 +199,11 @@ Style/NumericLiterals:
AllowedPatterns:
- \d{4}_\d{2}_\d{2}_\d{6} # For DB migration date version number readability

# Reason: Prevailing style choice
# https://docs.rubocop.org/rubocop/cops_style.html#styleoptionalbooleanparameter
Style/OptionalBooleanParameter:
Enabled: false

# Reason:
# https://docs.rubocop.org/rubocop/cops_style.html#stylepercentliteraldelimiters
Style/PercentLiteralDelimiters:
Expand Down
15 changes: 0 additions & 15 deletions .rubocop_todo.yml
Expand Up @@ -160,21 +160,6 @@ 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 unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: short, verbose
Expand Down

0 comments on commit eec0522

Please sign in to comment.