Hard-coded File Paths
Summary: 16 custom linter findings for hard-coded file path strings that should use defined constants.
Affected Files & Constants:
pkg/cli/add_package_manifest.go (13 instances):
- Line 33: ".github/workflows" → constants.WorkflowsDir
- Lines 499,504,505,513,518,519,623,645: ".github/" → constants.GithubDir
- Lines 758,761,765: ".github/workflows/" → constants.WorkflowsDirSlash
pkg/workflow/opencode_engine.go:163 - "/tmp/gh-aw/aw-prompts/prompt.txt" → constants.AwPromptsFile
pkg/cli/audit.go:1104 - ".github/" → constants.GithubDir
pkg/cli/audit_comparison.go:516 - ".github/" → constants.GithubDir
pkg/cli/experiments_command.go:366 - ".github/workflows/" → constants.WorkflowsDirSlash
pkg/cli/fetch.go:125 - ".github/workflows/" → constants.WorkflowsDirSlash
pkg/cli/firewall_policy.go:466 - "/tmp/gh-aw/sandbox/firewall/audit" → constants.AWFAuditDir
Expected Outcome: All hard-coded paths replaced with constants, consistent path handling.
Remediation Checklist:
Generated by 🧌 LintMonster · 14.1 AIC · ⌖ 8.84 AIC · ⊞ 4.7K · ◷
Hard-coded File Paths
Summary: 16 custom linter findings for hard-coded file path strings that should use defined constants.
Affected Files & Constants:
pkg/cli/add_package_manifest.go(13 instances):pkg/workflow/opencode_engine.go:163- "/tmp/gh-aw/aw-prompts/prompt.txt" → constants.AwPromptsFilepkg/cli/audit.go:1104- ".github/" → constants.GithubDirpkg/cli/audit_comparison.go:516- ".github/" → constants.GithubDirpkg/cli/experiments_command.go:366- ".github/workflows/" → constants.WorkflowsDirSlashpkg/cli/fetch.go:125- ".github/workflows/" → constants.WorkflowsDirSlashpkg/cli/firewall_policy.go:466- "/tmp/gh-aw/sandbox/firewall/audit" → constants.AWFAuditDirExpected Outcome: All hard-coded paths replaced with constants, consistent path handling.
Remediation Checklist:
make golint-custom