Skip to content

Commit 151e9de

Browse files
authored
chore: add support for usestdlibvars (#4057)
1 parent 4f290e0 commit 151e9de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ linters:
4545
- unconvert # Remove unnecessary type conversions [fast: false, auto-fix: false]
4646
- unparam # Reports unused function parameters [fast: false, auto-fix: false]
4747
- unused #(megacheck): Checks Go code for unused constants, variables, functions and types [fast: false, auto-fix: false]
48+
- usestdlibvars # A linter that detect the possibility to use variables/constants from the Go standard library. [fast: true, auto-fix: false]
4849
- whitespace # Tool for detection of leading and trailing whitespace [fast: true, auto-fix: true]
4950
- zerologlint # Detects the wrong usage of `zerolog` that a user forgets to dispatch with `Send` or `Msg` [fast: false, auto-fix: false]
5051

0 commit comments

Comments
 (0)