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
This was very helpful in fixing rubocop offenses. It automatically fixes them, if possible: https://github.com/bbatsov/rubocop/wiki/Automatic-Corrections
--- a/lib/tasks/rubocop.rake +++ b/lib/tasks/rubocop.rake @@ -1,4 +1,6 @@ # frozen_string_literal: true require 'rubocop/rake_task' -RuboCop::RakeTask.new +RuboCop::RakeTask.new(:rubocop) do |t| + t.options = ['-a'] +end
@jrhorn424 suggests having another rake task for this, so it's not the default, but is available.
The text was updated successfully, but these errors were encountered:
My workflow currently is running bin/rake and then if there are rubocop errors, running rubocop -a to auto-correct as many as possible.
bin/rake
rubocop -a
Sorry, something went wrong.
No branches or pull requests
This was very helpful in fixing rubocop offenses. It automatically fixes them, if possible: https://github.com/bbatsov/rubocop/wiki/Automatic-Corrections
@jrhorn424 suggests having another rake task for this, so it's not the default, but is available.
The text was updated successfully, but these errors were encountered: