Closed
Description
In some cases, one need to exclude some step for some files. It happens in project requiring faulty code to remain faulty.
For instance :
- Upgrade Spotless and wire Cleanthat skylot/jadx#1792
- Anything in https://github.com/solven-eu/cleanthat/tree/master/java/src/test/java/eu/solven/cleanthat/do_not_format_me
This need is especially useful with new steps enabling linting (cleanthat, eclipse cleanup, etc), which is more opinionated than formatting.
- I believe it would be bad that each step implement implement its own exclusion mechanism, which it could be one way to go (through
FilterByFileFormatterStep
). - Is there any existing mechanism to achieve this ?
- Is this was introduced as a new-feature, what would be the recommended design?