mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-13 11:50:48 +01:00
869 lines -> 231, with the extracted helpers and per-STEP blocks in
lib/analyze_repo_{scan,tools,separate,report,symbols}.sh (86-228 each).
The seam that mattered was STEP 4, whose two passes share a map of
language -> temp file. Rather than let that cross a file boundary, the
map is passed by nameref and the comments file by parameter, so
separate_code_and_comments fills what report_languages reads with no
global in between.
Two boundaries were one step off on the first pass and produced 23
shellcheck findings: the KEYWORDS_* tables and detect_languages had been
cut away from their only consumers, so every one read as unused (SC2034)
or unassigned (SC2154). Moving each beside its consumer cleared all 23
without a suppression. The nameref also makes shellcheck read a bare
assoc-array subscript on the left of an assignment as arithmetic;
quoting the nine keys is the fix.
The line-set diff against HEAD earned its place here: it caught a
`find ... -printf` call at original line 719 that had fallen into a
one-line gap between two extraction ranges and been dropped. bash -n and
shellcheck both passed on that broken version.
Verified without running the script (decision 6 -- install_missing_tools
calls sudo pacman, cargo and makepkg): shellcheck clean across all six,
the function set matches HEAD plus exactly the six new wrappers, no
executable line lost, and a stubbed run of the entry preamble defines
all fourteen functions, proving the source lines resolve at runtime.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011w2Pj4Ek3ZNMQVYcFHgXDY
|
||
|---|---|---|
| .. | ||
| analyze_repo_report.sh | ||
| analyze_repo_scan.sh | ||
| analyze_repo_separate.sh | ||
| analyze_repo_symbols.sh | ||
| analyze_repo_tools.sh | ||
| android_commands.sh | ||
| android_device.sh | ||
| android_module.sh | ||
| bl9000_backup.sh | ||
| bl9000_deps.sh | ||
| bl9000_device.sh | ||
| bl9000_magisk.sh | ||
| bl9000_mtkclient.sh | ||
| bl9000_usage.sh | ||
| docs_all.sh | ||
| docs_cpp.sh | ||
| docs_js.sh | ||
| docs_python_keywords.sh | ||
| docs_python.sh | ||
| docs_rust.sh | ||
| download_classify.sh | ||
| download_media.sh | ||
| download_sizes.sh | ||
| exercism_config.sh | ||
| idle_inhibit.sh | ||
| offline_cpp.sh | ||
| offline_index.sh | ||
| offline_js.sh | ||
| offline_python.sh | ||
| offline_rust.sh | ||
| offline_status.sh | ||
| repo_study_steps.sh | ||
| sd_card_ops.sh | ||