Re:RuboCop 0.80: Ruby static code analyzer and code formatter
by sbaha88 on Tuesday February 18, 2020 @08:25PM
(#22362254)
I remember having a bug because Rubocop changed 'and' to '&&'. I don't think that a linter should have a rule that breaks the language rules
[ Parent
| on HN ]
Re:RuboCop 0.80: Ruby static code analyzer and code formatter
by joeframbach on Tuesday February 18, 2020 @08:59PM
(#22362448)
Yup. `conditional or return fallbackValue`. Rubocop desperately wants to change this to `conditional || return fallbackValue` but that's just.... not a thing.