Skip to content

Commit 5229675

Browse files
michalvavriksquakez
authored andcommitted
chore(lint): Fix warnings when running linter
- closes: #6125 Changes: - drop `gomnd` as it has been replaced by `mnd` (see golangci/golangci-lint#4572) and then removed (see golangci/golangci-lint#5110) - addresses warning: `WARN [lintersdb] The linter "gomnd" is deprecated (step 2) and deactivated. It should be removed from the list of disabled linters. https://golangci-lint.run/product/roadmap/#linter-deprecation-cycle` - disable `tenv` as the same functionality is provided by `usetesting` and we enable it with `enable-all: true` - addresses warning: `WARN The linter 'tenv' is deprecated (since v1.64.0) due to: Duplicate feature another linter. Replaced by usetesting.`
1 parent f0493e2 commit 5229675

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ linters:
9898
- gocyclo
9999
- godox
100100
- err113
101-
- gomnd
102101
- ireturn
103102
- nilnil
104103
- nlreturn
@@ -112,3 +111,4 @@ linters:
112111
# TODO: too much work at this stage as many files are impacted by the lint suggestions, however the reported
113112
# lint violation make a lot of sense so we should re-enable the lints below and work to fix the findings
114113
- perfsprint
114+
- tenv # the functionality provided by 'usetesting'

0 commit comments

Comments
 (0)