Skip to content

Commit 2eb5223

Browse files
authored
Update golangci-lint to v1.59.1 (#59)
1 parent 8d838f8 commit 2eb5223

File tree

5 files changed

+9
-14
lines changed

5 files changed

+9
-14
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import _ "github.com/bool64/dev" // Include development helpers to project.
2626
Add `Makefile` to your module with includes standard targets.
2727

2828
```Makefile
29-
#GOLANGCI_LINT_VERSION := "v1.56.2" # Optional configuration to pinpoint golangci-lint version.
29+
#GOLANGCI_LINT_VERSION := "v1.59.1" # Optional configuration to pinpoint golangci-lint version.
3030

3131
# The head of Makefile determines location of dev-go to include standard targets.
3232
GO ?= go

makefiles/base.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#GOLANGCI_LINT_VERSION := "v1.56.2" # Optional configuration to pinpoint golangci-lint version.
1+
#GOLANGCI_LINT_VERSION := "v1.59.1" # Optional configuration to pinpoint golangci-lint version.
22

33
# The head of Makefile determines location of dev-go to include standard targets.
44
GO ?= go

scripts/.golangci.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,38 +21,33 @@ linters:
2121
enable-all: true
2222
disable:
2323
- lll
24-
- maligned
2524
- gochecknoglobals
2625
- gomnd
2726
- wrapcheck
2827
- paralleltest
2928
- forbidigo
30-
- exhaustivestruct
31-
- interfacer # deprecated
3229
- forcetypeassert
33-
- scopelint # deprecated
34-
- ifshort # too many false positives
35-
- golint # deprecated
3630
- varnamelen
3731
- tagliatelle
3832
- errname
3933
- ireturn
4034
- exhaustruct
4135
- nonamedreturns
42-
- nosnakecase
4336
- structcheck
44-
- varcheck
45-
- deadcode
4637
- testableexamples
4738
- dupword
4839
- depguard
4940
- tagalign
41+
- execinquery
42+
- mnd
43+
- testifylint
5044

5145
issues:
5246
exclude-use-default: false
5347
exclude-rules:
5448
- linters:
5549
- gomnd
50+
- mnd
5651
- goconst
5752
- goerr113
5853
- noctx

scripts/lint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
[ -z "$GO" ] && GO=go
4-
[ -z "$GOLANGCI_LINT_VERSION" ] && GOLANGCI_LINT_VERSION="v1.56.2"
4+
[ -z "$GOLANGCI_LINT_VERSION" ] && GOLANGCI_LINT_VERSION="v1.59.1"
55

66
# detecting GOPATH and removing trailing "/" if any
77
GOPATH="$(go env GOPATH)"

templates/github/workflows/golangci-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424
go-version: 1.22.x
2525
- uses: actions/checkout@v2
2626
- name: golangci-lint
27-
uses: golangci/golangci-lint-action@v4.0.0
27+
uses: golangci/golangci-lint-action@v6.0.1
2828
with:
2929
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
30-
version: v1.56.2
30+
version: v1.59.1
3131

3232
# Optional: working directory, useful for monorepos
3333
# working-directory: somedir

0 commit comments

Comments
 (0)