Skip to content

changes for lighthouse 0.20.0#118

Draft
zachmann wants to merge 30 commits intomainfrom
changes-for-lighthouse-20
Draft

changes for lighthouse 0.20.0#118
zachmann wants to merge 30 commits intomainfrom
changes-for-lighthouse-20

Conversation

@zachmann
Copy link
Collaborator

…namic FederationEntity interfaces with improved configuration handling

…namic FederationEntity interfaces with improved configuration handling
@zachmann zachmann changed the title [entity collector] refactor FederationEntity; introduce Static and Dy… changes for lighthouse 0.20.0 Oct 30, 2025
@deepsource-io
Copy link
Contributor

deepsource-io bot commented Oct 30, 2025

DeepSource Code Review

We reviewed changes in cf7042b...9386e0f on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade  

Focus Area: Hygiene
Security  

Reliability  

Complexity  

Hygiene  

Coverage  

Feedback

  • Mutex-bearing types being copied by value
    • Several reliability smells stem from copying types that embed sync.RWMutex (and using value receivers that go unused), which duplicates locks and enables subtle races; convert those types and their methods to pointer receivers and avoid passing lock-bearing structs by value to stop the pattern.
  • Accumulation of dead/leftover code
    • Unused functions, parameters, and vague TODOs indicate code churn without cleanup; treating deprecated items with the proper "Deprecated: " doc comment, removing or consolidating dead code, and making TODOs actionable will prevent further bloat.
  • Inconsistent style and error-handling patterns
    • Redundant error checks, awkward else/if constructs, and mixed declaration styles point to missing automated style/lint enforcement; applying consistent lint rules (formatting, error-return idioms, and comment conventions) and fixing violations will eliminate these recurring small defects.

Code Review Summary

Analyzer Status Updated (UTC) Details
Go Mar 16, 2026 12:46p.m. Review ↗
Test coverage Mar 16, 2026 12:46p.m. Review ↗

Code Coverage Summary

Language Line Coverage (New Code) Line Coverage (Overall)
Aggregate
1.6%
35.7%
[▼ down 12% from main]
Go
1.6%
35.7%
[▼ down 12% from main]

➟ Additional coverage metrics may have been reported. See full coverage report ↗

…s; add shared rotation helpers; refactor rotation logic
…-memory implementation; refactor TrustMarkIssuer to support configurable spec providers
zachmann added 2 commits March 6, 2026 11:01
…ions (SlotNumber, MaxSessions, UserType, LoginNotSupported, PoolWaitTimeout)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant