UchihaIthachi opened a new pull request, #6934:
URL: https://github.com/apache/camel-k/pull/6934

   <!-- Description -->
   Enables the three complexity linters from #5486 (gocyclo, gocognit, cyclop) 
with limits that need no code changes today, so new code can't become more 
complex than the current worst case, as suggested in the issue discussion.
   
   Thresholds are set at the current maximums in non-generated code:
   
   | Linter | Threshold | Current max |
   |---|---|---|
   | gocyclo | 46 | `source (YAMLInspector).parseStep` |
   | cyclop | 47 | same function (cyclop counts it one higher) |
   | gocognit | 132 | same function (next highest: `XMLInspector.Extract`, 94) |
   
   `make lint` passes with 0 issues.
   
   The limits are high because of these two outliers. If you prefer, I can 
instead add `//nolint` with a reason to just those two functions and use lower 
limits (about gocyclo 34 / gocognit 56, based on the next highest functions).
   
   Issue: #5486
   
   I used an AI assistant to help with parts of this change; I reviewed and 
tested every change locally.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to