Skip to content

Commit 5ae43df

Browse files
authored
Ban time.Tick by enabling forbidigo linter (milvus-io#22676)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
1 parent c626b90 commit 5ae43df

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.golangci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ linters:
2121
- revive
2222
- durationcheck
2323
- unconvert
24+
- forbidigo
2425
- depguard
2526
# - gocritic
2627

@@ -43,6 +44,10 @@ linters-settings:
4344
- github.com/pingcap/errors
4445
- golang.org/x/xerrors
4546
- github.com/go-errors/errors
47+
forbidigo:
48+
forbid:
49+
- '^time\.Tick$'
50+
#- 'fmt\.Print.*' WIP
4651

4752
issues:
4853
exclude-use-default: false

0 commit comments

Comments
 (0)