chore(lint): align ireturn allow-list · Entire

chore(lint): align ireturn allow-list

b7042ed→main·

peyton-alt·3w ago·6 files·+7 added/-13 removed

Sessions

9ac13d9e6d9eView transcript

[?
Adopt Active Sessions Across Repos and WorktreesCodex·GPT-5.5·3 steps](/content/gh/entireio/cli/session/019ef6af-f809-76d3-8c95-7d7f0bc0c5ef#timeline-9ac13d9e6d9e/index.html)

Changes

6

113 unmodified lines

114
115
116
117
118
119
120
121
2 unmodified lines

124
125
126
127
128
129
130
131

113 unmodified lines

- empty
        - stdlib
        - charm.land/bubbletea/v2.Model
        - charm.land/bubbletea/v2.Msg
        - charm.land/huh/v2.Theme
        - grpc.DialOption
        - github.com/entireio/cli/cmd/entire/cli/summarize.Generator
        - github.com/entireio/cli/cmd/entire/cli/agent..+
2 unmodified lines

- github.com/entireio/cli/cmd/entire/cli/review/types.AgentReviewer
        - github.com/entireio/cli/cmd/entire/cli/review.SynthesisProvider
        - github.com/entireio/cli/cmd/entire/cli/checkpoint.CommittedReader
        - github.com/entireio/cli/cmd/entire/cli/checkpoint.CommittedStore
        - github.com/entireio/cli/cmd/entire/cli/checkpoint.TemporaryStore
        - github.com/entireio/cli/cmd/entire/cli/strategy.Strategy
        - github.com/entireio/cli/internal/entireclient/tokenstore.store
        - github.com/go-git/go-git/v6/x/plugin.Signer

M.golangci.yaml+4

69 unmodified lines

70
71
72
73
73
74
75
76

69 unmodified lines

return nil
}

func (m activityModel) fetchData() tea.Msg { //nolint:ireturn // bubbletea Cmd signature requires tea.Msg return
func (m activityModel) fetchData() tea.Msg {
    activity, commits, err := fetchActivityData(m.ctx, m.client)
    if err != nil {
        return activityErrMsg{err: err}
    }

Mcmd/entire/cli/activity_tui.go+1/-1

61 unmodified lines

62
63
64
65
65
66
67
68

61 unmodified lines

// openAttachStore opens the committed store for the resolved topology. refs is
// passed explicitly so attach preserves PrimaryAsRead() pinning.
func openAttachStore(ctx context.Context, repo *git.Repository, refs cpkg.CommittedRefs) (cpkg.CommittedStore, error) { //nolint:ireturn // committed store capability preserves attach's read-ref override
func openAttachStore(ctx context.Context, repo *git.Repository, refs cpkg.CommittedRefs) (cpkg.CommittedStore, error) {
    stores, err := cpkg.Open(ctx, repo, cpkg.OpenOptions{Refs: &refs})
    if err != nil {
        return nil, fmt.Errorf("open checkpoint store: %w", err)
    }

Mcmd/entire/cli/attach.go+1/-1

54 unmodified lines

55
56
57
58
59
60
61
62
58
59
60
61

54 unmodified lines

// Temporary returns the git-backed temporary shadow-branch store.
//
//nolint:ireturn // temporary store capability is the abstraction boundary
func (s *Stores) Temporary() TemporaryStore {
    return s.temporary
}
func (s *Stores) Temporary() TemporaryStore { return s.temporary }

// Refs returns the resolved committed-ref topology.
func (s *Stores) Refs() CommittedRefs { return s.refs }

Mcmd/entire/cli/checkpoint/open.go+1/-5

51 unmodified lines

52
53
54
55
56
55
56
57
4 unmodified lines

62
63
64
67
68
65
66
67

51 unmodified lines

// topology. Writes target refs.Primary; reads target refs.Read. The strategy's
// blob fetcher is wired in so reads can fetch blobs on demand after a treeless
// fetch.
//
//nolint:ireturn // committed store capability is the abstraction boundary
func (s *ManualCommitStrategy) getCheckpointStore(ctx context.Context, repo *git.Repository) (checkpoint.CommittedStore, error) {
    stores, err := s.getCheckpointStores(ctx, repo)
    if err != nil {

4 unmodified lines

// getTemporaryStore returns the git-backed shadow-branch store with the
// strategy's blob fetcher wired in.
//
//nolint:ireturn // temporary store capability is the abstraction boundary
func (s *ManualCommitStrategy) getTemporaryStore(ctx context.Context, repo *git.Repository) (checkpoint.TemporaryStore, error) {
    stores, err := s.getCheckpointStores(ctx, repo)
    if err != nil {

Mcmd/entire/cli/strategy/manual_commit.go-4

19 unmodified lines

20
21
22
23
24
23
24
25

19 unmodified lines

// Theme returns Entire's standard huh theme.
//
//nolint:ireturn // huh.Theme is an interface in v2
func Theme() huh.Theme {
    return huh.ThemeFunc(huh.ThemeDracula)
}

Mcmd/entire/cli/uiform/uiform.go-2