Skip to content

Commit 3a3143d

Browse files
committed
[Change] slop: remove 15 unused LMD_<STEM>_VERSION sub-lib constants
[Change] files/internals/{lmd.lib,lmd_alert,lmd_clamav,lmd_config, lmd_engine,lmd_hook,lmd_init,lmd_lifecycle,lmd_monitor, lmd_quarantine,lmd_scan,lmd_session,lmd_sigs,lmd_update, lmd_yara}.sh: strip LMD_<STEM>_VERSION="1.0.0" assignments + paired shellcheck disable=SC2034 directives (45 deletions); constants were declared at sub-lib extraction but never read from any source, test, packaging, or doc surface [Change] _LMD_<STEM>_LOADED=1 source guards untouched — those remain the idempotent-sourcing mechanism; _VERSION constants were parallel, not load-bearing [Change] CHANGELOG, CHANGELOG.RELEASE: v2.0.1 [Change] entry; round 3 AI-slop audit
1 parent dc26059 commit 3a3143d

17 files changed

Lines changed: 12 additions & 45 deletions

CHANGELOG

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ v2.0.1 | Mar 25 2026:
8989

9090
-- Changes --
9191

92+
[Change] slop: remove 15 unused LMD_<STEM>_VERSION sub-lib constants +
93+
paired shellcheck disable=SC2034 suppressions; set at sub-lib
94+
extraction, never consumed by any code, test, packaging, or
95+
doc surface; _LMD_<STEM>_LOADED source guards (distinct symbols)
96+
remain as the idempotent-sourcing mechanism; round 3 slop audit
97+
9298
[New] _monitor_to_ere_entry(): semantic dispatch helper for ignore_inotify
9399
entry preparation (defaults-always-escape, user-raw-or-literal:)
94100
[Change] tests/48-monitor-ignore-regex.bats: integration coverage for

CHANGELOG.RELEASE

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ v2.0.1 | Mar 25 2026:
8989

9090
-- Changes --
9191

92+
[Change] slop: remove 15 unused LMD_<STEM>_VERSION sub-lib constants +
93+
paired shellcheck disable=SC2034 suppressions; set at sub-lib
94+
extraction, never consumed by any code, test, packaging, or
95+
doc surface; _LMD_<STEM>_LOADED source guards (distinct symbols)
96+
remain as the idempotent-sourcing mechanism; round 3 slop audit
97+
9298
[New] _monitor_to_ere_entry(): semantic dispatch helper for ignore_inotify
9399
entry preparation (defaults-always-escape, user-raw-or-literal:)
94100
[Change] tests/48-monitor-ignore-regex.bats: integration coverage for

files/internals/lmd.lib.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414
[[ -n "${_LMD_LIB_LOADED:-}" ]] && return 0 2>/dev/null
1515
_LMD_LIB_LOADED=1
1616

17-
# shellcheck disable=SC2034
18-
LMD_LIB_VERSION="1.0.0"
19-
2017
# Resolve internals directory from this file's location
2118
_internals_dir="${BASH_SOURCE[0]%/*}"
2219

files/internals/lmd_alert.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
[[ -n "${_LMD_ALERT_LOADED:-}" ]] && return 0 2>/dev/null
1616
_LMD_ALERT_LOADED=1
1717

18-
# shellcheck disable=SC2034
19-
LMD_ALERT_VERSION="1.0.0"
20-
2118
# Data Preparation
2219

2320
# _lmd_parse_hitlist hitlist_file — parse hit list to 6-field tab-delimited manifest on stdout

files/internals/lmd_clamav.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
[[ -n "${_LMD_CLAMAV_LOADED:-}" ]] && return 0 2>/dev/null
1414
_LMD_CLAMAV_LOADED=1
1515

16-
# shellcheck disable=SC2034
17-
LMD_CLAMAV_VERSION="1.0.0"
18-
1916
# _clamav_validate_sigs staging_dir — validate ClamAV can load staged sig files; returns 0 on pass/absent
2017
# shellcheck disable=SC2034
2118
_clamav_validate_sigs() {

files/internals/lmd_config.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
[[ -n "${_LMD_CONFIG_LOADED:-}" ]] && return 0 2>/dev/null
1414
_LMD_CONFIG_LOADED=1
1515

16-
# shellcheck disable=SC2034
17-
LMD_CONFIG_VERSION="1.0.0"
18-
1916
detect_control_panel() {
2017
if [[ -d /usr/local/interworx ]]; then
2118
# NOTE (PR#478 copilot review): these "ps | grep" patterns do not

files/internals/lmd_engine.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
[[ -n "${_LMD_ENGINE_LOADED:-}" ]] && return 0 2>/dev/null
1414
_LMD_ENGINE_LOADED=1
1515

16-
# shellcheck disable=SC2034
17-
LMD_ENGINE_VERSION="1.0.0"
18-
1916
_hash_batch_worker() {
2017
# Self-contained batch hash scanner for a chunk of files.
2118
# Runs in a subshell (backgrounded by caller).

files/internals/lmd_hook.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
[[ -n "${_LMD_HOOK_LOADED:-}" ]] && return 0 2>/dev/null
1414
_LMD_HOOK_LOADED=1
1515

16-
# shellcheck disable=SC2034
17-
LMD_HOOK_VERSION="1.0.0"
18-
1916
# _scan_hook_validate hook_path — security validation (root-owned, not world-writable); returns 0/1
2017
_scan_hook_validate() {
2118
local _hook_path="$1"

files/internals/lmd_init.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
[[ -n "${_LMD_INIT_LOADED:-}" ]] && return 0 2>/dev/null
1414
_LMD_INIT_LOADED=1
1515

16-
# shellcheck disable=SC2034
17-
LMD_INIT_VERSION="1.0.0"
18-
1916
_detect_sha_capability() {
2017
# Detect CPU SHA hardware acceleration capability.
2118
# Returns via stdout: "hardware", "software", or "none".

files/internals/lmd_lifecycle.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
[[ -n "${_LMD_LIFECYCLE_LOADED:-}" ]] && return 0 2>/dev/null
1414
_LMD_LIFECYCLE_LOADED=1
1515

16-
# shellcheck disable=SC2034
17-
LMD_LIFECYCLE_VERSION="1.0.0"
18-
1916
# _lifecycle_write_meta scanid pid ppid path total_files workers engine hashtype stages options
2017
# Writes $sessdir/scan.meta.$scanid with #LMD_META:v1 header.
2118
# Atomic: writes to .tmp then renames.

0 commit comments

Comments
 (0)