Skip to content

Commit 6a07392

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

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
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: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,15 @@ 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$"
8785
- ".*/bpf/kmesh/bpf2go/kernelnative/enhanced/kmeshsockops_bpfel.go"
86+
- ".*/kmeshsockops_bpfel.go"
8887
exclude-dirs:
8988
- bpf/kmesh/bpf2go/dualengine
90-
- bpf/kmesh/bpf2go/kernelnative
89+
- bpf/kmesh/bpf2go/kernelnative/enhanced
9190
exclude-rules:
9291
# Exclude some linters from running on test files.
9392
- path: _test\.go$|^tests/|^samples/
@@ -97,6 +96,9 @@ issues:
9796
- path: _test\.go$
9897
text: "dot-imports: should not use dot imports"
9998
# We need to use the deprecated module since the jsonpb replacement is not backwards compatible.
99+
- path: ".*/kmeshsockops_bpfel.go"
100+
linters:
101+
- errcheck
100102
- linters:
101103
- staticcheck
102104
text: "SA1019: package github.com/golang/protobuf/jsonpb"

0 commit comments

Comments
 (0)