Skip to content

Commit 997be1b

Browse files
style: apply gofumpt formatting to struct fields
Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
1 parent 66ea034 commit 997be1b

3 files changed

Lines changed: 14 additions & 15 deletions

File tree

cmd/trace/cli/checkpoint/checkpoint.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -604,17 +604,17 @@ type CodeLearning struct {
604604
// - AgentPercentage represents "of the lines changed in this commit, what percentage came from the agent"
605605
// - AgentRemoved tracks committed deletions performed by the agent
606606
type InitialAttribution struct {
607-
CalculatedAt time.Time `json:"calculated_at"`
608-
AgentLines int `json:"agent_lines"` // Lines added by agent that remain in the commit
609-
AgentRemoved int `json:"agent_removed"` // Lines removed by agent that remain removed in the commit
610-
HumanAdded int `json:"human_added"` // Lines added by human (excluding modifications)
611-
HumanModified int `json:"human_modified"` // Lines modified by human (estimate: min(added, removed))
612-
HumanRemoved int `json:"human_removed"` // Lines removed by human (excluding modifications)
613-
TotalCommitted int `json:"total_committed"` // Net additions in commit (legacy additions-focused metric)
614-
TotalLinesChanged int `json:"total_lines_changed"` // Total committed line changes (adds + modifies + removes)
615-
AgentPercentage float64 `json:"agent_percentage"` // (agent_lines + agent_removed) / total_lines_changed * 100
616-
MetricVersion int `json:"metric_version,omitempty"` // 0/absent = legacy (additions-only %), 2 = changed-lines %
617-
BinaryFilesChanged int `json:"binary_files_changed"` // Number of binary files modified
607+
CalculatedAt time.Time `json:"calculated_at"`
608+
AgentLines int `json:"agent_lines"` // Lines added by agent that remain in the commit
609+
AgentRemoved int `json:"agent_removed"` // Lines removed by agent that remain removed in the commit
610+
HumanAdded int `json:"human_added"` // Lines added by human (excluding modifications)
611+
HumanModified int `json:"human_modified"` // Lines modified by human (estimate: min(added, removed))
612+
HumanRemoved int `json:"human_removed"` // Lines removed by human (excluding modifications)
613+
TotalCommitted int `json:"total_committed"` // Net additions in commit (legacy additions-focused metric)
614+
TotalLinesChanged int `json:"total_lines_changed"` // Total committed line changes (adds + modifies + removes)
615+
AgentPercentage float64 `json:"agent_percentage"` // (agent_lines + agent_removed) / total_lines_changed * 100
616+
MetricVersion int `json:"metric_version,omitempty"` // 0/absent = legacy (additions-only %), 2 = changed-lines %
617+
BinaryFilesChanged int `json:"binary_files_changed"` // Number of binary files modified
618618
}
619619

620620
// Info provides summary information for listing checkpoints.

cmd/trace/cli/investigate/cmd.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ func validateFlags(args []string, f runFlags) error {
188188
// newFixSubcommand wires `trace investigate fix [run-id]` to RunFix.
189189
func newFixSubcommand(deps Deps) *cobra.Command {
190190
var agentName string
191-
191+
192192
cmd := &cobra.Command{
193193
Use: "fix [run-id]",
194194
Short: "Launch a coding agent with a saved investigation as grounded context",
@@ -236,9 +236,9 @@ func newFixSubcommand(deps Deps) *cobra.Command {
236236
return err
237237
},
238238
}
239-
239+
240240
cmd.Flags().StringVar(&agentName, "agent", "", "Agent to use for fix (default: claude-code)")
241-
241+
242242
return cmd
243243
}
244244

cmd/trace/cli/investigate/fix.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import (
1212

1313
// defaultFixAgent is the agent registry name used when FixDeps.FixAgent is
1414
// empty.
15-
//
1615
const defaultFixAgent = "claude-code"
1716

1817
// FixDeps collects what RunFix needs that's injectable for tests.

0 commit comments

Comments
 (0)