Skip to content

Commit 99757b0

Browse files
committed
ci: remove unnecessary lint skips and update lint exclusions to check provider specific paths.
1 parent 6275670 commit 99757b0

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

.golangci.yml

+1-12
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,11 @@ issues:
4747
## Defaults we want from golangci-lint
4848
# errcheck: Almost all programs ignore errors on these functions and in most cases it's ok
4949
- Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked
50-
- empty-block
51-
52-
# go sec : we want to allow skipping tls auth
53-
- "TLS InsecureSkipVerify set true."
5450
- "SA1019"
5551

5652
exclude-rules:
5753
# Exclude some linters from running on test files.
58-
- path: _test\.go$|^tests/|^integration/|^samples/|^internal/testutil/|templates\.go$
54+
- path: _test\.go$|^test/|^examples/|templates\.go$
5955
linters:
6056
- bodyclose
6157
- errcheck
@@ -69,13 +65,6 @@ issues:
6965
- scopelint
7066
- gosec
7167
- gosimple
72-
- path: internal/identity/oauth/github/github.go
73-
text: "Potential hardcoded credentials"
74-
linters:
75-
- gosec
7668
- text: "G112:"
7769
linters:
7870
- gosec
79-
- text: "G402: TLS MinVersion too low."
80-
linters:
81-
- gosec

0 commit comments

Comments
 (0)