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

Enforce RuboCop and correct existing syntax #117

Merged
merged 3 commits into from
Apr 25, 2015
Merged

Enforce RuboCop and correct existing syntax #117

merged 3 commits into from
Apr 25, 2015

Conversation

tarcieri
Copy link
Contributor

This enables RuboCop by default and fixes the existing offences

This enables RuboCop by default and fixes the existing offences
sodium_constant :BOXZEROBYTES
sodium_constant :BEFORENMBYTES
sodium_constant :PUBLICKEYBYTES
sodium_constant :SECRETKEYBYTES, :PRIVATEKEYBYTES
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stuff like this with rubocop really bugs me. I think version where they're all aligned to the same vertical is a lot more readable.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RuboCop is configurable. We can shut this particular one off. And FWIW I agree. This patch brings us close to in-line with the RuboCop defaults, so... let the bikeshedding begin! 😉 Then we can shut off the cops we dislike

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@namelessjon I disabled the SingleSpaceBeforeFirstArg cop and put these back to what they were. Any other objections?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I think the rest is all good!

@namelessjon
Copy link
Contributor

A lot of it makes sense, but some of the stylist choices bug me, and I don't think they help with the readability.

On the other hand, being able to push toward shorter methods is good.

@tarcieri
Copy link
Contributor Author

If you have no other objections, merge it? 😉

namelessjon added a commit that referenced this pull request Apr 25, 2015
Enforce RuboCop and correct existing syntax
@namelessjon namelessjon merged commit ea3cbfa into master Apr 25, 2015
@namelessjon
Copy link
Contributor

Done

@namelessjon namelessjon deleted the rubocop branch April 26, 2015 19:00
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