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
standardrb --generate-todo
replaces any existing todo file with deltas only
#565
Comments
Definitely sounds like a boog. Strong suspect it has something to do with using the # Run Rubocop to generate the files with errors into the temp file.
config.rubocop_options[:formatters] = [["json", temp_file.path]]
config.rubocop_options[:out] = temp_file.path
exit_code = Runners::Rubocop.new.call(config) That |
@knutsenm thanks for bringing up the issue and finding a workaround of removing the existing the My initial guess as to the root cause is the same as @searls:
I won't have time to investigate this issue till later this week but right off the top of my head a possible fix for the Let me know if you there is anything else that would make adding Standard to an existing project easier. |
I was going to suggest the internal equivalent of
The |
@mrbiggred FYI,
I was introducing
standard-rails
to the project I'm trying to convert from plain rubocop (because @searls fixed standardrb/standard-rails/issues/7, tyvm), but when I ranstandardrb --generate-todo
it replaced the existing todo file with one that only contained ignores for the Rails cops, losing the previous ignores.The fix was to remove .standard_todo.yml first, but I wonder if that should be documented or if it can be automated.
The text was updated successfully, but these errors were encountered: