Skip to content

Commit 3e0779a

Browse files
committed
chore: update linter, and workflow
1 parent d042cfa commit 3e0779a

File tree

5 files changed

+14
-41
lines changed

5 files changed

+14
-41
lines changed

.github/workflows/go-cross.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,8 @@ jobs:
2020
os: [ubuntu-latest, macos-latest, windows-latest]
2121

2222
steps:
23-
# https://github.com/marketplace/actions/checkout
24-
- name: Checkout code
25-
uses: actions/checkout@v4
26-
27-
# https://github.com/marketplace/actions/setup-go-environment
28-
- name: Set up Go ${{ matrix.go-version }}
29-
uses: actions/setup-go@v5
23+
- uses: actions/checkout@v4
24+
- uses: actions/setup-go@v5
3025
with:
3126
go-version: ${{ matrix.go-version }}
3227

.github/workflows/main.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,14 @@ jobs:
1313
runs-on: ubuntu-latest
1414
env:
1515
GO_VERSION: stable
16-
GOLANGCI_LINT_VERSION: v1.55.2
16+
GOLANGCI_LINT_VERSION: v1.63.4
1717
SEIHON_VERSION: v0.9.0
1818
CGO_ENABLED: 0
1919

2020
steps:
2121

22-
# https://github.com/marketplace/actions/checkout
23-
- name: Check out code
24-
uses: actions/checkout@v4
25-
with:
26-
fetch-depth: 0
27-
28-
# https://github.com/marketplace/actions/setup-go-environment
29-
- name: Set up Go ${{ env.GO_VERSION }}
30-
uses: actions/setup-go@v5
22+
- uses: actions/checkout@v4
23+
- uses: actions/setup-go@v5
3124
with:
3225
go-version: ${{ env.GO_VERSION }}
3326

.github/workflows/release.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,18 @@ jobs:
1515

1616
steps:
1717

18-
# https://github.com/marketplace/actions/checkout
19-
- name: Check out code
20-
uses: actions/checkout@v4
18+
- uses: actions/checkout@v4
2119
with:
2220
fetch-depth: 0
23-
24-
# https://github.com/marketplace/actions/setup-go-environment
25-
- name: Set up Go ${{ env.GO_VERSION }}
26-
uses: actions/setup-go@v5
21+
- uses: actions/setup-go@v5
2722
with:
2823
go-version: ${{ env.GO_VERSION }}
2924

3025
- name: Make
3126
run: make build
3227

3328
- name: Run GoReleaser
34-
uses: goreleaser/goreleaser-action@v5
29+
uses: goreleaser/goreleaser-action@v6
3530
with:
3631
version: latest
3732
args: release --clean --timeout=90m

.golangci.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -90,36 +90,24 @@ linters-settings:
9090
linters:
9191
enable-all: true
9292
disable:
93-
- deadcode # deprecated
94-
- exhaustivestruct # deprecated
95-
- golint # deprecated
96-
- ifshort # deprecated
97-
- interfacer # deprecated
98-
- maligned # deprecated
99-
- nosnakecase # deprecated
100-
- scopelint # deprecated
101-
- structcheck # deprecated
102-
- varcheck # deprecated
93+
- exportloopref # deprecated
10394
- cyclop # duplicate of gocyclo
10495
- sqlclosecheck # not relevant (SQL)
10596
- rowserrcheck # not relevant (SQL)
106-
- execinquery # not relevant (SQL)
10797
- lll
108-
- gas
98+
- gosec
10999
- dupl
110100
- prealloc
111-
- scopelint
112101
- wsl
113102
- nlreturn
114-
- gomnd
103+
- mnd
115104
- testpackage
116105
- paralleltest
117106
- tparallel
118-
- goerr113
107+
- err113
119108
- wrapcheck
120109
- exhaustive
121110
- exhaustruct
122-
- ifshort
123111
- varnamelen
124112
- nilnil
125113
- gosmopolitan # not relevant

.goreleaser.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
version: 2
2+
13
project_name: traefik-certs-cleaner
24

35
builds:

0 commit comments

Comments
 (0)