openrewrite / rewrite-maven-plugin

OpenRewrite's Maven plugin.
https://openrewrite.github.io/rewrite-maven-plugin/plugin-info.html
Apache License 2.0
143 stars 74 forks source link

Accept any directories under `src` in `ResourceParser` #868

Closed marcel-gepardec closed 1 month ago

marcel-gepardec commented 1 month ago

Added accepted directories to accept all recursive directories within "src".

What's changed?

Previously it only checked whether the path contains one of the DEFAULT_IGNORED_DIRECTORIES. Now it checks whether the path also contains one of the DEFAULT_ACCEPTED_DIRECTORIES. Now "src" will return false almost instantly and will not return true although there could be a build or out folder within the "src" folder.

What's your motivation?

Motivation was the open Issue #850. This is a fix to this issue and maybe a feature to be considered.