-
Notifications
You must be signed in to change notification settings - Fork 313
Rubocop name cops #440
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
Rubocop name cops #440
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking this on!
I have now read through. It may look like a lot of comments, but they are for a small number of repeated things.
4916556
to
430e2f4
Compare
Rather than turn it off for a whole file, it's better to mark these exceptions in comments.
This was kind of a misfire of this cop, but no bother to change.
430e2f4
to
ce17c57
Compare
I've done the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, thanks. All looks good.
On the changes to strings / file names: in general, changing both tests and code at the same time makes me a bit nervous, so I'd lean toward making the minimal set of changes possible to the tests. However, I don't see any particular problems here; it seems unlikely that the case of the the files in the tests is a significant factor in the test suite coverage.
Thanks. Point taken about changing code and tests together; I agree. But as you say these changes are fairly safe in this instance... |
This PR goes through and cleans up rubocop naming cops that don't affect the API.
There were many variables/parameters/etc named in
camelCase
style, possibly a hangover from the early days of this library and its Java-like roots. This PR renames them to ruby standardsnake_case
style.Most names have been translated as simply as possible - e.g.
entryName
toentry_name
- but some have been simplified as well - e.g.aProc
toproc
. There are no changes to functionality in this PR; any other changes, such as formatting, have only been done to conform to our existing rubocop standards.