[Feature]: Enforce formatting checks in CI for Go, Lua, shell and PowerShell
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 50/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Área
- ci-cd, developer-experience
Línea de trabajo
Start by running gofmt -l . on main to confirm internal/plugin/model_test.go is flagged, then format it. The config files are AGENTS.md and CONTRIBUTING.md (line 37), and .gitattributes covers the *.sh, *.ps1 and *.go files. Add the CI check for each language, plus stylua.toml and .editorconfig. Done when the new CI steps pass on the current tree and the Lua, shell and PowerShell files conform to the checks you add. The PowerShell tool choice is open, so confirm it with a maintainer before you start.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
1. Your usage scenarios?
Nothing enforces formatting, so files drift. Checked on main at c4f6275:
gofmt -lreportsinternal/plugin/model_test.go(struct literal alignment).internal/env/context_test.gowas also unformatted at37cff8f; a later commit changed it, but nothing in CI keeps files formatted.- No CI step runs
gofmtor any other formatter.AGENTS.mdasks contributors to rungofmt -won changed Go files, andCONTRIBUTING.md(line 37) only says "You can try runninggo fmtandgo vet". - There is no
.editorconfig(indentation, final newline, trailing whitespace) and nostylua.toml, although 19 Lua files are tracked. .gitattributespins LF line endings for*.sh,*.ps1and*.go. That protects line endings, not formatting.
The reference is version-fox/vfox-java. Its lint.yml runs gofmt -l and stylua --check ., and its stylua.toml sets indent_type = "Spaces", indent_width = 4, column_width = 120 and line_endings = "Unix".
2. What is your expected outcome?
A formatting check in CI for each language, with its configuration checked in:
- Go:
test -z "$(gofmt -l .)", after formattinginternal/plugin/model_test.go. - Lua:
stylua --checkwith astylua.toml, applied to the existing Lua files. - Shell:
shfmt -dforinstall.shandscripts/*.sh. - PowerShell: a format check for the
.ps1files, for example PSScriptAnalyzer's formatting rules. - All text files: an
.editorconfig, checked by a tool such aseditorconfig-checker.
Linting is out of scope for this issue.
- Lenguaje dominante
- Go
- Estrellas
- 4k
- Forks
- 177
- Merge medio
- 1 d 20 h
- PR fusionados (30 d)
- 31
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
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 version-fox/vfox
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
version-fox/vfox#825 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
version-fox/vfox#823 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 Medio día Aptitud para principiantes 45/100
version-fox/vfox#824 ·
Los mantenedores suelen responder en 1 día
-
Plugins fail to load when the HOME path contains ';' or '?' (Lua package.path)Posiblemente ocupada @Xnadir la tomó hoy. Abiertobug
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
version-fox/vfox#821 ·
Los mantenedores suelen responder en 1 día
-
[BUG]: the Available cache ignores the environment, so one setting's list is shown for anotherPosiblemente ocupada @nanami7777777 la tomó hace 1 día. Abiertobug
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
version-fox/vfox#816 ·
Los mantenedores suelen responder en 1 día
Todos los issues de version-fox/vfox
Issues similares
-
tld-snapshot
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
awslabs/ferret-scan#1064 ·
Los mantenedores suelen responder en 2 días
-
【文档错误】创建镜像空间步骤中的截图标注与文字描述不一致Abiertoenhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 62/100
DaoCloud/DaoCloud-docs#7839 ·
Los mantenedores suelen responder en 1 día
-
Ignore entry for RUSTSEC-2026-0002 no longer matches anything (`lru` is no longer in `Cargo.lock`)Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
influxdata/influxdb#27767 ·
Los mantenedores suelen responder en 1 día
-
Support AlienVault OTX API keysAbiertoType: Enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
projectdiscovery/urlfinder#167 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
gojue/ecapture#1100 · 1 reacción ·
Los mantenedores suelen responder en 1 día