Indicate users what specific rule gets triggered when running check or apply
- Dominant language
- Java
- Stars
- 5.6k
- Forks
- 559
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 34
Description
* When we add `replaceRegex` with `Spotless`, it takes effect silently when running `mvn spotless:apply`. If we use `mvn spotless:check`, it will point out the specific line which violates the rule but will not tell which specific rule the code violates. If we could have the `name` of `replaceRegex` printed as well, it would help.
* For example, if we use the following configuration, and there are some `wildcard imports` in the code, it would be better if users could see some message like `triggering Remove wildcard imports rule` when running `mvn spotless:apply` or `mvn spotless:check`.
```xml
Remove wildcard imports
import\s+[^\*\s]+\*;(\r\n|\r|\n)
$1
```
Thanks!
Contributor guide
Assessment
This issue has not been assessed yet.