Adopt the shared .golangci.yml and fix the code to it (closes #6)
check / check (push) Successful in 5m14s
check / check (push) Successful in 5m14s
Vendor .golangci.yml byte-identical from sneak/prompts at cc440118 and move the Dockerfile lint phase to golangci-lint v2.14.0 by the digest REPO_POLICIES.md names. Fix the code to that config with flags, help text, output files, SQL and the order of steps unchanged; long functions are split into named steps. Judgement call: the extraction transaction is now rolled back on every early return; the old deferred rollback missed most failures and could dereference a nil transaction. Thirteen //nolint directives (gosec, unconvert, mnd, unqueryvet), each with its reason. Model: opus-5-5
This commit was merged in pull request #12.
This commit is contained in:
@@ -14,12 +14,14 @@ pre-1.0
|
||||
|
||||
# Next Step
|
||||
|
||||
Add the canonical `.golangci.yml`, move the lint phase to golangci-lint v2.14.0
|
||||
in the same commit, and fix the findings it surfaces
|
||||
(https://git.eeqj.de/sneak/bsdaily/issues/6).
|
||||
Expand tests beyond the compilation smoke test: unit tests for the extraction,
|
||||
verification, and atomic-publish paths.
|
||||
|
||||
# Completed Steps
|
||||
|
||||
- 2026-10-06: Added the canonical `.golangci.yml`, moved the lint phase to
|
||||
golangci-lint v2.14.0, and fixed the code to pass it
|
||||
(https://git.eeqj.de/sneak/bsdaily/issues/6).
|
||||
- 2026-10-06: Formatted Markdown with prettier: `script/fmt` writes and
|
||||
`script/fmt-check` checks every Markdown file; prettier pinned in
|
||||
`package.json` and `yarn.lock`, installed by `script/bootstrap`, which
|
||||
@@ -46,6 +48,4 @@ in the same commit, and fix the findings it surfaces
|
||||
|
||||
# Future Steps
|
||||
|
||||
- Expand tests beyond the compilation smoke test: unit tests for the extraction,
|
||||
verification, and atomic-publish paths.
|
||||
- Cut a first SemVer release once compliance and test coverage land.
|
||||
|
||||
Reference in New Issue
Block a user