-
Notifications
You must be signed in to change notification settings - Fork 77
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
Performance improvement: only parse files needed by active recipes #185
Comments
This is a really good point. I'm kind of embarrassed to say we never really thought of it. Shouldn't be a tough fix? |
Indeed, that was a tough fix! 😄 |
Is this fix still working? I am trying to run OpenRewrite on a Java codebase (https://github.com/OpenRefine/OpenRefine), activating only Java recipes, and OpenRewrite still tries to parse a lot of other files. To reproduce:
Then, observe that the logs contain the following lines:
Because the active recipe is a Java recipe, I would not expect the plugin to attempt Python or CSV files. Alternatively it would be convenient if one could restrict the plugin to a particular list of includes (but I did not find a counterpart to |
Some context also provided in this follow up issue: |
Just an idea: parsing POM can be quite slow when you use a number of dependencies, but this parsing is in fact useless if you have no active recipes of Maven category.
The text was updated successfully, but these errors were encountered: