Skip to content

Commit

Permalink
Replace deprecated tenv linter by usetesting
Browse files Browse the repository at this point in the history
  • Loading branch information
srebhan committed Feb 13, 2025
1 parent e9fee69 commit b97f0a1
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ linters:
- revive
- sqlclosecheck
- staticcheck
- tenv
- testifylint
- tparallel
- typecheck
- unconvert
- unparam
- unused
- usetesting

linters-settings:
depguard:
Expand Down Expand Up @@ -322,11 +322,6 @@ linters-settings:
- name: var-declaration
- name: var-naming
- name: waitgroup-by-value
tenv:
# The option `all` will run against whole test files (`_test.go`) regardless of method/function signatures.
# Otherwise, only methods that take `*testing.T`, `*testing.B`, and `testing.TB` as arguments are checked.
# Default: false
all: true
testifylint:
# Disable all checkers (https://github.com/Antonboom/testifylint#checkers).
# Default: false
Expand Down Expand Up @@ -356,6 +351,14 @@ linters-settings:
- suite-subtest-run
- suite-thelper
- useless-assert
usetesting:
# Enable/disable `os.CreateTemp("", ...)` detections.
# Default: true
os-create-temp: false
# Enable/disable `os.MkdirTemp()` detections.
# Default: true
os-mkdir-temp: false


issues:
# List of regexps of issue texts to exclude.
Expand Down

0 comments on commit b97f0a1

Please sign in to comment.