Skip to content
New issue

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

New cop: Missing :environment in Rails app #2

Closed
pocke opened this issue Sep 4, 2019 · 1 comment
Closed

New cop: Missing :environment in Rails app #2

pocke opened this issue Sep 4, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@pocke
Copy link
Collaborator

pocke commented Sep 4, 2019

In Rails app, most tasks should have :environment task as a dependency.

# bad
task :do_something do
end

# good
task do_something: :environment do
end
@pocke pocke added the enhancement New feature or request label Sep 4, 2019
@pocke
Copy link
Collaborator Author

pocke commented Sep 21, 2019

I'm implementing it to rubocop-rails.
rubocop/rubocop-rails#130

@pocke pocke closed this as completed Sep 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant