Skip to content

Commit 13aa5cd

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

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-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: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,16 @@ 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"
8888
exclude-dirs:
8989
- bpf/kmesh/bpf2go/dualengine
90-
- bpf/kmesh/bpf2go/kernelnative
90+
- bpf/kmesh/bpf2go/kernelnative/enhanced
9191
exclude-rules:
9292
# Exclude some linters from running on test files.
9393
- path: _test\.go$|^tests/|^samples/
@@ -97,6 +97,9 @@ issues:
9797
- path: _test\.go$
9898
text: "dot-imports: should not use dot imports"
9999
# We need to use the deprecated module since the jsonpb replacement is not backwards compatible.
100+
- path: ".*/kmeshsockops_bpfel\\.go"
101+
linters:
102+
- errcheck
100103
- linters:
101104
- staticcheck
102105
text: "SA1019: package github.com/golang/protobuf/jsonpb"

0 commit comments

Comments
 (0)