Skip to content

fix(lint): extract pathActionMove constant to fix goconst warning#117

Merged
CalvinAllen merged 2 commits intomainfrom
fix/114-goconst-lint-warning
Dec 12, 2025
Merged

fix(lint): extract pathActionMove constant to fix goconst warning#117
CalvinAllen merged 2 commits intomainfrom
fix/114-goconst-lint-warning

Conversation

@CalvinAllen
Copy link
Contributor

Summary

  • Extracts the repeated string "move" to a constant pathActionMove in path_windows.go
  • Fixes goconst lint warning that only appears when linting on Windows (the file has a //go:build windows tag)

Test plan

  • Verified lint passes locally with npm run check
  • All tests pass

Fixes #114

The string "move" appeared 3 times in path_windows.go, which triggered
the goconst linter. Extract to a constant for consistency.

Fixes #114
Run golangci-lint with GOOS set to linux, darwin, and windows to catch
platform-specific lint issues in files with build tags (e.g., goconst
warning in path_windows.go that was only visible on Windows).
@CalvinAllen CalvinAllen merged commit 542c5a2 into main Dec 12, 2025
12 checks passed
@CalvinAllen CalvinAllen deleted the fix/114-goconst-lint-warning branch December 12, 2025 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Fix goconst lint warning in path_windows.go

1 participant