GDQuest / GDQuest/GDScript-formatter
Two-lined export annotation are always placed after one-lined annotations
- Vorherrschende Sprache
- Rust
- Sterne
- 455
- Forks
- 39
- Ø Merge
- 1 T. 15 Std.
- Gemergte PRs (30 T.)
- 4
Beschreibung
Given :
```gd
@export
var test_first: int
@export var test_second: int
```
It will be reformated as :
```gd
@export var test_second: int
@export
var test_first: int
```
Is this intended behaviour ?
For some cases when we have some setter/ long annotation we prefer to have this formatting :
```gd
@export_range(1, 30, 1, "prefer_slider")
var min_tiles: int = 3:
set = _set_min_tiles
```
I don't think the order of export should be modified by the formater.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Reproduce the formatter output using the two annotation snippets in the issue, then trace the formatter entry point that orders annotations. Add a regression case covering mixed one-line and two-line exports, and verify that formatting preserves their original order while keeping the reported multiline layout.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- rust
- Bereich
- tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 68/100