Skip to content

chore(scan): drop four unused definitions - #37

Open
joeymussalli wants to merge 1 commit into
trustabl:mainfrom
joeymussalli:chore/remove-dead-code
Open

chore(scan): drop four unused definitions#37
joeymussalli wants to merge 1 commit into
trustabl:mainfrom
joeymussalli:chore/remove-dead-code

Conversation

@joeymussalli

Copy link
Copy Markdown

Each of these is written once and never referenced again:

  • SCAN_START and SCAN_END capture timestamps around the scan, but nothing reads them -- not the console report, not trustabl-summary.md, not trustabl.env. shellcheck flags both as SC2034.
  • md_emoji() and md_count() render emoji progress bars ("🟩🟩⬜⬜", "▰▰▱▱") and are never called. They were clearly written for the markdown summary, which currently emits a plain severity table instead.

Removing them takes the script to zero shellcheck findings at warning level (it was two), which makes it practical to gate on that later.

Worth a maintainer's opinion: md_emoji and md_count could equally be wired in rather than deleted, giving trustabl-summary.md the same visual treatment the console report already gets. Deleting is the smaller, more reversible change, so that is what this does -- happy to switch it to the other one instead.

No behaviour change: the removed names had no readers, bash -n passes, and nothing else in the script referenced them.

Each of these is written once and never referenced again:

- SCAN_START and SCAN_END capture timestamps around the scan, but nothing
  reads them -- not the console report, not trustabl-summary.md, not
  trustabl.env. shellcheck flags both as SC2034.
- md_emoji() and md_count() render emoji progress bars ("🟩🟩⬜⬜", "▰▰▱▱") and
  are never called. They were clearly written for the markdown summary, which
  currently emits a plain severity table instead.

Removing them takes the script to zero shellcheck findings at warning level
(it was two), which makes it practical to gate on that later.

Worth a maintainer's opinion: md_emoji and md_count could equally be *wired in*
rather than deleted, giving trustabl-summary.md the same visual treatment the
console report already gets. Deleting is the smaller, more reversible change,
so that is what this does -- happy to switch it to the other one instead.

No behaviour change: the removed names had no readers, `bash -n` passes, and
nothing else in the script referenced them.
@joeymussalli
joeymussalli force-pushed the chore/remove-dead-code branch from dcf3fec to 81341c6 Compare August 24, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant