More XML formatting#131
Conversation
- No target files. - No generated POM files.
| <exclude>**/pom.xml</exclude> | ||
| <exclude>**/dependency-reduced-pom.xml</exclude> | ||
| <exclude>**/gradle.xml</exclude> | ||
| <exclude>**/target/</exclude> |
There was a problem hiding this comment.
Why are we adding these excludes?
There was a problem hiding this comment.
Good question. It's not to format those XML files. The ones in target don't get stored in Git.
There was a problem hiding this comment.
pom.xml was already there. I just fixed the path pattern.
There was a problem hiding this comment.
The dependency reduced pom doesn't get stored in Git either. I guess we could format these if we want?
There was a problem hiding this comment.
I don't have a particular opinion here 🙂 but why do we need to skip formatting? Does it lead to a bad format? Or does it make Spotless take too long to run?
There was a problem hiding this comment.
With the files not stored in Git, right, it's to save time; the generated XML files can be quite large. With the others, let me try it and see how it looks. I cannot remember now why we originally skipped pom.xml, for example.
There was a problem hiding this comment.
Looks like at least pom.xml was excluded here: d74b32b. The comment says:
Ignore pom.xml in XML formatting.
We have another formatter for that.
I am guessing that m2e is doing it's own formatting each time the file is edited using m2e. Other than that, I can't recall what other formatter we could be using ...
There was a problem hiding this comment.
…re.version-3.5.2 Bump maven.surefire.version from 3.3.1 to 3.5.2
I find this more readable.