mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-11 00:07:03 +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
|
||
|---|---|---|
| .. | ||
| data | ||
| lib | ||
| analyze_repo.sh | ||
| check_brother_printer.sh | ||
| convert_video.sh | ||
| convert_words.sh | ||
| docx_to_pdf.sh | ||
| download_exercism_bulk.sh | ||
| download_nltk_data.py | ||
| fast_count.py | ||
| find_keepassxc.sh | ||
| format_sd_card.sh | ||
| generate_study_materials.sh | ||
| gif_to_square.sh | ||
| image_to_resolution.sh | ||
| install_exercism.sh | ||
| install_offline_docs.sh | ||
| install_plagiarism_tools.sh | ||
| lookup_docs.sh | ||
| organize_downloads.sh | ||
| pdf_to_image.sh | ||
| repo_to_study.sh | ||
| root_bl9000.sh | ||
| setup_android_adblock.sh | ||
| setup_media_organizer.sh | ||
| setup_offline_docs.sh | ||
| setup_passwordless_system.sh | ||
| sort_downloads.sh | ||
| steam_compatibility.sh | ||
| sync_keepassxc.sh | ||
| to_mp4.sh | ||
| to_webm.sh | ||
| toggle_mic.sh | ||
| toggle_wheel.sh | ||
| toggle_window_manager.sh | ||
| turn_off_auto_idle_screen_shutdown.sh | ||
| txt_to_image.sh | ||
| update_android_hosts.sh | ||
| upgrade.sh | ||
| volume_control.sh | ||