analyze_file
Identify security vulnerabilities, code complexity problems, and style violations in a single file to help maintain high-quality code.
Instructions
分析单个文件的代码质量、复杂度和安全问题。
会运行所有适用的规则:
安全规则(SEC001-SEC012):eval/exec、shell 注入、pickle、弱哈希、硬编码密钥、SSL 关闭等
复杂度规则(COMPLEX001-005):函数长度、圈复杂度、认知复杂度、参数个数、嵌套深度
风格规则(STYLE001-004):行长、TODO、末尾空白、调试残留
Args: file_path: 要分析的文件路径(相对于项目根目录或绝对路径)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes |