Add pre-commit hook `shellcheck-py` to standardize shell files
未关闭
long-term-plan
- 主要语言
- Java
- 星标
- 3.1k
- 派生
- 1.4k
- 平均合并
- 6 天 19 小时
- 30 天内合并 PR
- 32
描述
https://github.com/shellcheck-py/shellcheck-py
https://www.shellcheck.net/
https://github.com/koalaman/shellcheck
Example `.pre-commit-config.yaml` entry:
```
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
```
Example `.shellcheckrc` config file:
```
disable=SC2004,SC2041,SC2155,SC2181
```
贡献指南
调研方向
首先定位仓库的 .pre-commit-config.yaml,并检查现有 hook 的组织方式。使用示例中的 revision 和 id 添加 shellcheck-py hook,并确定所示的 .shellcheckrc 设置是否应放入仓库;当配置的 hook 覆盖 shell 文件时即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- shell
- 领域
- tooling
- Issue 类型
- 功能
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100