Commit 158c07e
♻️ (scripts): Extract _align_prereq_readme to cut complexity
process_prereq_rows nested two rewrite loops and a touched flag inside its
per-README loop, pushing cognitive complexity to 16 (python:S3776, limit 15).
Move the per-README alignment into _align_prereq_readme, leaving the outer
function a flat collect loop. Behaviour identical.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TdxntF32Wi278LGD22dVS41 parent c2462e3 commit 158c07e
1 file changed
Lines changed: 20 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
869 | 869 | | |
870 | 870 | | |
871 | 871 | | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
872 | 891 | | |
873 | 892 | | |
874 | 893 | | |
| |||
891 | 910 | | |
892 | 911 | | |
893 | 912 | | |
894 | | - | |
895 | | - | |
896 | | - | |
897 | | - | |
898 | | - | |
899 | | - | |
900 | | - | |
901 | | - | |
902 | | - | |
903 | | - | |
| 913 | + | |
904 | 914 | | |
905 | 915 | | |
906 | 916 | | |
| |||
0 commit comments