- Replace single wails.yml with three-workflow pipeline: ci.yml (PR checks), release.yml (semantic-release on main), build.yml (versioned builds on tag) - PR pipeline: conventional commit lint, golangci-lint, govulncheck, go test, codegen freshness check, frontend type-check, cross-platform build verification - Release pipeline: semantic-release with auto-changelog and draft GitHub releases - Build pipeline: versioned linux/amd64, darwin/universal, windows/amd64 binaries with version and commit SHA injected via ldflags - Add lefthook as go tool for pre-commit (vet, lint, codegen, tsc) and pre-push (test, mod verify) git hooks - Fix golangci-lint gci config to enforce three-group import style - Upgrade Go to 1.25 - Add version/commit variables to main.go for build-time injection - Add lint, test, vulncheck, and setup targets to Makefile
45 lines
662 B
YAML
45 lines
662 B
YAML
version: "2"
|
|
linters:
|
|
default: standard
|
|
enable:
|
|
- canonicalheader
|
|
- copyloopvar
|
|
- dupword
|
|
- err113
|
|
- errorlint
|
|
- exptostd
|
|
- gocritic
|
|
- godot
|
|
- goheader
|
|
- iface
|
|
- importas
|
|
- intrange
|
|
- mirror
|
|
- misspell
|
|
- nakedret
|
|
- nlreturn
|
|
- nolintlint
|
|
- perfsprint
|
|
- protogetter
|
|
- revive
|
|
- sloglint
|
|
- tagalign
|
|
- testifylint
|
|
- usestdlibvars
|
|
- usetesting
|
|
- whitespace
|
|
- wsl
|
|
formatters:
|
|
enable:
|
|
- gci
|
|
- gofmt
|
|
- gofumpt
|
|
- goimports
|
|
- golines
|
|
settings:
|
|
gci:
|
|
sections:
|
|
- standard
|
|
- default
|
|
- prefix(yellowjacket)
|