Reference in New Issue
Block a user
Delete Branch "golangci-v2.12.2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Finishes the lint remediation tracked in #61, which in turn unblocks #59
(both files from #59's definition of done are already on
main; #59 staysopen only because
make checkis red under the canonical config).What this branch does
Chunk 2 of the remediation, on top of the mechanical chunk 1 already on
main. Behavior-preserving throughout:err113: dynamic errors replaced with package-level sentinels and%wwrapping; direct comparisons converted to
errors.Isgoprintffuncname: printf-style helpers renamed with anfsuffix(
ui.Writermessage methods,cli.ReportErrorf,database.Fatalf,vaultik
stdoutf) and all call sites updatedrevive: stuttering type names renamed (blob.Handler,blob.WithReader,blob.ChunkPosition,storage.URL,storage.Info),doc comments and package comments added, unused parameters blanked
contextcheck/noctx:ctxthreaded throughblob.Packer(
AddChunk/Flush/FinalizeBlob/PackChunks) and scanner call sitesfunlen/cyclop/gocognit/nestif/dupl: oversized or duplicatedfunctions split into focused helpers
paralleltest/tparallel/thelper/usetesting/testpackage: testsparallelized where safe, helpers marked,
t.TempDiradoptedgosec: integer conversions clamped or justified; remaining findingssuppressed with per-site justifications
log.LogOptionsalias (callers migrated tolog.Options).golangci.yml,Dockerfile, andMakefileon this branch arebyte-identical to
main— the canonical config (sha256021cc83f4e6fc7c31b95b34b846723dfcf20b66b7baeea1dc40406e643346bcb) isnot modified here.
Current state: NOT green
make checkon this branch exits 2.make testandmake fmt-checkpass(all 14 packages
ok), butmake lintstill reports 80 findings:wsl_v5: 60sqlclosecheck: 10gosec: 4prealloc: 3revive: 3Note that commit
7ae470e's message asserts "make check is green"; thatassertion does not hold as of this branch tip. Labeled
needs-checksuntil the remaining 80 are fixed.
Closing this PR as empty — correcting my own earlier analysis.
origin/golangci-v2.12.2andorigin/mainhave identical treehashes:
git diff origin/main origin/golangci-v2.12.2is empty. The branchcontributes zero content delta. The "126 changed files / 8,184
additions" shown on this PR is a merge-base artifact: the branch's merge
base with
mainpredatescc58583, so the three-dot diff replays workthat is already on
main. The chunk-2 remediation landed onmainviaPR #62 and this branch is a leftover pointer at the same tree.
The material consequence:
mainis currently red. The 80 lintfindings I reported earlier were measured on this branch's content, which
is byte-for-byte
main's content. Somake checkfails onmaintoday,and therefore so does
.gitea/workflows/check.ymlanddocker build .:wsl_v560,sqlclosecheck10,gosec4,prealloc3,revive3make testandmake fmt-checkare green; onlymake lintis redRemediation continues against
maindirectly on a new branch,lint-remediation-final, which will get its own PR closing #61 and #59.This PR and the
golangci-v2.12.2branch are being retired.Pull request closed