analyze_diff
Analyze a git diff against IDE rules to identify violations, using staged changes by default. Configure speed mode, apply filters, and specify rules for detailed analysis of code changes.
Instructions
This tool is used to analyze a git diff (unstaged, staged, or all changes) against IDE rules to identify rule violations. By default, the tool will use the staged changes, unless the user explicitly asks for unstaged or all changes.
Parameters:
- params: An object containing:
- speedMode: boolean - A mode that can be enabled to speed up the analysis. Default value is false.
- filterBy: enum - "Violations" | "Compliants" | "Human Review Required" | "None" - A filter that can be applied to set the focus of the analysis. Default is None.
- diff: string - A git diff string.
- rules: string - Rules to use for analysis, found in the rules subdirectory of the IDE workspace settings. Combine all rules from multiple files by separating them with ---
Returns:
- A list of rule violations found in the git diff.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
params | No |