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

Cannot override preferred collection methods #340

Closed
dkubb opened this issue Jul 8, 2013 · 3 comments · Fixed by #347
Closed

Cannot override preferred collection methods #340

dkubb opened this issue Jul 8, 2013 · 3 comments · Fixed by #347
Assignees
Labels

Comments

@dkubb
Copy link
Contributor

dkubb commented Jul 8, 2013

I use a slightly different set of conventions than the ones bundled with rubocop, usually preferring #detect and #select over #find and #find_all respectively. I attempted to configure this in a rubocop.yml file, but the default inherited configuration seems to overwrite any settings I use.

@ghost ghost assigned jonas054 Jul 10, 2013
@jonas054
Copy link
Collaborator

Confirmed as a bug. I'll try to fix it.

@jonas054
Copy link
Collaborator

The problem is that configuration parameters in your .rubocop.yml are merged with the default ones, so all default preferred method settings remain and generate reports.

@dkubb
Copy link
Contributor Author

dkubb commented Jul 10, 2013

@jonas054 I like your solution. Chances are if I take the time to specify my own convention I want to override all the defaults for that option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants