GDQuest / GDQuest/GDScript-formatter

Linter: doesn't work with stdin

Offen
#318 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Rust
Sterne
458
Forks
40
Ø Merge
1 T. 15 Std.
Gemergte PRs (30 T.)
4

Beschreibung

[Modified into a bug report from the previous feature request; I don't think we actually need a `--config` argument to specify the location of a `.editorconfig`.]

`gdscript-formatter lint` doesn't work in `stdin` mode; I couldn't tell if this was intentional or not:

```sh
# Guessed from the docs/--help output:

$ cat dice.gd | gdscript-formatter lint
Error: No GDScript files found in the arguments provided. Please provide at least one .gd file or directory containing .gd files.

# Another CLI convention:

$ cat dice.gd | gdscript-formatter lint -
Error: No GDScript files found in the arguments provided. Please provide at least one .gd file or directory containing .gd files.
```

Maybe a `--stdin` argument to force this? I couldn't tell from the code, I can't Rust yet.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Beginne damit nachzuverfolgen, wie der Befehl `gdscript-formatter lint` Dateiargumente parst und die Standardeingabe behandelt, wobei die dokumentierten und im Bericht aufgeführten `--help`-Aufrufformen verwendet werden. Bestätige die vorgesehene stdin-Konvention und überprüfe anschließend, dass per Pipe übergebenes GDScript erfolgreich gelintet wird, ohne den aktuellen Fehler „No GDScript files found“ zu erhalten.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
rust
Bereich
cli, tooling
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
55/100

Neue Issues direkt in Ihr Postfach

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