Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Issue with Lint/BooleanSymbol and %i[...] #8151
$ echo "%i[foo false]" | rubocop -s test -a --only Lint/BooleanSymbol Inspecting 1 file W Offenses: test:1:8: W: [Corrected] Lint/BooleanSymbol: Symbol with a boolean name - you probably meant to use false. %i[foo false] ^^^^^ 1 file inspected, 1 offense detected, 1 offense corrected ==================== %i[foo false]
The fix is pretty easy – just adding e.g.
But I cannot seem to write a failing spec – the autocorrector doesn’t loop infinitely in the current version of the code, so maybe the fix should be part of #7868 (where the issue was originally reported)?