We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rubocop doesn't check that there's a space before comments.
The following passes Rubocop, even though there isn't a space between 1 and #:
1
#
def foo a = 1 a += 1# Increment a by one a * 2 end
The Ruby style guide doesn't explicitly discourage such a style, but the examples it has involve having a space before the # character.
The text was updated successfully, but these errors were encountered:
@agrimm 👍 Such a check definitely makes sense. @jonas054 Please, implement it when you can.
Sorry, something went wrong.
@agrimm Btw - feel free to mention this in the style guide.
bea9f4e
Merge pull request #1088 from jonas054/1074_space_before_comment
29e7847
[Fix #1074] New cop SpaceBeforeComment
jonas054
No branches or pull requests
Rubocop doesn't check that there's a space before comments.
The following passes Rubocop, even though there isn't a space between
1
and#
:The Ruby style guide doesn't explicitly discourage such a style, but the examples it has involve having a space before the
#
character.The text was updated successfully, but these errors were encountered: