Files
vikunja/.github
Claude 120c02eac6 chore(veans): AGPLv3 license header, golangci config, lint clean
Adds the standard Vikunja AGPLv3 header to every Go file under veans/
(matching pkg/), copies code-header-template.txt locally, and creates
veans/.golangci.yml mirroring the parent's enabled linters and key
exclusions. Adds a veans-lint job to test.yml that runs golangci-lint
inside the veans submodule, paralleling the existing api-lint job.

Code fixes from the lint pass:
- errors.As replaces type-assertion error checks (errorlint)
- exec.CommandContext replaces exec.Command (noctx); RepoRoot,
  runGit, currentGitBranch take ctx
- create.go's intentional best-effort refetch gets //nolint:nilerr
  with a rationale comment
- api.go checks Write errors (errcheck)
- output/errors.go uses errors.As + handles Encode error (errchkjson)
- e2e helpers fmt.Errorf wraps with %w (errorlint)
- unused branchAuto field removed; unused cobra params renamed to _

Suppressions in .golangci.yml mirror the parent's: G115
(uintptr→int for term.ReadPassword), G117 (Password/Token struct
fields), G70[45] (SSRF/XSS — false positives for an HTTP CLI), G204
(test subprocess), G306 on .veans.yml (committed file, intentionally
0o644).
2026-05-07 21:55:20 +00:00
..