Indicate users what specific rule gets triggered when running check or apply
- Lingua principale
- Java
- Stelle
- 5.6k
- Fork
- 559
- Merge medio
- 1g 14h
- PR unite (30g)
- 43
Descrizione
* 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!
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Start by tracing how the replaceRegex configuration is handled when running mvn spotless:check and mvn spotless:apply, including where its name is available and where violations or changes are reported. Done means the configured name, such as “Remove wildcard imports,” is shown when that rule triggers in both commands.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- build-system, tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100