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

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

commit e6f7a79f292230d5c16e8323c2754d1631ed4be4
Author: UchihaIthachi <[email protected]>
AuthorDate: Thu Nov 5 23:20:40 2026 +0530

    fix(ci): enable gocyclo, gocognit and cyclop with current-max thresholds
    
    Signed-off-by: UchihaIthachi <[email protected]>
---
 .golangci.yml | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/.golangci.yml b/.golangci.yml
index f50e4ae49..5c53106b3 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -21,7 +21,6 @@ run:
 linters:
   default: all
   disable:
-    - cyclop
     - depguard
     - err113
     - exhaustive
@@ -31,8 +30,6 @@ linters:
     - funlen
     - gochecknoglobals
     - gochecknoinits
-    - gocognit
-    - gocyclo
     - godox
     - ireturn
     - lll
@@ -47,11 +44,20 @@ linters:
     - wsl_v5
     - gomodguard
   settings:
+    cyclop:
+      # Current maximum in non-generated code; lower it as the outliers get 
refactored.
+      max-complexity: 47
+    gocognit:
+      # Current maximum: source (YAMLInspector).parseStep.
+      min-complexity: 132
     goconst:
       min-len: 4
       min-occurrences: 10
       ignore-calls: true
       numbers: false
+    gocyclo:
+      # Current maximum: source (YAMLInspector).parseStep.
+      min-complexity: 46
     lll:
       line-length: 170
     mnd:

Reply via email to