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
{{ message }}
Repository navigation
check-unsafe: source read errors become successful zero counts #151
The count function ends its grep pipeline with || true. A source read error produces grep exit 2, but wc still prints a count and count returns success. Reproducing the function with a missing source path returned count=0 and status=0. A source file that becomes unreadable or disappears after collection can therefore be counted as zero. The caller accepts counts below the pin and finishes green. Handle grep exit 1 as an empty match, propagate all other errors, and add a self-test that supplies an unreadable or missing source path.
Activity
juliankang4 commentedon Oct 14, 2026
Working on a fix for this.