Skip to content

Commit ccd4852

Browse files
themr0cclaude
andcommitted
RHIDP-12779: Add autofix and manual fix guidance to cqa.sh output
When issues are found, the summary now suggests running with --fix for autofixable issues and asking Claude for the CQA main workflow for manual fixes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b838c4e commit ccd4852

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

build/scripts/cqa.sh

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,15 @@ if [[ "$CQA_ALL_MODE" == true ]]; then
141141
echo "---"
142142
echo "**Total:** ${total} checks | ${passed} passed | ${failed} with issues"
143143

144-
[[ $failed -gt 0 ]] && exit 1
144+
if [[ $failed -gt 0 ]]; then
145+
echo ""
146+
echo "To auto-fix what can be auto-fixed, run:"
147+
echo '```'
148+
echo "./build/scripts/cqa.sh --fix --all"
149+
echo '```'
150+
echo "To attempt manual fixes, ask Claude to run the CQA main workflow."
151+
exit 1
152+
fi
145153
exit 0
146154
fi
147155

@@ -169,4 +177,10 @@ echo "========================================"
169177
echo "## CQA Summary"
170178
echo "Scripts run: $total | Passed: $passed | Failed: $failed"
171179

172-
[[ $failed -gt 0 ]] && exit 1
180+
if [[ $failed -gt 0 ]]; then
181+
echo ""
182+
echo "To auto-fix what can be auto-fixed, run:"
183+
echo " ./build/scripts/cqa.sh --fix ${pass_args[*]}"
184+
echo "To attempt manual fixes, ask Claude to run the CQA main workflow."
185+
exit 1
186+
fi

0 commit comments

Comments
 (0)