Establish & enforce style rules
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
Línea de trabajo
Start by reviewing the proposed .editorconfig in PR #247 and the repository’s .gitattributes, then resolve the line-ending policy described in the issue. The payload also points to the prior lua-fmt attempt and existing CI checks; use these to scope the style rules and enforcement. Done means documenting the rules, updating configuration, applying the mass-format change, and adding .git-blame-ignore-revs.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
I think it would be a good idea to establish and begin enforcing (via code reviews and CI checks) style rules for this repository just like we do for mtasa-blue. To this end, I have submitted a PR that adds a .editorconfig file that defines the following basic rules:
- No trailing whitespace
- Insert final newlines
- Use 4 spaces instead of tabs
- Use CRLF line endings
Line endings
There has been some inconsistency regarding which type of line endings are meant to be used. The .gitattributes file calls for LF endings and it's been mentioned that in the long-term we want LF, but a recent commit seems to have standardized on CRLF. I guess deciding on this would be the first order of buisness.
CI checks
On CI, there have been previous attempts to use lua-fmt to automate formatting checks. It looks like these efforts have stagnated. Perhaps it would be possible to either a) restart work on lua-fmt or b) do something else? I was thinking perhaps we can just run a simple CI check for the style rules I've described above.
Mass-edits and ignore-revs
Once we've decided on a set of rules and implemented the controls to enforce them, another mass-formatting edit will be needed. We should add a .git-blame-ignore-revs file to filter this and previous such commits out.
TLDR
- establish basic style rules and document them
- update .editorconfig and .gitattributes accordingly
- setup related CI checks
- issue mass-format commit
- setup .git-blame-ignore-revs
- Lenguaje dominante
- Lua
- Estrellas
- 185
- Forks
- 180
- Merge medio
- 5 d 13 h
- PR fusionados (30 d)
- 2
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de multitheftauto/mtasa-resources
-
new resource: map_loaderAbiertoenhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
multitheftauto/mtasa-resources#697 · 7 comentarios · 7 reacciones ·
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
multitheftauto/mtasa-resources#564 · 1 reacción ·
-
editor: LOD_MAP table is missing some LOD modelsQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertoenhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 36/100
-
New features to Map EditorAbiertoenhancement resource:editor
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
multitheftauto/mtasa-resources#388 · 3 reacciones ·
-
help wanted waiting for feedback
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
multitheftauto/mtasa-resources#361 · 8 comentarios · 8 reacciones ·
Todos los issues de multitheftauto/mtasa-resources
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
teradata-labs/loom#624 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
rohit746/pdf-view.nvim#109 ·
Los mantenedores suelen responder en 1 día