Skip to content

Rubocop: Enable space after comma cop#542

Merged
kotp merged 2 commits intoexercism:masterfrom
Insti:Rubocop_space_after_comma
Jan 17, 2017
Merged

Rubocop: Enable space after comma cop#542
kotp merged 2 commits intoexercism:masterfrom
Insti:Rubocop_space_after_comma

Conversation

@Insti
Copy link
Copy Markdown
Contributor

@Insti Insti commented Jan 15, 2017

@kotp flagged a missing space after comma in a review: #540 (review)

This patch enables the Style/SpaceAfterComma cop so that this can be automatically detected and fixed by Rubocop.

@Insti Insti changed the title Rubocop space after comma Rubocop: Add space after comma cop Jan 15, 2017
@Insti Insti changed the title Rubocop: Add space after comma cop Rubocop: Enable space after comma cop Jan 15, 2017
@kotp
Copy link
Copy Markdown
Member

kotp commented Jan 15, 2017

Will the rubocop change impact current code?

@Insti
Copy link
Copy Markdown
Contributor Author

Insti commented Jan 16, 2017

Will the rubocop change impact current code?

There are 15 files that fail this check, they are fixed in the second commit of this PR: bed3b50

@kotp
Copy link
Copy Markdown
Member

kotp commented Jan 16, 2017

Should the rubocop config file exclude the example.rb files? You know I like to tread lightly on the example files, as they are "Proof of Solvability", and not necessarily optimal or idiomatic.

@Insti
Copy link
Copy Markdown
Contributor Author

Insti commented Jan 17, 2017

Should the rubocop config file exclude the example.rb files?

No.

It's good for the entire repository to have a consistent style.
This cop is auto-correctable, so ensuring it is correct is just a matter of running rubocop -a

@kotp kotp merged commit 3cec88c into exercism:master Jan 17, 2017
@Insti Insti deleted the Rubocop_space_after_comma branch January 17, 2017 10:26
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.

2 participants