Commit 71ec736
committed
fix(cmd/mdsmith): address code-review round 1 findings
- Strengthen TestRunCheck_Stdin_ChecksSource and
TestRunCheck_Discovered_ChecksConfiguredFiles: both fed clean
Markdown and asserted only exit code 0, which a silent
stdin-routing or discovery bug could also produce. Switch to
content with a trailing-space diagnostic and assert exit code 1
plus the diagnostic source.
- Close the pipe read end in TestRunCheck_Stdin_ChecksSource,
matching the close-both-ends convention used elsewhere in this
file.
- Correct the touched-file count in the audit log (148, not 134 —
two-dot diff --stat is the accurate count) and the internal/githooks
line count cited in plan/2608021916 (1,346, not 1,347).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016AbFuwvqqq2fBiYWa3ubap1 parent 5a2b5fb commit 71ec736
3 files changed
Lines changed: 15 additions & 8 deletions
File tree
- cmd/mdsmith
- docs/development
- plan
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
836 | 836 | | |
837 | 837 | | |
838 | 838 | | |
| 839 | + | |
839 | 840 | | |
840 | 841 | | |
841 | 842 | | |
842 | | - | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
843 | 846 | | |
844 | 847 | | |
845 | 848 | | |
846 | 849 | | |
847 | | - | |
| 850 | + | |
848 | 851 | | |
849 | 852 | | |
850 | | - | |
| 853 | + | |
| 854 | + | |
851 | 855 | | |
852 | 856 | | |
853 | 857 | | |
| |||
868 | 872 | | |
869 | 873 | | |
870 | 874 | | |
| 875 | + | |
| 876 | + | |
871 | 877 | | |
872 | | - | |
| 878 | + | |
873 | 879 | | |
874 | 880 | | |
875 | 881 | | |
876 | | - | |
| 882 | + | |
877 | 883 | | |
878 | 884 | | |
879 | | - | |
| 885 | + | |
| 886 | + | |
880 | 887 | | |
881 | 888 | | |
882 | 889 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
0 commit comments