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

Improve RuboCop exclusions configuration #285

Merged
merged 1 commit into from
Apr 20, 2024

Conversation

tagliala
Copy link
Member

The default Exclude: is not inherited when a custom value is provided, so the performance was degraded because time was spent searching in .git.

Ref: rubocop/rubocop#9325

@tagliala tagliala marked this pull request as ready for review April 20, 2024 10:03
@tagliala
Copy link
Member Author

After a few executions

Before

real	0m2.733s
user	0m2.710s
sys	0m0.790s

After

real	0m2.217s
user	0m2.262s
sys	0m0.801s

The default `Exclude:` is not inherited when a custom value is provided,
so the performance was degraded because time was spent searching in
`.git`.

Ref: rubocop/rubocop#9325
@tagliala tagliala force-pushed the chore/improve-rubocop-config branch from 703ead7 to bf6ca58 Compare April 20, 2024 10:05
@tagliala tagliala merged commit 19ede90 into master Apr 20, 2024
14 of 15 checks passed
@tagliala tagliala deleted the chore/improve-rubocop-config branch April 20, 2024 10:17
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.

1 participant