Closed xdmx closed 1 month ago
Does --fix-unsafely
work? https://github.com/standardrb/standard#applying-unsafe-fixes
Yes, it does. Interestingly --fix
wouldn't fix any, while the unsafe one was able to fix a bunch. The safe one didn't even for apparently safe code like users.map { |u| u[:email] }
-> users.pluck(:email)
Closing due to inactivity / failure to reproduce
I've been using Standard for a while and giving Standard Rails a try to evaluate the rules.
I usually rely on
--fix
to fix all warnings and that always works on Standard, but it seems that it doesn't for the Rails plugin, I see the warnings, and they're marked as "Correctable", but after running it with--fix
it doesn't fix them (it says that they can be corrected withrubocop -A
, but then it wouldn't use the Standard Rails rules)