Skip to content
New issue

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

New cops SpaceBeforeComma and SpaceBeforeSemicolon #1161

Merged
merged 1 commit into from
Jun 21, 2014

Conversation

agrimm
Copy link
Contributor

@agrimm agrimm commented Jun 21, 2014

New cops for detecting spaces before commas and semicolons.

@jonas054
Copy link
Collaborator

For better test coverage, you should add spec examples like "accepts comma without preceding space", and why not have two spaces before a punctuation character in one of the auto-correct examples. Other than that, great job!

@jonas054
Copy link
Collaborator

👍 LGTM

@bbatsov
Copy link
Collaborator

bbatsov commented Jun 21, 2014

👍 Excellent work, @agrimm!

bbatsov added a commit that referenced this pull request Jun 21, 2014
New cops SpaceBeforeComma and SpaceBeforeSemicolon
@bbatsov bbatsov merged commit 6555bfa into rubocop:master Jun 21, 2014
@agrimm agrimm deleted the space_before_punctuation branch June 21, 2014 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants