Commit fd2be32
fix: sort README candidates for determinism and guard iterdir OSErrors
- README scan: sort candidates before next() so selection is deterministic
when multiple variants exist (e.g. readme.md and README.rst both present)
- README scan: wrap iterdir() in try/except OSError, return Finding.error
instead of crashing
- ADR scan: wrap both docs/ and root iterdir() calls in try/except OSError,
fall through gracefully rather than propagating
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 960e005 commit fd2be32
1 file changed
Lines changed: 36 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
| 404 | + | |
404 | 405 | | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
413 | 421 | | |
414 | 422 | | |
415 | 423 | | |
| |||
573 | 581 | | |
574 | 582 | | |
575 | 583 | | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
| 584 | + | |
| 585 | + | |
587 | 586 | | |
588 | 587 | | |
589 | 588 | | |
590 | 589 | | |
591 | 590 | | |
592 | 591 | | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
593 | 610 | | |
594 | 611 | | |
595 | 612 | | |
| |||
0 commit comments