Using the --fix
option with --stdin
appends file content to the json result
#199
Labels
rubocop bug 🚨
An apparent bug in RuboCop
When I run the following commands
standardrb --format json --force-exclusion --stdin application_controller.rb < app/controllers/application_controller.rb
, I can see the resultHowever when I run
standardrb --format json --force-exclusion --fix --stdin Gemfile < app/controllers/application_controller.rb
, I have the resultAs you can see, the content of the linted file is appended to the JSON result.
This prevent tools (like RubyMine) to parse the response (https://youtrack.jetbrains.com/issue/RUBY-27006)
The text was updated successfully, but these errors were encountered: