diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 07f9baa..b074220 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v2 with: - version: v1.35 + version: v1.43 env: VERBOSE: "true" diff --git a/.golangci.yml b/.golangci.yml index b5356f5..bceefbb 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -9,6 +9,8 @@ linters-settings: govet: check-shadowing: true enable-all: true + disable: + - fieldalignment lll: line-length: 80 tab-width: 4 @@ -20,43 +22,52 @@ linters-settings: linters: disable-all: true enable: + - asciicheck - bodyclose - deadcode - depguard - - dupl + - durationcheck - errcheck + - errorlint + - exhaustive + - exportloopref - funlen - gochecknoinits - goconst - gocritic - gocyclo - - goerr113 + - godot + - gofumpt - goimports - - golint - goprintffuncname - gosec - gosimple - govet + - importas - ineffassign - lll - misspell - nakedret + - nilerr - nlreturn - noctx - nolintlint - - scopelint + - prealloc + - predeclared + - revive + - rowserrcheck - sqlclosecheck - staticcheck - structcheck - typecheck - unconvert + - unparam - unused - varcheck + - wastedassign - whitespace issues: - include: - # - EXC0002 # disable excluding of issues about comments from golint exclude: - Using the variable on range scope `tt` in function literal - Using the variable on range scope `tc` in function literal @@ -71,6 +82,12 @@ issues: - source: "`json:" linters: - lll + - source: "`xml:" + linters: + - lll + - source: "`yaml:" + linters: + - lll run: timeout: 2m diff --git a/Makefile b/Makefile index 1598645..5ffa451 100644 --- a/Makefile +++ b/Makefile @@ -52,7 +52,7 @@ endef $(eval $(call tool,godoc,golang.org/x/tools/cmd/godoc)) $(eval $(call tool,gofumports,mvdan.cc/gofumpt/gofumports)) -$(eval $(call tool,golangci-lint,github.com/golangci/golangci-lint/cmd/golangci-lint@v1.35)) +$(eval $(call tool,golangci-lint,github.com/golangci/golangci-lint/cmd/golangci-lint@v1.43)) $(eval $(call tool,gomod,github.com/Helcaraxan/gomod)) .PHONY: tools