[Feature]: Add lint configs and a lint CI job for every language in the repo
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 50/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.ymlhas build, test, coverage and regression jobs;docs/package.jsononly definesdocs:dev,docs:buildanddocs:preview. - The existing workflows already fail actionlint:
.github/workflows/e2e-tests.yml:32and:108useactions/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-lintwith a.golangci.yml(it includes thego vetanalyzers). - Shell:
shellcheckforinstall.shandscripts/*.sh. - PowerShell:
PSScriptAnalyzerfor the.ps1files, with aPSScriptAnalyzerSettings.psd1. - Lua:
lua-language-server --check(orluacheck) with a.luarc.json. - Workflows:
actionlint, after thesetup-go@v4usage is updated.
Formatting is out of scope for this issue.
- 主要语言
- Go
- 星标
- 4k
- 派生
- 177
- 平均合并
- 1 天 20 小时
- 30 天内合并 PR
- 31
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
version-fox/vfox 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
version-fox/vfox#825 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
version-fox/vfox#823 ·
维护者通常 1 天内回复
-
难度 3/5 半天 新手友好度 45/100
version-fox/vfox#824 ·
维护者通常 1 天内回复
-
Plugins fail to load when the HOME path contains ';' or '?' (Lua package.path)可能已有人在做 @Xnadir 今天认领。 未关闭bug
难度 3/5 1-2 天 新手友好度 35/100
version-fox/vfox#821 ·
维护者通常 1 天内回复
-
[BUG]: the Available cache ignores the environment, so one setting's list is shown for another可能已有人在做 @nanami7777777 今天认领。 未关闭bug
难度 3/5 1-2 天 新手友好度 25/100
version-fox/vfox#816 ·
维护者通常 1 天内回复
相似的 Issue
-
go good first issue test
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 2 天内回复
-
[UI] Guard webApis against undefined window in SSR environments可能已有人在做 @madhavzanwar 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
kind/enhancement
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
automated-analysis code-quality refactoring
难度 2/5 1-3 小时 新手友好度 72/100
github/gh-aw-mcpg#17105 ·
维护者通常 1 天内回复