Add a way to ignore line length
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 68/100
Direzione di ricerca
Inizia tracciando l’opzione max_line_length attraverso il formatter Rust e confronta la sua gestione delle intestazioni di funzione lunghe con quella dei dizionari multilinea. Usa gli esempi nell’issue per definire il comportamento previsto, quindi verifica che il nuovo percorso di configurazione disabiliti il forzamento della lunghezza delle righe senza riportare su una sola riga le strutture multilinea esistenti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
First of all, thank you for this formatter !
We are currently studying the possibility of adding it to our project.
After a few tries with different parameters on the codebase, we came to the conclusion that it was better to disable line size forcing, because it would produce less readable code for some cases (for example, some function headers that would be spread over 5 lines instead of one because it was just a bit longer than the max line length).
In order to turn off the line length forcing, we set max_line_length to an absurd amount (1000). But it produced other unintended scenarios, for example a dictionary that was declared on several lines (one line per entry) was now inlined by the formatter.
Is there a way to tell to the formatter to not take care of the line length ? If not, would it be possible to add this as an option (as an additional parameter or by unsetting max_line_length or setting it to 0, for example)?
- Lingua principale
- Rust
- Stelle
- 458
- Fork
- 40
- Merge medio
- 1g 15h
- PR unite (30g)
- 4
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di GDQuest/GDScript-formatter
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
GDQuest/GDScript-formatter#362 · 2 commenti ·
-
Godot 4.8.dev6 Parse Error Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
GDQuest/GDScript-formatter#359 · 9 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
GDQuest/GDScript-formatter#327 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 65/100
GDQuest/GDScript-formatter#361 · 3 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 58/100
GDQuest/GDScript-formatter#360 ·
Tutte le issue di GDQuest/GDScript-formatter
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
state:needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
zed-industries/zed#64680 · 2 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
RustPython/RustPython#8802 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
TheLarkInn/aipm#2390 ·