Summary
The latest make golint-custom run reports 24 non-function-length findings that can be addressed with targeted code cleanups.
Root-cause groups in scope:
1. Hard-coded path constants
pkg/cli/copilot_agents.go:87: hard-coded file path .github/skills/agentic-workflows directory
pkg/cli/copilot_agents.go:147: hard-coded file path .github/agents directory
2. Environment/config coupling
pkg/cli/bootstrap_profile_github_app.go (multiple sites): os.Getenv couples the library to the process environment
pkg/cli/bootstrap_profile_helpers.go (multiple sites): same root cause
3. Small API / correctness cleanups
pkg/workflow/github_cli.go:107: nil context.Context passed
pkg/workflow/safe_outputs_tools_generation.go:314: map[string]bool used as a set
pkg/workflow/workflow_builder.go:505: map[string]bool used as a set
pkg/cli/bootstrap_profile_manifest.go:266,268: redundant .Error()
pkg/workflow/llm_provider.go:35: use s == "" instead of len(s) == 0
pkg/cli/mcp_inspect_inspector.go:183,227: replace time.Sleep with select on ctx.Done()
Representative diagnostics:
pkg/workflow/github_cli.go:107:24: nil passed as context.Context; use context.Background() or context.TODO() instead
pkg/cli/bootstrap_profile_github_app.go:42:32: os.Getenv couples the library to the process environment; pass configuration explicitly instead
pkg/workflow/safe_outputs_tools_generation.go:314:3: map[string]bool "supported" used as a set; use map[string]struct{} to avoid allocating a bool per entry
Expected outcome
Resolve the non-function-length custom-lint findings with minimal, targeted edits while preserving behavior.
Remediation checklist
Skill-fused guidance for the assignee
- Validate fixes by running
make golint-custom
- Keep remediation scoped to the assigned lint group
- Prefer minimal, targeted code edits
- When splitting logic, favor small focused helpers over broad rewrites
Generated by 🧌 LintMonster · gpt54 26.3 AIC · ⌖ 7.47 AIC · ⊞ 4.5K · ◷
Summary
The latest
make golint-customrun reports 24 non-function-length findings that can be addressed with targeted code cleanups.Root-cause groups in scope:
1. Hard-coded path constants
pkg/cli/copilot_agents.go:87: hard-coded file path.github/skills/agentic-workflows directorypkg/cli/copilot_agents.go:147: hard-coded file path.github/agents directory2. Environment/config coupling
pkg/cli/bootstrap_profile_github_app.go(multiple sites):os.Getenvcouples the library to the process environmentpkg/cli/bootstrap_profile_helpers.go(multiple sites): same root cause3. Small API / correctness cleanups
pkg/workflow/github_cli.go:107: nilcontext.Contextpassedpkg/workflow/safe_outputs_tools_generation.go:314:map[string]boolused as a setpkg/workflow/workflow_builder.go:505:map[string]boolused as a setpkg/cli/bootstrap_profile_manifest.go:266,268: redundant.Error()pkg/workflow/llm_provider.go:35: uses == ""instead oflen(s) == 0pkg/cli/mcp_inspect_inspector.go:183,227: replacetime.Sleepwithselectonctx.Done()Representative diagnostics:
pkg/workflow/github_cli.go:107:24: nil passed as context.Context; use context.Background() or context.TODO() insteadpkg/cli/bootstrap_profile_github_app.go:42:32: os.Getenv couples the library to the process environment; pass configuration explicitly insteadpkg/workflow/safe_outputs_tools_generation.go:314:3: map[string]bool "supported" used as a set; use map[string]struct{} to avoid allocating a bool per entryExpected outcome
Resolve the non-function-length custom-lint findings with minimal, targeted edits while preserving behavior.
Remediation checklist
make golint-customSkill-fused guidance for the assignee
make golint-custom