GDQuest / GDQuest/GDScript-formatter
Reordering granularity
- Vorherrschende Sprache
- Rust
- Sterne
- 455
- Forks
- 39
- Ø Merge
- 1 T. 15 Std.
- Gemergte PRs (30 T.)
- 4
Beschreibung
I like when reordering feature is applied to variables inside the file.
But I'd prefer to avoid reordering the functions.
- Sometimes I have a public function and a related private helper. It reads better when this private function located right after use. When code reordering is enabled, it might end up after a bunch of public functions.
- Sometimes I have static private helpers and they come first in the file. I read code top to bottom, so I'd prefer them to be located after when they used by public or virtual functions.
I know it contradicts the official style guide, but it would be nice to have a CLI option that enables only variables reordering.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Beginne damit, die bestehende Option zum Neuordnen des Formatierers und seinen Umgang mit Variablen und Funktionen nachzuverfolgen. Definiere den Abschluss als einen CLI-Modus, der Variablen neu ordnet, während Funktionen in der Reihenfolge des Quelltexts bleiben, mit Tests, die beide Verhaltensweisen abdecken.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- godot, rust
- Bereich
- cli, tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 52/100