Skip to content

Commit 48af1b8

Browse files
authored
[chore][golangci-lint] Remove gosec excludes (#10411)
#### Description The upstream issue was fixed by golangci/golangci-lint#4748, which was included in release [`v1.59.0`](https://github.com/golangci/golangci-lint/releases/tag/v1.59.0) of `golangci-lint`. From local testing, we're pulling version `v1.59.0` of `golangci-lint`, so the issue should be resolved. Local runtime with excludes: ``` $ .tools/golangci-lint run -v --enable-only gosec ... INFO Execution took 1.866075148s INFO Execution took 1.218805785s INFO Execution took 1.09527985s ``` Local runtime without excludes: ``` $ .tools/golangci-lint run -v --enable-only gosec ... INFO Execution took 2.244716429s INFO Execution took 1.539717296s INFO Execution took 1.530163777s ``` Note: I ran `.tools/golangci-lint cache clean` between each test to clean the cache and keep results as consistent as possible. <!-- Issue number if applicable --> #### Link to tracking issue Fixes #10213
1 parent 42b61cc commit 48af1b8

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

.golangci.yml

-7
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,6 @@ linters-settings:
119119
files:
120120
- "!**/*_test.go"
121121

122-
gosec:
123-
excludes:
124-
# https://github.com/open-telemetry/opentelemetry-collector/issues/10213
125-
- G601
126-
# https://github.com/open-telemetry/opentelemetry-collector/issues/10213
127-
- G113
128-
129122
linters:
130123
enable:
131124
- depguard

0 commit comments

Comments
 (0)