[Feature]: Add lint configs and a lint CI job for every language in the repo

Aperta
#765 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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
Stack tecnologico
github-actions, go, lua, powershell, shell, yaml

Direzione di ricerca

Start in .github/workflows/ci.yml to see the existing job layout, then check .github/workflows/e2e-tests.yml at lines 32 and 108 for the actions/setup-go@v4 usage. Run each linter locally against install.sh, scripts/bump.sh, scripts/e2e-test.sh, the PowerShell scripts and the Lua files, and add the matching config files. Done means each config is checked in and a CI job fails on findings.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement help wanted
1. Your usage scenarios?

Nothing lints the code. The CI workflows build, test and run E2E checks, but no job lints any language in the repository. Checked on main at c4f6275:

  • No linter configuration is checked in: no .golangci.yml, .shellcheckrc, PSScriptAnalyzerSettings.psd1, .luarc.json, Markdown or YAML lint config, or actionlint setup.
  • No workflow runs a linter. .github/workflows/ci.yml has build, test, coverage and regression jobs; docs/package.json only defines docs:dev, docs:build and docs:preview.
  • The existing workflows already fail actionlint: .github/workflows/e2e-tests.yml:32 and :108 use actions/setup-go@v4, which actionlint reports as too old to run on GitHub Actions.
  • Files with no linter at all: 19 Lua files, 3 shell scripts (install.sh, scripts/bump.sh, scripts/e2e-test.sh), 5 PowerShell scripts, and all workflow files.

The reference is version-fox/vfox-java. Its lint.yml runs go vet and unit tests for its Go module, and stylua --check plus lua-language-server --check for its Lua code, with checked-in stylua.toml and .luarc.json files.

2. What is your expected outcome?

A checked-in lint configuration for each language and a CI job that fails on findings:

  • Go: golangci-lint with a .golangci.yml (it includes the go vet analyzers).
  • Shell: shellcheck for install.sh and scripts/*.sh.
  • PowerShell: PSScriptAnalyzer for the .ps1 files, with a PSScriptAnalyzerSettings.psd1.
  • Lua: lua-language-server --check (or luacheck) with a .luarc.json.
  • Workflows: actionlint, after the setup-go@v4 usage is updated.

Formatting 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

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di version-fox/vfox

Tutte le issue di version-fox/vfox

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.