Commit d6c715b
fix(harper-cli): return exit code 0 when no lints are found
The `lint()` function unconditionally called `process::exit(1)`,
causing `harper-cli lint` to always exit with code 1 even when no
lints were found. This was a regression introduced in PR #2138.
Now exits with code 1 only when lints are present, and returns
Ok(()) (exit code 0) otherwise.
Fixes #2832
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent e28a08e commit d6c715b
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| 271 | + | |
| 272 | + | |
271 | 273 | | |
272 | 274 | | |
273 | 275 | | |
| |||
278 | 280 | | |
279 | 281 | | |
280 | 282 | | |
281 | | - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
282 | 288 | | |
283 | 289 | | |
284 | 290 | | |
| |||
0 commit comments