Skip to content

Commit 7a8eb6b

Browse files
committed
Simplify golangci-lint configuration to debug CI failures
- Use minimal v2 configuration with basic linters only - Add --verbose flag to CI for better error reporting - This should help identify the specific configuration issue causing exit code 3
1 parent ea1d4a2 commit 7a8eb6b

4 files changed

Lines changed: 4 additions & 98 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
uses: golangci/golangci-lint-action@v8
6868
with:
6969
version: latest
70-
args: --timeout=5m
70+
args: --timeout=5m --verbose
7171

7272
benchmark:
7373
name: Benchmark

.golangci.yml

Lines changed: 0 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@ version: "2"
22

33
run:
44
timeout: 5m
5-
modules-download-mode: readonly
6-
7-
output:
8-
formats:
9-
- format: colored-line-number
10-
path: stdout
115

126
linters:
137
default: false
@@ -18,97 +12,7 @@ linters:
1812
- ineffassign
1913
- staticcheck
2014
- unused
21-
- goconst
22-
- gocyclo
23-
- gosec
24-
- misspell
25-
- unconvert
26-
- unparam
27-
- gocritic
28-
- revive
29-
30-
formatters:
31-
enable:
32-
- gofmt
33-
- goimports
34-
35-
linters-settings:
36-
errcheck:
37-
check-type-assertions: true
38-
check-blank: true
39-
govet:
40-
enable:
41-
- shadow
42-
gocyclo:
43-
min-complexity: 15
44-
dupl:
45-
threshold: 100
46-
goconst:
47-
min-len: 2
48-
min-occurrences: 2
49-
goimports:
50-
local-prefixes: github.com/vnykmshr/obcache-go
51-
gofmt:
52-
simplify: true
53-
gosec:
54-
excludes:
55-
- G404
5615

5716
issues:
58-
exclude-rules:
59-
- path: _test\.go
60-
linters:
61-
- gosec
62-
- gocritic
63-
- errcheck
64-
- goconst
65-
- unparam
66-
- revive
67-
- gocyclo
68-
- path: bench_test\.go
69-
linters:
70-
- errcheck
71-
- unparam
72-
- path: examples/
73-
linters:
74-
- gosec
75-
- gocritic
76-
- path: internal/singleflight/
77-
linters:
78-
- revive
79-
- path: pkg/obcache/wrap\.go
80-
linters:
81-
- errcheck
82-
- revive
83-
- path: internal/store/memory/memory\.go
84-
linters:
85-
- goimports
86-
- path: internal/eviction/
87-
linters:
88-
- revive
89-
- goimports
90-
- path: internal/store/redis/redis\.go
91-
linters:
92-
- errcheck
93-
- revive
94-
- path: pkg/obcache/logging\.go
95-
linters:
96-
- revive
97-
- staticcheck
98-
- text: "SA1029.*should not use built-in type string as key"
99-
linters:
100-
- staticcheck
101-
- text: "SA9003.*empty branch"
102-
linters:
103-
- staticcheck
104-
- path: pkg/obcache/logging_test.go
105-
linters:
106-
- staticcheck
107-
- text: "unused-parameter.*seems to be unused"
108-
linters:
109-
- revive
110-
- text: "result.*is always nil"
111-
linters:
112-
- unparam
11317
max-issues-per-linter: 0
11418
max-same-issues: 0

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.23.0
55
require (
66
github.com/hashicorp/golang-lru/v2 v2.0.7
77
github.com/prometheus/client_golang v1.20.4
8-
github.com/redis/go-redis/v9 v9.5.3
8+
github.com/redis/go-redis/v9 v9.6.3
99
go.opentelemetry.io/otel v1.38.0
1010
go.opentelemetry.io/otel/metric v1.38.0
1111
)

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ github.com/prometheus/procfs v0.16.1 h1:hZ15bTNuirocR6u0JZ6BAHHmwS1p8B4P6MRqxtzM
4141
github.com/prometheus/procfs v0.16.1/go.mod h1:teAbpZRB1iIAJYREa1LsoWUXykVXA1KlTmWl8x/U+Is=
4242
github.com/redis/go-redis/v9 v9.5.3 h1:fOAp1/uJG+ZtcITgZOfYFmTKPE7n4Vclj1wZFgRciUU=
4343
github.com/redis/go-redis/v9 v9.5.3/go.mod h1:hdY0cQFCN4fnSYT6TkisLufl/4W5UIXyv0b/CLO2V2M=
44+
github.com/redis/go-redis/v9 v9.6.3 h1:8Dr5ygF1QFXRxIH/m3Xg9MMG1rS8YCtAgosrsewT6i0=
45+
github.com/redis/go-redis/v9 v9.6.3/go.mod h1:0C0c6ycQsdpVNQpxb1njEQIqkx5UcsM8FJCQLgE9+RA=
4446
github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII=
4547
github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o=
4648
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=

0 commit comments

Comments
 (0)