-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Bug: False positive error count due to regex matching "error:" in non-error contexts
Problem: The tool is counting occurrences of error: in the build output, but this pattern appears in:
- Method parameter names - Objective-C methods like error:(out NSError**)error
- Warning messages that show code snippets containing methods with "error:" parameters
Example false positives:
178 | error:(out NSError**)error
This is just a code snippet in a warning message, not an actual error.
Suggested fix: The error parsing regex should look for lines that match actual Xcode error patterns like:
- ^/.+:\d+:\d+: error: (file:line:column: error:)
- Or check for error: at the start of a diagnostic message, not within quoted code
Workaround for now: The actual build status can be verified by checking if the log ends with "Build succeeded" or "Build failed".
Note: this is a report claude recommend I pass along after it started saying everything was failing for me when things were apparently succeeding