-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Dynamic formatter configuration broken (v0.36) #2662
Comments
You can use Maintainers, please close. |
Maintainers, please do not close. @alexdowad The problem with RuboCop::RakeTask.new(:rubocop) do |t|
puts RuboCop::Version.version
t.formatters = %w(files)
t.formatters.concat(%w(html --out build/rubocop/rubocop.html))
end rubocop v0.36:
rubocop v0.35.1:
|
OK. Thank you for pointing this out. In that case, you can use
|
@agross Is your problem resolved? |
@alexdowad I'm waiting for feedback of the maintainers. I'd like to learn how they think about my approach that was valid for 0.35.1, but broke in 0.36. |
Sure, that's cool. |
Thank you! |
I define my formatters dynamically in my Rakefile to get different output when the check runs on a developer machine vs. a build machine.
This used to work in v0.35.1:
And with v0.36 is fails with an error:
I added some debug output before options.rb:18 (
puts args.inspect
):The text was updated successfully, but these errors were encountered: