assert-single-alias in ns/rebuild.clj is dead code
还没有人认领这个 Issue。
评估
调研方向
从 ns/rebuild.clj 中的 assert-single-alias 开始,然后检查它的调用方,以及当前传递 nil 或空字符串的 29 个测试。确定调用方是否应提供一个真实的 alias,或者该函数是否应明确地成为 no-op;更新所选的契约,移除临时的 clj-kondo 忽略,并确认测试套件通过。
由索引模型根据 Issue 内容生成。
描述
refactor-nrepl.ns.rebuild/assert-single-alias builds a for expression that throws on mismatched aliases, then discards the result and returns alias. Because for is lazy, the assertion never fires.
The kondo bump in #(this-PR) flagged it. The straightforward fix (doseq instead of for) makes the assertion fire and breaks 29 tests that rely on calling this with alias = nil or "". Need to figure out the intended contract — either make those callers pass a real alias, or change assert-single-alias to be a no-op explicitly (and drop the body).
For now there's a #_:clj-kondo/ignore to keep CI green.
- 主要语言
- Clojure
- 星标
- 261
- 派生
- 68
- 平均合并
- 10 小时 36 分钟
- 30 天内合并 PR
- 8
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
clojure-emacs/refactor-nrepl 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 58/100
clojure-emacs/refactor-nrepl#443 ·
-
Analyse some real-world projects in CI可能重新可做 @vemv 于 1962 天前认领,目前没有进行中的 PR。 未关闭
clojure-emacs/refactor-nrepl#322 · 4 条评论 · 1 个 reaction · 已指派 1 人 ·
-
enhancement
难度 4/5 3-5 天 新手友好度 42/100
clojure-emacs/refactor-nrepl#266 · 4 条评论 · 4 个 reaction ·
-
难度 5/5 一周以上 新手友好度 25/100
clojure-emacs/refactor-nrepl#195 · 39 条评论 · 7 个 reaction ·
查看 clojure-emacs/refactor-nrepl 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
clojure-emacs/cider#4235 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
needs triage
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
`batch-transact-with-temp-conn!` leaves `:max-tx` behind its datoms, so the next transaction reuses a tx id可能已有人在做 @tiensonqin 于 1 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
-
Server logs every websocket send at DEBUG since #8844, adding lag under load可能已有人在做 @matthewlehew 于 1 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 82/100
维护者通常 1 天内回复