diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 78a19cd..363a109 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,7 +65,7 @@ jobs: go-version: "1.25.5" # update together with dev.dockerfile - uses: golangci/golangci-lint-action@v9 with: - version: "v2.7.2" # update together with dev.dockerfile + version: "v2.8.0" # update together with dev.dockerfile lint-latest-deps: runs-on: ubuntu-latest @@ -77,7 +77,7 @@ jobs: - run: make apply-latest-deps - uses: golangci/golangci-lint-action@v9 with: - version: "v2.7.2" # update together with dev.dockerfile + version: "v2.8.0" # update together with dev.dockerfile check-tidy: name: go mod tidy diff --git a/.golangci.yml b/.golangci.yml index dce306a..8e65a6e 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,4 +1,4 @@ -# Based on https://gist.github.com/maratori/47a4d00457a92aa426dbd48a18776322 +# Based on https://github.com/maratori/golangci-lint-config version: "2" @@ -311,6 +311,9 @@ linters: # Assert no unused link in godocs. # https://github.com/godoc-lint/godoc-lint?tab=readme-ov-file#no-unused-link - no-unused-link + # Require proper doc links to standard library declarations where applicable. + # https://github.com/godoc-lint/godoc-lint?tab=readme-ov-file#require-stdlib-doclink + - require-stdlib-doclink govet: # Enable all analyzers. diff --git a/dev.dockerfile b/dev.dockerfile index 8f4acdd..60dcb6b 100644 --- a/dev.dockerfile +++ b/dev.dockerfile @@ -2,7 +2,7 @@ FROM golang:1.25.5 AS go # update together with .github/workflows/ci.yml -FROM golangci/golangci-lint:v2.7.2 AS linter +FROM golangci/golangci-lint:v2.8.0 AS linter FROM go AS dev ENV INSIDE_DEV_CONTAINER=1