mcp-server-semgrep
Version:
MCP Server for Semgrep Integration - static code analysis with AI
17 lines (16 loc) • 370 B
YAML
rules:
- id: empty-with-boolean-expression
pattern-either:
- pattern: |
empty($A && $B)
- pattern: |
empty($A || $B)
message: >-
Calling `empty` on a boolean expression may be an indication that a parenthesis is misplaced.
metadata:
category: correctness
technology:
- php
confidence: LOW
languages: [php]
severity: WARNING