mcp-server-semgrep
Version:
MCP Server for Semgrep Integration - static code analysis with AI
19 lines (18 loc) • 400 B
YAML
rules:
- id: useless-assignment
patterns:
- pattern: |
$X = $Y;
$X = $Z;
- pattern-not: |
$X = $Y;
$X = <... $X ...>;
message: "`$X` is assigned twice; the first assignment is useless"
languages:
- javascript
- typescript
severity: INFO
metadata:
category: correctness
technology:
- javascript