Skip to content

Commit

Permalink
Disable the Rails/RakeEnvironment cop
Browse files Browse the repository at this point in the history
We're not writing application code in which it's ok to assume that all
tasks should load the environment first.
  • Loading branch information
elia committed Dec 18, 2023
1 parent 44140a0 commit 542a111
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -345,3 +345,8 @@ Lint/MissingSuper:
Rails/FindEach:
Exclude:
- 'db/migrate/**/*'

# Since we're writing library code we can't assume that
# tasks should load the rails environment loaded.
Rails/RakeEnvironment:
Enabled: false
10 changes: 0 additions & 10 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -459,16 +459,6 @@ Rails/Present:
- "core/lib/spree/core/search/base.rb"
- "core/spec/models/spree/stock/availability_validator_spec.rb"

# Offense count: 8
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Include.
# Include: **/Rakefile, **/*.rake
Rails/RakeEnvironment:
Exclude:
- "Rakefile"
- "backend/Rakefile"
- "core/Rakefile"

# Offense count: 8
# This cop supports safe autocorrection (--autocorrect).
Rails/RedundantForeignKey:
Expand Down

0 comments on commit 542a111

Please sign in to comment.