mcp-server-semgrep
Version:
MCP Server for Semgrep Integration - static code analysis with AI
13 lines (12 loc) • 340 B
YAML
rules:
- id: assignment-comparison
message: The value of `$X` is being ignored and will be used in the conditional test
languages: [java]
severity: ERROR
pattern-either:
- pattern: if ($X=true) { ... }
- pattern: if ($X=false) { ... }
metadata:
category: correctness
technology:
- java