You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: report error decreases in --check-files flag (#36)
* feat: report error decreases in --check-files flag
Replace getErrorIncreases with getErrorChanges to track both increases
and decreases. When errors decrease, display an informational message
to help developers verify fixes have succeeded.
Closes#35
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* fix: report decreases before increases so users see progress
Move the decrease reporting block before the increase check in
checkErrorChanges(). Previously, if there were any error increases,
exitWithError() would terminate the process immediately, preventing
users from seeing their successful fixes (decreases).
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* fix: use consistent newline characters in error message
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* fix: add blank line between decrease and increase messages
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* refactor: simplify getErrorChanges with for...of loop
Replace reduce pattern with a cleaner for...of loop since we're just
building up a mutable object.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* docs: document error decrease reporting
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Checks the provided files and updates the records. Exits with code 1 if errors increase (preventing the commit), otherwise updates the records file for the checked files. Deleted files are automatically removed from the records.
77
+
Checks the provided files and updates the records. Exits with code 1 if errors increase (preventing the commit), otherwise updates the records file for the checked files. Reports when errors decrease, celebrating your progress. Deleted files are automatically removed from the records.
@@ -84,7 +84,7 @@ If no files are provided, exits cleanly with a success message.
84
84
85
85
### `--check-files <file1> <file2> ...`
86
86
87
-
Checks specific files without updating records. Exits with code 1 if checked files show increased error counts (or new errors), or if any provided file does not exist. Primarily for CI to ensure PRs don't introduce new compiler errors.
87
+
Checks specific files without updating records. Exits with code 1 if checked files show increased error counts (or new errors), or if any provided file does not exist. Reports when errors decrease, celebrating your progress. Primarily for CI to ensure PRs don't introduce new compiler errors.
0 commit comments