GDQuest / GDQuest/GDScript-formatter

Reorder code: Add support for attaching some warnings to the line above them

Open
#164 6 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
455
Forks
39
Avg merge
1d 15h
Merged PRs (30d)
4

Description

Using gdscript-formatter 0.14.0 via AUR
with Helix 25.07.1 with `formatter = { command = "gdscript-formatter", args = ["--reorder-code"] }` and `auto-format = true`

Dunno if it is related or was fixed with cf1c680.

Before:
```
extends Node

@warning_ignore_start("unused_signal")
signal signal1
signal signal2
@warning_ignore_restore("unused_signal")

func f1() -> void:
print("Hi!")
```

After:
```
extends Node

@warning_ignore_start("unused_signal")
signal signal1
signal signal2

@warning_ignore_restore("unused_signal")
func f1() -> void:
print("Hi!")
```

Expected behavior:

@warning_ignore_restore should stay at the same line.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.