Skip to content

Commit

Permalink
Disable Style/FetchEnvVar for env var in Rakefile
Browse files Browse the repository at this point in the history
This cop is useful for required environment variables, but not for
optional ones like `MOCHA_RUN_INTEGRATION_TESTS`.
  • Loading branch information
floehopper committed Jan 1, 2025
1 parent fddebc3 commit d98375c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,8 @@ Style/OptionalBooleanParameter:
- public_instance_methods
- protected_instance_methods
- private_instance_methods

# This cop is useful for required environment variables, but not for optional ones
Style/FetchEnvVar:
AllowedVars:
- MOCHA_RUN_INTEGRATION_TESTS
7 changes: 0 additions & 7 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,6 @@ Metrics/MethodLength:
Metrics/PerceivedComplexity:
Max: 13

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowedVars.
Style/FetchEnvVar:
Exclude:
- 'Rakefile'

# Offense count: 68
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
Expand Down

0 comments on commit d98375c

Please sign in to comment.