Add golangci-lint config and lint tasks

- Add .golangci.yml with sensible defaults for the project
- Add lint and lint:fix tasks to Taskfile
- Remove unused findGitRoot function
- Apply gofumpt formatting fixes
This commit is contained in:
2025-12-18 05:56:11 +01:00
parent 1cca87af90
commit 4773460f3f
3 changed files with 76 additions and 14 deletions

View File

@ -69,6 +69,16 @@ tasks:
cmds:
- go mod tidy
lint:
desc: Run golangci-lint
cmds:
- golangci-lint run
lint:fix:
desc: Run golangci-lint with auto-fix
cmds:
- golangci-lint run --fix
clean:
desc: Remove built binary
cmds: