diffplug / diffplug/spotless

Indicate users what specific rule gets triggered when running check or apply

Offen
#1,278 2 Kommentare 3 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Java
Sterne
5.6k
Forks
559
Ø Merge
1 T. 14 Std.
Gemergte PRs (30 T.)
43

Beschreibung

* 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!

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
build-system, tooling
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.