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
This cop's check was based on a misunderstanding of how
`Parser::Source::Comment#inline?` works, and was missing a test
case for the negative case.
This change fixes the cop and adds a test for the future.
…ubocop#3504)
This cop's check was based on a misunderstanding of how
`Parser::Source::Comment#inline?` works, and was missing a test
case for the negative case.
This change fixes the cop and adds a test for the future.
Expected behavior
when Style/InlineComment is enabled true, inline comments are flagged and non-inline comments are not flagged
Actual behavior
lines that are only comments are flagged as inline comments. e.g.
Here is the code:
Steps to reproduce the problem
set InlineComment Enabled to true
RuboCop version
The text was updated successfully, but these errors were encountered: