This is an automated email from the ASF dual-hosted git repository.

pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/main by this push:
     new 5229675f3 chore(lint): Fix warnings when running linter
5229675f3 is described below

commit 5229675f3140c4de691598b96d3617902809bec7
Author: Michal Vavřík <michal.vav...@aol.com>
AuthorDate: Mon Sep 8 15:55:28 2025 +0200

    chore(lint): Fix warnings when running linter
    
    - closes: https://github.com/apache/camel-k/pull/6125
    
    Changes:
    
    - drop `gomnd` as it has been replaced by `mnd` (see 
https://github.com/golangci/golangci-lint/pull/4572) and then removed (see 
https://github.com/golangci/golangci-lint/pull/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.`
---
 .golangci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.golangci.yml b/.golangci.yml
index b4e0be7d5..d09cd478f 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -98,7 +98,6 @@ linters:
     - gocyclo
     - godox
     - err113
-    - gomnd
     - ireturn
     - nilnil
     - nlreturn
@@ -112,3 +111,4 @@ linters:
     # TODO: too much work at this stage as many files are impacted by the lint 
suggestions, however the reported
     #       lint violation make a lot of sense so we should re-enable the 
lints below and work to fix the findings
     - perfsprint
+    - tenv  # the functionality provided by 'usetesting'

Reply via email to