Summary
Custom lint scan found 35 process-environment coupling findings from make golint-custom.
These findings are all variants of reading process environment directly from library code (os.Getenv / os.LookupEnv) instead of accepting configuration explicitly.
Affected paths
pkg/workflow/process_env_lookup.go
pkg/cli/add_interactive_orchestrator.go
pkg/cli/add_interactive_workflow.go
pkg/cli/add_wizard_command.go
pkg/cli/ci.go
pkg/cli/codespace.go
pkg/cli/compile_orchestrator.go
pkg/cli/compile_update_check.go
pkg/cli/engine_secrets.go
pkg/cli/import_url_fetcher.go
pkg/cli/init.go
pkg/cli/interactive.go
pkg/cli/logs_command.go
pkg/cli/mcp_repository.go
pkg/cli/mcp_server_command.go
pkg/cli/mcp_tools_privileged.go
pkg/cli/mcp_validation.go
pkg/cli/secret_set_command.go
pkg/cli/secrets.go
pkg/cli/shell_completion.go
pkg/cli/update_check.go
Representative diagnostics
pkg/workflow/process_env_lookup.go:8: os.LookupEnv couples the library to the process environment
pkg/cli/add_interactive_orchestrator.go:72: os.Getenv couples the library to the process environment
pkg/cli/logs_command.go:455: os.Getenv couples the library to the process environment
Expected outcome
Replace direct environment reads in library code with explicit configuration plumbing or well-contained entrypoint adapters, without broad redesign.
Remediation checklist
Suggested slices
Fused guidance: keep remediation scoped to the assigned lint group, prefer minimal targeted edits, and validate with make golint-custom.
Generated by 🧌 LintMonster · 39.2 AIC · ⌖ 6.94 AIC · ⊞ 4.4K · ◷
Summary
Custom lint scan found 35 process-environment coupling findings from
make golint-custom.These findings are all variants of reading process environment directly from library code (
os.Getenv/os.LookupEnv) instead of accepting configuration explicitly.Affected paths
pkg/workflow/process_env_lookup.gopkg/cli/add_interactive_orchestrator.gopkg/cli/add_interactive_workflow.gopkg/cli/add_wizard_command.gopkg/cli/ci.gopkg/cli/codespace.gopkg/cli/compile_orchestrator.gopkg/cli/compile_update_check.gopkg/cli/engine_secrets.gopkg/cli/import_url_fetcher.gopkg/cli/init.gopkg/cli/interactive.gopkg/cli/logs_command.gopkg/cli/mcp_repository.gopkg/cli/mcp_server_command.gopkg/cli/mcp_tools_privileged.gopkg/cli/mcp_validation.gopkg/cli/secret_set_command.gopkg/cli/secrets.gopkg/cli/shell_completion.gopkg/cli/update_check.goRepresentative diagnostics
pkg/workflow/process_env_lookup.go:8:os.LookupEnvcouples the library to the process environmentpkg/cli/add_interactive_orchestrator.go:72:os.Getenvcouples the library to the process environmentpkg/cli/logs_command.go:455:os.Getenvcouples the library to the process environmentExpected outcome
Replace direct environment reads in library code with explicit configuration plumbing or well-contained entrypoint adapters, without broad redesign.
Remediation checklist
make golint-custom.Suggested slices
logs_command.go,update_check.go,ci.go)process_env_lookup.go