fmt-maven-plugin icon indicating copy to clipboard operation
fmt-maven-plugin copied to clipboard

Option to exclude paths

Open mikaelstaldal opened this issue 6 years ago • 5 comments

It would be nice to have an option to exclude certain paths from formatting. Now you can specify paths to include with the filesPathPattern option, but if you want to exclude multiple paths (and include everything else), the regexp will get very messy.

I want to exclude a few paths and include everything else.

mikaelstaldal avatar Jul 16 '19 13:07 mikaelstaldal

Agree.

I have projects which have generated code from another tool which doesn't conform. Would like to be able to ignore that code while applying formatting to the rest of the project. As of right now I imagine I'm going to have to skip execution for those modules, whereas I'd like to just skip it for the generated code.

sombraala avatar Nov 04 '19 22:11 sombraala

Do you still want this @mikaelstaldal ?

klaraward avatar Feb 24 '22 09:02 klaraward

Yes.

mikaelstaldal avatar Feb 25 '22 17:02 mikaelstaldal

+1 for this feature. I have some imported files from another project that don't conform to the formatting. In order to track future diffs, it would be better to leave them as the original formatting.

xgp avatar Oct 03 '22 20:10 xgp