[Feature]: Enforce formatting checks in CI for Go, Lua, shell and PowerShell
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 50/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Ambito
- ci-cd, developer-experience
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Go
- Stelle
- 4k
- Fork
- 177
- Merge medio
- 1g 20h
- PR unite (30g)
- 31
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
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 version-fox/vfox
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
version-fox/vfox#825 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
version-fox/vfox#823 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 Mezza giornata Idoneità per principianti 45/100
version-fox/vfox#824 ·
I maintainer di solito rispondono entro 1 giorno
-
Plugins fail to load when the HOME path contains ';' or '?' (Lua package.path)Forse già presa @Xnadir l’ha presa oggi. Apertabug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
version-fox/vfox#821 ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG]: the Available cache ignores the environment, so one setting's list is shown for anotherForse già presa @nanami7777777 l’ha presa 1 giorno fa. Apertabug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
version-fox/vfox#816 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di version-fox/vfox
Issue simili
-
tld-snapshot
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
awslabs/ferret-scan#1064 ·
I maintainer di solito rispondono entro 2 giorni
-
【文档错误】创建镜像空间步骤中的截图标注与文字描述不一致Apertaenhancement
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 62/100
DaoCloud/DaoCloud-docs#7839 ·
I maintainer di solito rispondono entro 1 giorno
-
Ignore entry for RUSTSEC-2026-0002 no longer matches anything (`lru` is no longer in `Cargo.lock`)Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
influxdata/influxdb#27767 ·
I maintainer di solito rispondono entro 1 giorno
-
Type: Enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
projectdiscovery/urlfinder#167 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
gojue/ecapture#1100 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno