Skip to content

Commit 3045fbd

Browse files
committed
update
Signed-off-by: lec-bit <glfhmzmy@126.com>
1 parent 0a80f12 commit 3045fbd

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
4848
# Since requiring code generated by the Proto compilation, execute go lint after building.
4949
- name: golangci-lint
50-
uses: golangci/golangci-lint-action@v3.7.0
50+
uses: golangci/golangci-lint-action@v6.0.0
5151
with:
5252
args: "--config=common/config/.golangci.yaml --out-format colored-line-number --verbose"
5353
skip-pkg-cache: true

common/config/.golangci.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,17 @@ issues:
7878
# "/" will be replaced by current OS file path separator to properly work on Windows.
7979
# Default: []
8080
exclude-files:
81-
- ".*\\.pb\\.go"
82-
- ".*\\.gen\\.go"
8381
- ".*_bpfeb\\.go"
8482
- ".*_bpfel\\.go$"
8583
- ".*bpfeb\\.go"
8684
- ".*bpfel\\.go$"
87-
- ".*/bpf/kmesh/bpf2go/kernelnative/enhanced/kmeshsockops_bpfel.go"
85+
- ".*/bpf/kmesh/bpf2go/kernelnative/enhanced/kmeshsockops_bpfel\\.go"
86+
- "bpf/kmesh/bpf2go/kernelnative/enhanced/kmeshsockops_bpfel\\.go"
87+
- ".*kmeshsockops_bpfel\\.go"
88+
- bpf/kmesh/bpf2go/kernelnative/enhanced/kmeshsockops_bpfel.go
8889
exclude-dirs:
8990
- bpf/kmesh/bpf2go/dualengine
90-
- bpf/kmesh/bpf2go/kernelnative
91+
- bpf/kmesh/bpf2go/kernelnative/enhanced
9192
exclude-rules:
9293
# Exclude some linters from running on test files.
9394
- path: _test\.go$|^tests/|^samples/
@@ -97,6 +98,9 @@ issues:
9798
- path: _test\.go$
9899
text: "dot-imports: should not use dot imports"
99100
# We need to use the deprecated module since the jsonpb replacement is not backwards compatible.
101+
- path: kmeshsockops_bpfel\.go$
102+
linters:
103+
- errcheck
100104
- linters:
101105
- staticcheck
102106
text: "SA1019: package github.com/golang/protobuf/jsonpb"

0 commit comments

Comments
 (0)