GDQuest / GDQuest/GDScript-formatter
Add a way to ignore line length
- Lenguaje dominante
- Rust
- Estrellas
- 455
- Forks
- 39
- Merge medio
- 1 d 15 h
- PR fusionados (30 d)
- 4
Descripción
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)?
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Comienza siguiendo la opción max_line_length a través del formateador de Rust y compara su tratamiento de las cabeceras de funciones largas con los diccionarios multilínea. Usa los ejemplos del issue para definir el comportamiento esperado y, después, verifica que la nueva ruta de configuración deshabilite el forzado de la longitud de línea sin convertir en una sola línea las estructuras multilínea existentes.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- godot, rust
- Área
- tooling
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Activo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 68/100