You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running rubocop for a specific cop using the --only flag on a specific file, and that file has syntax errors. Rubocop $? -eq 0
This is counter-intuitive because rubocop cannot successfully parse the file to actually check the cop requested. So it should be a failure.
I would suggest that Lint/Syntax should always be reported even when the --only flag is used. Maybe internally always prepend --only <list> with Lint/Syntax ?
rubocop --version
1.28.2 (latest for ruby 2.5)
The text was updated successfully, but these errors were encountered:
When running rubocop for a specific cop using the
--only
flag on a specific file, and that file has syntax errors. Rubocop$? -eq 0
This is counter-intuitive because rubocop cannot successfully parse the file to actually check the cop requested. So it should be a failure.
I would suggest that
Lint/Syntax
should always be reported even when the--only
flag is used. Maybe internally always prepend--only <list>
withLint/Syntax
?rubocop --version
1.28.2 (latest for ruby 2.5)
The text was updated successfully, but these errors were encountered: