mcp-server-semgrep
Version:
MCP Server for Semgrep Integration - static code analysis with AI
21 lines (20 loc) • 492 B
YAML
rules:
- id: react-legacy-component
patterns:
- pattern: |
$METHOD(...) {
...
}
- metavariable-regex:
metavariable: $METHOD
regex: componentWillMount|componentWillReceiveProps|componentWillUpdate
message: >-
Legacy component lifecycle was detected - $METHOD.
languages:
- typescript
- javascript
severity: WARNING
metadata:
category: best-practice
technology:
- react