analyze_diff
Analyze git diff content against IDE rules to identify rule violations, with options to focus on violations, compliants, or human review required. Supports staged, unstaged, or all changes for targeted analysis.
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 |