Implemente SC2044: don't use fragile loops with find
还没有人认领这个 Issue。
评估
调研方向
打开 release/create-release-tag.sh,检查第 142 行和第 160 行的循环。阅读 SC2044 参考资料,然后对该脚本运行 ShellCheck;在不破坏包含空格的路径处理的情况下解决这两个警告,即视为完成。
由索引模型根据 Issue 内容生成。
描述
ShellCheck flags two loops in the release script that loop over find output. This is fragile for files containing spaces.
Reference: https://www.shellcheck.net/wiki/SC2044
(stackable) ➜ stackable-utils git:(main) shellcheck release/create-release-tag.sh
In release/create-release-tag.sh line 142:
for file in $(find "$1/docs/modules/getting_started/examples/code" -name "*.yaml"); do
^-- SC2044 (warning): For loops over find output are fragile. Use find -exec or a while read loop.
In release/create-release-tag.sh line 160:
for file in $(find "$1/docs" -name "*.adoc"); do
^-- SC2044 (warning): For loops over find output are fragile. Use find -exec or a while read loop.
For more information:
https://www.shellcheck.net/wiki/SC2044 -- For loops over find output are fr...
- 主要语言
- Shell
- 星标
- 2
- 派生
- 1
- 平均合并
- 5 天 18 小时
- 30 天内合并 PR
- 3
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
stackabletech/stackable-utils 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 55/100
stackabletech/stackable-utils#134 ·
-
release-retro/25.3.0
难度 2/5 1-3 小时 新手友好度 58/100
stackabletech/stackable-utils#104 ·
-
难度 3/5 1-2 天 新手友好度 25/100
-
难度 3/5 1-2 天 新手友好度 35/100
查看 stackabletech/stackable-utils 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
nolte/kamerplanter-appliance#32 ·
维护者通常 1 天内回复
-
research
难度 2/5 1-3 小时 新手友好度 76/100
slayerlabs/benchmarks-fabryka-ai#256 ·
维护者通常 1 天内回复
-
bug priority-medium to-agent
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 78/100
ONLYOFFICE/DocumentServer#3917 ·