You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trigger the plugin by executing "mvn -q net.revelc.code.formatter:formatter-maven-plugin:format@formatter-format"
Expected behavior
Only Java files and the changelog-001.xml file should be modified. Instead the log4j2.xml file is modified as well. According to the documentation, one would expect that the includes-pattern is applied to all files and not only to those in the source folders.
Additional context
What we want to achieve: We want to include certain files within source and resource folders to be formatted, but we want to whitelist those files. It is not feasible to define an exclude pattern for all files that should not be formatted.
Thank you and best regards
Nils
The text was updated successfully, but these errors were encountered:
@nils-christian Do you have an example project to demonstrate the problem, or can you make a minimal project that demos it? It would be easier to reproduce and address if that were the case, and much more likely to get addressed sooner.
Hi,
Describe the bug
According to the documentation of "includeResources", the "included/excluded patterns for this plugin are honored". This does not seem to be the case.
Versions (OS, Maven, Java, and others, as appropriate):
To Reproduce
Expected behavior
Only Java files and the changelog-001.xml file should be modified. Instead the log4j2.xml file is modified as well. According to the documentation, one would expect that the includes-pattern is applied to all files and not only to those in the source folders.
Additional context
What we want to achieve: We want to include certain files within source and resource folders to be formatted, but we want to whitelist those files. It is not feasible to define an exclude pattern for all files that should not be formatted.
Thank you and best regards
Nils
The text was updated successfully, but these errors were encountered: