← Back to Pull requests

Update module github.com/uudashr/gocognit to v1.3.0 #9088

Merged
renovate[bot] merged 2 files (6 lines) on Oct 06, 2026 07:45 UTC
View on GitHub
renovate[bot] renovate[bot] commented on Oct 06, 2026 07:30 UTC
Author

This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
| github.com/uudashr/gocognit | v1.2.2 → v1.3.0 | !age | !confidence |

---

Release Notes

<details>
<summary>uudashr/gocognit (github.com/uudashr/gocognit)</summary>

v1.3.0

Compare Source

Highlights

  • Recursion is now counted per method in a cycle. A recursive function with multiple self-calls (for example Fibonacci) scores 2 instead of 3, and indirect (mutual) recursion is counted as well. If you use -over or golangci-lint's min-complexity, review your thresholds.

  • New -exact-recursion CLI flag. It works out what each call points to the way the compiler does, so recursion is scored exactly. It is slower and the code must build; the default syntax-only mode now prints a one-time note on stderr when it may be under-counting.

  • New package-aware API for callers that need exact results: ComplexityStatsForFiles, ComplexityStatsForFilesWithDiagnostic, RecursiveFuncs, ScanComplexityWithRecursion, and PossibleMethodRecursion.
  • What's Changed

  • Fix the recursion using cycle-recursion by @&#8203;uudashr in #&#8203;46

  • Add exact-recursion to CLI for better recursion checks by @&#8203;uudashr in #&#8203;47
  • Full Changelog: <https://github.com/uudashr/gocognit/compare/v1.2.2...v1.3.0>

    </details>

    ---

    Configuration

    📅 Schedule: (UTC)

  • Branch creation

  • - At any time (no schedule defined)
  • Automerge

  • - At any time (no schedule defined)

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    ♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.

    ---

    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

    ---

    This PR was generated by Mend Renovate. View the repository job log.
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMzQuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjEzNC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJTa2lwIENoYW5nZWxvZyIsImRlcGVuZGVuY2llcyJdfQ==-->

    Diff: 6 lines (+3 / -3) across 2 files Reviewer: dmathieu Review duration: 15m
    All Vouch review confidence checks passed
    Residual risk 0.05 = Change Risk (0.16) × (1 − Review Confidence (0.71)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.16 · 6 lines diff across 2 files
    0.16
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.56 · 1 substantive comment(s)
    0.56
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    70%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.116
    Real PR Conversation Timeline
    3 items
    codecov[bot] codecov[bot] commented on Oct 06, 2026 07:34 UTC
    Bot

    Codecov Report


    :white_check_mark: All modified and coverable lines are covered by tests.
    :white_check_mark: Project coverage is 89.1%. Comparing base (a793212) to head (3d7e786).

    <details><summary>Additional details and impacted files</summary>

    ![Impacted file tree graph](https://app.codecov.io/gh/open-telemetry/opentelemetry-go/pull/9088?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry)

    @@           Coverage Diff           @@
    ##            main   #9088     +/-   ##
    =======================================
    - Coverage   89.1%   89.1%   -0.1%     
    =======================================
      Files        339     339             
      Lines      22340   22340             
    =======================================
    - Hits       19921   19918      -3     
    - Misses      2419    2422      +3     
    

    see 3 files with indirect coverage changes
    </details>
    <details><summary> :rocket: New features to boost your workflow: </summary>

  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

  • </details>

    dmathieu dmathieu approved these changes on Oct 06, 2026 07:37 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    renovate[bot] renovate[bot]
    Labels
    risk: low confidence: 70.9% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 16.1% (LOW) · Higher = larger blast radius
    16.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 70.9% · Lower = rushed or shallow review
    70.9%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 4.7% · Safe to merge
    4.7%