Skip to content

Bug: False positive error count due to regex matching "error:" in non-error contexts #2

@barrettj

Description

@barrettj

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:

  1. Method parameter names - Objective-C methods like error:(out NSError**)error
  2. 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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions