mcp-server-semgrep
Version:
MCP Server for Semgrep Integration - static code analysis with AI
22 lines (21 loc) • 494 B
YAML
rules:
- id: iteration-over-ls-output
patterns:
- pattern: |
for $VAR in $LIST; do
...
done
- pattern: |
$(ls ...)
message: >-
Iterating over ls output is fragile. Use globs, e.g. 'dir/*' instead
of '$(ls dir)'.
metadata:
references:
- https://github.com/koalaman/shellcheck/wiki/SC2045
category: best-practice
technology:
- bash
severity: WARNING
languages:
- bash