diffplug / diffplug/spotless

improve error message for npm-based formatters to emphasize local-only

Offen
#2,107 3 Kommentare 0 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

Hello dear maintainers,

I was setting up spotless in my project and while trying it out I started facing the below exception (which I already managed to fix).

I got a bit scared though, because it seems that it's trying to send my code to a remote server... is that correct?

I understand that you don't have control over all the plugins (i.e. I guess nothing would prevent prettier itself from doing this), but in this case here it seems that potential code leaking is coming from spotless itself.

If the answer to the above question is "yes", is it possible to optout of this altogether?

The below exception seems to be related to [this class](https://github.com/diffplug/spotless/blob/main/lib/src/main/java/com/diffplug/spotless/npm/SimpleRestClient.java), but I can't make any conclusions just by looking at this class alone.

Thanks!

image

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit, lib/src/main/java/com/diffplug/spotless/npm/SimpleRestClient.java zu lesen und die in der Issue angezeigte Exception nachzuverfolgen. Ermittle, welche Nachricht npm-basierte Formatter derzeit ausgeben, und aktualisiere sie dann, um den ausschließlich lokalen Betrieb hervorzuheben und jegliche Remote-Interaktion zu verdeutlichen; überprüfe die resultierende Fehlerformulierung anhand der relevanten vorhandenen Checks, falls vorhanden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java, javascript
Bereich
tooling
Issue-Typ
Feature
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
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.