Skip to content

test: clear the remaining staticcheck findings - #298

Open
kzhx666 wants to merge 4 commits into
TooonyChen:mainfrom
kzhx666:fix/staticcheck
Open

kzhx666 wants to merge 4 commits into
TooonyChen:mainfrom
kzhx666:fix/staticcheck

Conversation

@kzhx666

@kzhx666 kzhx666 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #232, split per review. Drops the importer commit entirely and
keeps the user-visible diagnostics verbatim (ST1005 silenced on those three
lines with a reason). TestCloseAsksOnce keeps its deliberate second
CloseRequested() with the SA4000 check silenced on that line.

staticcheck ./... is clean (0 findings), go vet ./... passes, and go test
passes on every package except the known headless-container UI flakes in
internal/app (baseline 5 failures, this branch 3; TestSysInfoPopover /
TestSysInfoStaleReads pass 3/3 when run alone).

Rebased on current main: the fix(deps) commit is dropped — the equivalent
landed in #270.

Closes part of #232.

SA4006: rest was set before the switch and reassigned in each case, so
the first value was never read.
ssh.InsecureKeyAlgoDSA is deprecated (SA1019); the wire name it holds is
stable and is what the label switch compares.
SA4000/SA4006: CloseRequested was called twice in the same ||, and the
first deploy.sh lookup was never read.

This branch has not been deployed

No deployments
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.

2 participants