Commit e85c7ab
committed
Warn multimodule users about **/*.md includes
Including '**/*.md' means that all md files in all sub directories are
found. In a multi-module maven project, where spotless is run for each
module it would mean that markdown files in sub modules are also found
by modules at a higher level of the module hierarchie (i.e. sub modules
are sub directories of an other module). This means that files would be
processed by the formatter multiple times. Which is obviously less
performant.
Generally, users should be proteced from this, by decent default
settings. However, if we would not include '**/*.md' users might be
surprised to learn that some of their files are left untouched.
Instead, I chose to warn multi-module users specifically about this.
Because the impact (and surprise) of not formatting files in nested
folder structures is likely greater than the hit in performance due to
processing the files multiple times. Also note that the first problem
occurs for both regular maven projects as well as multi-module projects
and the latter only occurs on multi-module projects.1 parent 1ef8e60 commit e85c7ab
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
594 | 594 | | |
595 | 595 | | |
596 | 596 | | |
| 597 | + | |
597 | 598 | | |
598 | 599 | | |
599 | 600 | | |
| |||
0 commit comments