Skip to content

Commit a7c8c1e

Browse files
committed
chore: update golangci-lint configuration
1 parent 055074a commit a7c8c1e

File tree

2 files changed

+5
-20
lines changed

2 files changed

+5
-20
lines changed

.github/workflows/lint.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,6 @@ permissions:
1414
contents: read
1515

1616
jobs:
17-
format:
18-
runs-on: ubuntu-latest
19-
steps:
20-
- name: Clone repository
21-
uses: actions/checkout@v4
22-
23-
- name: Set up Go
24-
uses: actions/setup-go@v5
25-
with:
26-
go-version: stable
27-
28-
- name: Set up gofumpt
29-
run: go install mvdan.cc/gofumpt@latest
30-
31-
- name: Run gofumpt
32-
run: |
33-
non_formatted_files="$(gofumpt -l .)"
34-
echo "$non_formatted_files"
35-
test -z "$non_formatted_files"
36-
3717
golangci-lint:
3818
runs-on: ubuntu-latest
3919

.golangci.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
version: "2"
2+
3+
formatters:
4+
enable:
5+
- gofumpt
6+
27
linters:
38
enable:
49
- makezero

0 commit comments

Comments
 (0)