Skip to content

Commit ce15081

Browse files
authored
Merge pull request #1249 from dongjiang1989/update-context
🌱chore: Sync `.golangci.yaml` from controller-runtime
2 parents 1d1e212 + 2a1c423 commit ce15081

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.golangci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ linters:
1919
- errchkjson
2020
- errorlint
2121
- exhaustive
22+
- forbidigo
2223
- ginkgolinter
2324
- goconst
2425
- gocritic
@@ -41,6 +42,12 @@ linters:
4142
- unused
4243
- whitespace
4344
settings:
45+
forbidigo:
46+
forbid:
47+
- pattern: context.Background
48+
msg: Use ginkgos SpecContext or go testings t.Context instead
49+
- pattern: context.TODO
50+
msg: Use ginkgos SpecContext or go testings t.Context instead
4451
govet:
4552
disable:
4653
- fieldalignment

0 commit comments

Comments
 (0)