GDQuest / GDQuest/GDScript-formatter

Can --reorder-code can be put as a flag in the .editorconfig ?

Aperta
#348 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Rust
Stelle
455
Fork
39
Merge medio
1g 15h
PR unite (30g)
4

Descrizione

I'd like to be able to run gdscript-formatter without having it to pass options everytime I use the tool. This allow to only write settings once (e.g. in `.editorconfig`) without worrying about the option we use and to avoid duplication.

This could be nice to have if possible :
```.editorconfig
root = true

[*]
charset = utf-8

[*.gd]
max_line_length = 120
gdscript_formatter_reorder_code = true

[addons/**/*.gd]
gdscript_formatter_exclude = true
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start by examining the formatter's configuration handling and how the --reorder-code option is parsed. Then inspect any existing .editorconfig support and related tests. Done means the option can be set with gdscript_formatter_reorder_code in .editorconfig and works without passing the command-line flag.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
rust
Ambito
tooling
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Attiva
Chiarezza
Abbastanza chiara
Idoneità per principianti
63/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.