Commit d681291
committed
fix(audit): include untracked files in cpp_auto_audit
Switches `git ls-files` to `git ls-files --cached --others
--exclude-standard` so brand-new untracked .cpp/.hpp files are
audited locally before the first commit. Without this, a newly
added test file passes local `make lint` (because git ls-files
returns nothing for untracked files) but fails CI once the file
becomes tracked — caught in kalshi-trader@6a9f656, fix shipped at
c13153f. Same fix here for parity across the fleet.
No-op for already-passing repos; deduped via a `seen` set in case
git emits a path under both --cached and --others.1 parent 71f41f1 commit d681291
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
80 | 87 | | |
81 | | - | |
| 88 | + | |
82 | 89 | | |
83 | 90 | | |
84 | 91 | | |
85 | 92 | | |
86 | 93 | | |
| 94 | + | |
87 | 95 | | |
88 | 96 | | |
89 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
90 | 101 | | |
91 | 102 | | |
92 | 103 | | |
| |||
0 commit comments