-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Allow db
to allowed names of Naming/UncommunicativeMethodParamName
cop in default config
#6137
Allow db
to allowed names of Naming/UncommunicativeMethodParamName
cop in default config
#6137
Conversation
db
as method paramter in default configdb
to allowed names of Naming/UncommunicativeMethodParamName
cop in default config
27e6667
to
b08cfa8
Compare
CHANGELOG.md
Outdated
@@ -2,6 +2,8 @@ | |||
|
|||
## master (unreleased) | |||
|
|||
* [#6137](https://github.com/rubocop-hq/rubocop/pull/6137): Allow `db` to allowed names of `Naming/UncommunicativeMethodParamName` cop in default config. ([@mkenyon][]) |
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.
Would you please add the ### Changes
section?
## master (unreleased)
+ ### Changes
+
* [#6137](https://github.com/rubocop-hq/rubocop/pull/6137): Allow `db` to allowed names of `Naming/UncommunicativeMethodParamName` cop in default config. ([@mkenyon][])
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.
@koic Oh, of course!
b08cfa8
to
682cc3e
Compare
CHANGELOG.md
Outdated
@@ -3491,3 +3495,5 @@ | |||
[@kenman345]: https://github.com/kenman345 | |||
[@nijikon]: https://github.com/nijikon | |||
[@mikeyhew]: https://github.com/mikeyhew | |||
[@kenman345]: https://github.com/kenman345 |
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.
CI has failed. Would you please delete this line?
https://travis-ci.org/rubocop-hq/rubocop/jobs/410116964#L1119
[@mikeyhew]: https://github.com/mikeyhew
-[@kenman345]: https://github.com/kenman345
[@mkenyon]: https://github.com/mkenyon
Add `db` to AllowedNames in default configuration for cop Naming/UncommunicativeMethodParamName in order to allow talking about or configuring a particular database.
682cc3e
to
03f66a6
Compare
This looks like adding a reasonable name 🌟 Thanks for your first time contribution! |
Add
db
to AllowedNames in default configuration for copNaming/UncommunicativeMethodParamName in order to allow talking about or
configuring a particular database.
I think that using the shorter
db
is unambiguous while still being descriptive, rather than writing outdatabase
.Before submitting the PR make sure the following are checked:
[Fix #issue-number]
(if the related issue exists).master
(if not - rebase it).and description in grammatically correct, complete sentences.
rake default
orrake parallel
. It executes all tests and RuboCop for itself, and generates the documentation.