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

Make --auto-gen-config faster if Metrics/LineLength is disabled #6262

Closed
bquorning opened this issue Sep 10, 2018 · 1 comment
Closed

Make --auto-gen-config faster if Metrics/LineLength is disabled #6262

bquorning opened this issue Sep 10, 2018 · 1 comment

Comments

@bquorning
Copy link
Contributor

When using the --auto-gen-config flag, RuboCop runs through all files twice:

» rubocop --auto-gen-config
Phase 1 of 2: run Metrics/LineLength cop
Created .rubocop_todo.yml.
Phase 2 of 2: run all cops
Created .rubocop_todo.yml.

In .rubocop.yml, I have the Metrics/LineLength cop disabled, so couldn’t that first step be skipped?

@bquorning bquorning changed the title Make --auto-gen-config faster if Metrics/LineLength is disabled anyway. Make --auto-gen-config faster if Metrics/LineLength is disabled Sep 10, 2018
@bquorning
Copy link
Contributor Author

Related to #5228 / #5246 /cc @jonas054

tom-lord added a commit to tom-lord/rubocop that referenced this issue Dec 10, 2018
tom-lord added a commit to tom-lord/rubocop that referenced this issue Dec 10, 2018
tom-lord added a commit to tom-lord/rubocop that referenced this issue Dec 10, 2018
jonas054 added a commit that referenced this issue Dec 11, 2018
…Metrics/LineLength_disabled

[Fix #6262] Optimise --auto-gen-config when Metrics/LineLength cop is disabled
Nyangawa pushed a commit to Nyangawa/rubocop that referenced this issue Jan 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants