Skip to content

Commit 8e26b31

Browse files
Bump golangci/golangci-lint from v2.4.0 to v2.5.0 (#173)
* Bump golangci/golangci-lint from v2.4.0 to v2.5.0 Bumps golangci/golangci-lint from v2.4.0 to v2.5.0. --- updated-dependencies: - dependency-name: golangci/golangci-lint dependency-version: v2.5.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * Update config --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marat Reymers <marat.maratori@gmail.com>
1 parent 2296837 commit 8e26b31

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
go-version: "1.25.1" # update together with dev.dockerfile
5656
- uses: golangci/golangci-lint-action@v8
5757
with:
58-
version: "v2.4.0" # update together with dev.dockerfile
58+
version: "v2.5.0" # update together with dev.dockerfile
5959

6060
lint-latest-deps:
6161
runs-on: ubuntu-latest
@@ -67,7 +67,7 @@ jobs:
6767
- run: make apply-latest-deps
6868
- uses: golangci/golangci-lint-action@v8
6969
with:
70-
version: "v2.4.0" # update together with dev.dockerfile
70+
version: "v2.5.0" # update together with dev.dockerfile
7171

7272
check-tidy:
7373
name: go mod tidy

.golangci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ linters:
6464
- goconst # finds repeated strings that could be replaced by a constant
6565
- gocritic # provides diagnostics that check for bugs, performance and style issues
6666
- gocyclo # computes and checks the cyclomatic complexity of functions
67+
- godoclint # checks Golang's documentation practice
6768
- godot # checks if comments end in a period
6869
- gomoddirectives # manages the use of 'replace', 'retract', and 'excludes' directives in go.mod
6970
- goprintffuncname # checks that printf-like functions are named with f at the end
@@ -72,6 +73,7 @@ linters:
7273
- iface # checks the incorrect use of interfaces, helping developers avoid interface pollution
7374
- ineffassign # detects when assignments to existing variables are not used
7475
- intrange # finds places where for loops could make use of an integer range
76+
- iotamixing # checks if iotas are being used in const blocks with other non-iota declarations
7577
- loggercheck # checks key value pairs for common logger libraries (kitlog,klog,logr,zap)
7678
- makezero # finds slice declarations with non-zero initial length
7779
- mirror # reports wrong mirror patterns of bytes/strings usage
@@ -105,6 +107,7 @@ linters:
105107
- tparallel # detects inappropriate usage of t.Parallel() method in your Go test codes
106108
- unconvert # removes unnecessary type conversions
107109
- unparam # reports unused function parameters
110+
- unqueryvet # detects SELECT * in SQL queries and SQL builders, encouraging explicit column selection
108111
- unused # checks for unused constants, variables, functions and types
109112
- usestdlibvars # detects the possibility to use variables/constants from the Go standard library
110113
- usetesting # reports uses of functions with replacement inside the testing package
@@ -300,6 +303,14 @@ linters:
300303
# Default: true
301304
skipRecvDeref: false
302305

306+
godoclint:
307+
# List of rules to enable in addition to the default set.
308+
# Default: empty
309+
enable:
310+
# Assert no unused link in godocs.
311+
# https://github.com/godoc-lint/godoc-lint?tab=readme-ov-file#no-unused-link
312+
- no-unused-link
313+
303314
govet:
304315
# Enable all analyzers.
305316
# Default: false

dev.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FROM golang:1.25.1 AS go
33

44
# update together with .github/workflows/ci.yml
5-
FROM golangci/golangci-lint:v2.4.0 AS linter
5+
FROM golangci/golangci-lint:v2.5.0 AS linter
66

77
FROM go AS dev
88
ENV INSIDE_DEV_CONTAINER=1

0 commit comments

Comments
 (0)