fix: allow library to initialize without config and fix lefthook lint flag

- Default to empty Config in NewLibrary when nil is passed, so Wails
  binding generation succeeds without a config file on disk.
- Fix golangci-lint v2 flag in lefthook (--build-tags, not -tags).
- Run golangci-lint on full project instead of individual staged files.
This commit is contained in:
2026-02-13 22:50:51 -06:00
parent 2da78c092b
commit 5a958db162
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ pre-commit:
golangci-lint:
glob: "*.go"
run: golangci-lint run --timeout 5m -tags webkit2_41 {staged_files}
run: golangci-lint run --timeout 5m --build-tags webkit2_41 ./...
codegen-check:
glob: "*.{go,sql,templ}"