rules_config_set_rule
Set a code smell rule's weight in the repository rules file to silence or soften it for specific paths; set weight to 0 to disable the rule.
Instructions
Set a rule's weight in the repository rules file (0 disables the rule).
When to use: to silence or soften a smell for part of a repository.
Limitations: writes the rules file in the repository root; the first
matching rule set wins, so a new specific glob is placed first.
Returns: {rules_file, rule, weight, matching_content_path}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repository_path": "<repository_path>",
"rule_name": "<rule_name>",
"weight": "<weight>"
},
"name": "rules_config_set_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| weight | Yes | ||
| rule_name | Yes | ||
| repository_path | Yes | ||
| matching_content_path | No | **/* |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||