We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.clear
I have the following in my Rakefile:
if defined?(RSpec) task(:spec).clear RSpec::Core::RakeTask.new(:spec) do |t| t.verbose = false end end
which causes:
Rakefile:19:3: C: Rails/RakeEnvironment: Include :environment task as a dependency for all Rake tasks. task(:spec).clear ^^^^^^^^^^^
Since this is clearing a task, rather than defining it, it doesn't make sense to include :environment.
:environment
(rubocop-rails 2.4.1)
cc @pocke
The text was updated successfully, but these errors were encountered:
Merge pull request #185 from hanachin/allow_task_with_no_block
92c3c6f
[Fix #184] Fix Rake/Environment to allow task with no block
@hanachin thanks for the fix!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
I have the following in my Rakefile:
which causes:
Since this is clearing a task, rather than defining it, it doesn't make sense to include
:environment
.(rubocop-rails 2.4.1)
cc @pocke
The text was updated successfully, but these errors were encountered: