Julia: `format(".")` + `git diff` + `exit(1)` is a formatting gate; biome via biome_jll in a julia -e one-liner
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
假阴性来自 project_validator/ecosystems/julia.py(约第 169 行)中的正则 _FAILS,它只接受 || exit(1) 或 @assert format。从 corpus/ .github/workflows/format_check.yml 第 18-31 行的 JuMP.jl 工作流开始,检查 julia 配置文件如何读取其中的代码格式检查。完成标准是:该工作流在 code-formatting 项上被判定为 PASS,现有的 julia 语料库预期仍然成立,并且测试套件通过。Documenter.jl 的 biome 项置信度较低,可以不纳入这次修复。
由索引模型根据 Issue 内容生成。
描述
JuMP.jl's format-check job runs format(".") and exits 1 when git diff is non-empty — exactly the "fails on a changed file" criterion the Julia profile documents — but the recogniser accepts only the literal || exit(1) or @assert format: FAIL "CI runs JuliaFormatter but only to rewrite files". Documenter.jl's make check-js runs biome check through the biome_jll wrapper inside a julia -e one-liner → code-formatting/static-analysis WARN.
Evidence from the corpus audit
jump-dev/JuMP.jl / code-formatting
- kind: FALSE_NEGATIVE
- actual: FAIL:
CI runs JuliaFormatter but only to rewrite files; nothing fails when they are not formatted - expected: PASS: the format-check job runs
format(".")and then exits 1 whengit diffis non-empty, which is exactly the "fails on a file it changed" criterion the Julia profile documents; the recogniser only accepts the literal|| exit(1)or@assert format. - evidence:
.github/workflows/format_check.yml:18-31:shell: julia --color=yes {0}/run: |/ ... /format("."; verbose = true)/out = String(read(Cmd(\git diff`)))/if isempty(out)/exit(0)/end/@error "Some files have not been formatted !!!"/write(stdout, out)/exit(1);project_validator/ecosystems/julia.py:169:_FAILS = re.compile(r"||\sexit\s(\s1\s)|@assert\s+format")` - repro: the 12-line julia step above in a workflow with
shell: julia --color=yes {0} - confidence: high
JuliaDocs/Documenter.jl / code-formatting, static-analysis (Biome via biome_jll)
- kind: UNSUPPORTED
- actual:
code-formattingWARN.prettierrc, biome.jsonc is defined but CI does not run prettier, deno fmt, oxfmt, dprint or biome;static-analysisWARNbiome is configured (biome.jsonc) but does not run - expected: CI's "Biome (JS code formatting)" job runs
make check-js, whose recipe runsbiome checkthrough the Juliabiome_jllwrapper and exits with biome's status. The Makefile target is followed (no unread reason) but the biome invocation inside a julia one-liner is not recognised. - evidence:
.github/workflows/CI.yml:315-324:biome:/name: Biome (JS code formatting)...- run: make install-biome/- run: make check-js;Makefile:37-38:check-js:/julia --project=$(BIOME) -e 'using biome_jll; exit(run(ignorestatus(\$$(biome_jll.biome()) check`)).exitcode)'` - repro: Makefile target with the recipe above +
run: make check-js - confidence: low (exotic; listed for completeness)
Found by the regression-corpus audit (235 real repositories, one or more per ecosystem profile; corpus and expected results in corpus/). Evidence is quoted from the audited checkouts at the commits pinned in corpus/projects.toml; <checkouts>/<owner>__<repo> is such a checkout.
🤖 Generated with Claude Code
- 主要语言
- Python
- 星标
- 4
- 派生
- 1
- 平均合并
- 10 小时 41 分钟
- 30 天内合并 PR
- 79
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
cpp-best-practices/project_validator 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
cpp-best-practices/project_validator#263 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
cpp-best-practices/project_validator#260 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
cpp-best-practices/project_validator#259 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
cpp-best-practices/project_validator#255 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
cpp-best-practices/project_validator#253 ·
维护者通常 1 天内回复
查看 cpp-best-practices/project_validator 的全部 Issue
相似的 Issue
-
plot_graph crashes when a mesh node has no m2m edge可能已有人在做 @tygvi 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
mllam/neural-lam#883 · 1 条评论 ·
维护者通常 2 天内回复
-
enhancement possible-duplicate
难度 1/5 1-3 小时 新手友好度 78/100
AOSSIE-Org/PictoPy#1715 · 2 条评论 ·
维护者通常 6 天内回复
-
SQLite connector omits generated columns from the catalog, and drops relationships sourced on them未关闭
难度 2/5 1-3 小时 新手友好度 72/100
NVIDIA/auto-ontology#511 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
ethereum/execution-specs#3996 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
Project-N-E-K-O/N.E.K.O#3725 ·
维护者通常 1 天内回复