Skip to content

Conversation

@Jkhall81
Copy link
Contributor

Summary

This PR implements a new exit code (8) to distinguish between a clean run and a run where all violations were successfully resolved using --fix.

  • Added RC.FIXED_VIOLATIONS = 8 to constants.
  • Updated report_outcome logic to prioritize the fixed-violations exit code when no failures remain and files were modified.
  • Added integration test in test/test_app.py to verify the new behavior.

Closes #4674

@Jkhall81 Jkhall81 force-pushed the feat/4674-special-exit-code-on-fix branch from 8583092 to abd2ee1 Compare January 11, 2026 14:04
@github-actions github-actions bot added feat and removed feat labels Jan 11, 2026
@alisonlhart alisonlhart merged commit 26f4838 into ansible:main Jan 12, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Return special exit code when auto-fixing leave no other changes to be made

2 participants