get_file_violations
Get code violations for a single file by automatically selecting the correct linter (P3C, ESLint, Stylelint, Checkstyle) based on file type, returning severity, message, and line number.
Instructions
获取指定文件的代码规约违规列表。YanceLint 会根据文件类型自动选择 P3C(Java)、ESLint(JS/TS)、Stylelint(CSS/SCSS)、Checkstyle(Java)进行扫描。返回违规消息、严重等级、行号等信息。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | 文件的绝对路径 |