← Back to Pull requests

chore(deps): update module github.com/uudashr/gocognit to v1.3.0 #2266

Merged
renovate[bot] merged 2 files (6 lines) on Oct 06, 2026 07:38 UTC
View on GitHub
renovate[bot] renovate[bot] commented on Oct 06, 2026 07:29 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: 9m
    All Vouch review confidence checks passed
    Residual risk 0.09 = Change Risk (0.26) × (1 − Review Confidence (0.65)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.26 · 6 lines diff across 2 files
    0.26
    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%
    64%
    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
    Rapid Merge rapid_merge
    0.100
    Real PR Conversation Timeline
    3 items
    codecov[bot] codecov[bot] commented on Oct 06, 2026 07:30 UTC
    Bot

    Codecov Report


    :white_check_mark: All modified and coverable lines are covered by tests.
    :white_check_mark: Project coverage is 71.59%. Comparing base (3ca7228) to head (5b142fa).

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

    @@           Coverage Diff           @@
    ##             main    #2266   +/-   ##
    =======================================
      Coverage   71.59%   71.59%           
    =======================================
      Files           2        2           
      Lines          88       88           
    =======================================
      Hits           63       63           
      Misses         13       13           
      Partials       12       12           
    

    </details>

    :umbrella: View full report in Codecov by Harness.
    :loudspeaker: Have feedback on the report? Share it here.
    <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:31 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    renovate[bot] renovate[bot]
    Labels
    risk: low confidence: 64.6% 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: 26.1% (LOW) · Higher = larger blast radius
    26.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: 64.6% · Lower = rushed or shallow review
    64.6%
    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: 9.2% · Safe to merge
    9.2%