Why Adjust Rule Severity?
You might want to adjust a rule’s severity in Clayton if it’s firing too frequently and cluttering your PRs, enforcing something that’s valid but not critical, better suited as a suggestion than a requirement, or out of sync with your team’s current approach allowing you to keep code quality high without slowing down your workflow.
Step-by-Step: Change Rule Severity in Clayton
1. Open Clayton Settings
Click the Admin Tools (spanner icon) in the bottom-left corner of the Clayton interface.
Select “Policies” from the menu. You’ll see all your defined policy sets.
2. Choose the Policy to Edit
Find the policy you'd like to update (e.g., “Intentional”) and click “Edit action” to open its rules.
3. Find the Rule
Scroll through the list of rules and locate the one you'd like to modify.
Click the “Edit” button next to the rule. You’ll see an option to change the severity level such as from “Error” to “Warning” or “Critical”.
Alternatively: Disable the Rule
If changing the severity isn’t a good fit, you can disable the rule entirely from the same screen. This is helpful if a rule just doesn’t apply to your project or you’re experimenting with new patterns.