diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-20 22:56:31 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-20 22:56:31 +0200 |
| commit | 19f01585154b64639615e8f436bc123df6f59113 (patch) | |
| tree | 17c35c4c1c673688dd3d71f60e59425c35dfa3e5 | |
| parent | f407b81ae98a7edc669cf315c4ec47a58112dacf (diff) | |
.golangci.yml: Add linter configuration
- Configured common linters (gofmt, goimports, govet, errcheck, etc.)
- Set local-prefixes for goimports to include project's module path
| -rw-r--r-- | .golangci.yml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..2b76c52 --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,25 @@ +# golangci-lint configuration for perc project + +linters: + enable: + - gofmt + - goimports + - govet + - errcheck + - staticcheck + - unused + - gosimple + - structcheck + - varcheck + - ineffassign + - deadcode + - typecheck + +linters-settings: + goimports: + local-prefixes: codeberg.org/snonux/perc + errcheck: + check-blank: false + +run: + timeout: 5m |
