技能低风险未认领
ShellCheck Configuration and Static Analysis
Master ShellCheck static analysis configuration and usage for shell script quality. Use when setting up linting infrastructure, fixing code issues, or ensuring script portability.
wshobsonwshobson/shellcheck-configuration
说明
Comprehensive guidance for configuring and using ShellCheck to improve shell script quality, catch common pitfalls, and enforce best practices through static code analysis.
When to Use This Skill
- Setting up linting for shell scripts in CI/CD pipelines
- Analyzing existing shell scripts for issues
- Understanding ShellCheck error codes and warnings
- Configuring ShellCheck for specific project requirements
- Integrating ShellCheck into development workflows
- Suppressing false positives and configuring rule sets
- Enforcing consistent code quality standards
- Migrating scripts to meet quality gates
Detailed patterns and worked examples
Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.
Best Practices
- Run ShellCheck in CI/CD - Catch issues before merging
- Configure for your target shell - Don't analyze bash as sh
- Document exclusions - Explain why violations are suppressed
- Address violations - Don't just disable warnings
- Enable strict mode - Use
--enable=allwith careful exclusions - Update regularly - Keep ShellCheck current for new checks
- Use pre-commit hooks - Catch issues locally before pushing
- Integrate with editors - Get real-time feedback during development
权限
声明检测
运行代码—无
安装—
brewsystem packages安装时运行脚本—无
网络—
github.com需要的凭据—无
工作区外的路径—
~/.bashrc~/.shellcheckrc智能体工具—无
检查
低风险 · 没有发现需要提醒的地方。
未经人工审核 · 已做规则检查;模型审核尚未开启。
另有 1 处低风险标记:常见命令之类,只记录、不提醒
- 规则 · privilege_escalation
references/details.md:232
文件2 个文件 · 9.3 KB
- SKILL.md1.6 KB
references/1
- details.md7.8 KB
版本
- #1—最新2026年10月7日
ShellCheck Configuration and Static Analysis在 Codeg 中打开