mcp-server-semgrep
Version:
MCP Server for Semgrep Integration - static code analysis with AI
15 lines (14 loc) • 409 B
YAML
rules:
- id: hardcoded-tmp-path
pattern: open("=~/^\/tmp.*/", ...)
message: >-
Detected hardcoded temp directory. Consider using 'tempfile.TemporaryFile' instead.
metadata:
references:
- https://docs.python.org/3/library/tempfile.html#tempfile.TemporaryFile
category: best-practice
technology:
- python
severity: WARNING
languages:
- python