Compare commits
2 Commits
928c389a5a
...
23d22a0f19
| Author | SHA1 | Date | |
|---|---|---|---|
| 23d22a0f19 | |||
| c9c72ef29d |
32
.golangci.yml
Normal file
32
.golangci.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
version: "2"
|
||||
|
||||
run:
|
||||
timeout: 5m
|
||||
modules-download-mode: readonly
|
||||
|
||||
linters:
|
||||
default: all
|
||||
disable:
|
||||
# Genuinely incompatible with project patterns
|
||||
- exhaustruct # Requires all struct fields
|
||||
- depguard # Dependency allow/block lists
|
||||
- godot # Requires comments to end with periods
|
||||
- wsl # Deprecated, replaced by wsl_v5
|
||||
- wrapcheck # Too verbose for internal packages
|
||||
- varnamelen # Short names like db, id are idiomatic Go
|
||||
|
||||
linters-settings:
|
||||
lll:
|
||||
line-length: 88
|
||||
funlen:
|
||||
lines: 80
|
||||
statements: 50
|
||||
cyclop:
|
||||
max-complexity: 15
|
||||
dupl:
|
||||
threshold: 100
|
||||
|
||||
issues:
|
||||
exclude-use-default: false
|
||||
max-issues-per-linter: 0
|
||||
max-same-issues: 0
|
||||
11
TODO.md
11
TODO.md
@@ -14,12 +14,16 @@ pre-1.0
|
||||
|
||||
# Next Step
|
||||
|
||||
Bring the repo into policy compliance in one commit: add REPO_POLICIES.md
|
||||
(copied from sneak/prompts), .editorconfig, and .golangci.yml. Verify
|
||||
`make check` stays green with the new lint config.
|
||||
Remediate the 2,990 lint findings surfaced by the standard
|
||||
`.golangci.yml` (issue #61): behavior-preserving fixes in per-linter or
|
||||
per-package chunks, mechanical linters first, until `make check` is
|
||||
green on `main`.
|
||||
|
||||
# Completed Steps
|
||||
|
||||
- 2026-08-07: Added the standard `.golangci.yml` and `.editorconfig`
|
||||
(issue #59); lint findings under the new config are tracked in issue
|
||||
#61. `script/bootstrap` now installs sqlite3 (needed by tests).
|
||||
- 2026-07-07 Adopted scripts-to-rule-them-all: `script/` entrypoints,
|
||||
Makefile shims, README Entrypoints section
|
||||
- 2026-07-02: Consolidated CLI verbs, retired overlapping commands; bound
|
||||
@@ -42,7 +46,6 @@ Bring the repo into policy compliance in one commit: add REPO_POLICIES.md
|
||||
|
||||
# Future Steps
|
||||
|
||||
- Add REPO_POLICIES.md, .editorconfig, .golangci.yml (the Next Step).
|
||||
- Reconcile the uncommitted ARCHITECTURE.md edits on main: finish and
|
||||
commit, or revert.
|
||||
- Review stale local branches (add-godoc-to-cli-package,
|
||||
|
||||
@@ -65,6 +65,9 @@ main() {
|
||||
pkg_install golangci-lint golangci-lint golangci-lint golangci-lint
|
||||
fi
|
||||
|
||||
# sqlite3 CLI: the test suite shells out to it (VACUUM).
|
||||
if missing sqlite3; then pkg_install sqlite sqlite3 sqlite sqlite; fi
|
||||
|
||||
go mod download
|
||||
|
||||
echo "bootstrap complete"
|
||||
|
||||
Reference in New Issue
Block a user