Skip to content

Fix linting issues and improve code quality - #233

Merged
thelovekesh merged 22 commits into
mainfrom
update/lint-config
May 25, 2026
Merged

Fix linting issues and improve code quality#233
thelovekesh merged 22 commits into
mainfrom
update/lint-config

Conversation

@thelovekesh

Copy link
Copy Markdown
Collaborator

This pull request introduces several improvements and refactorings to the CLI codebase, focusing on code quality, maintainability, and consistency.

The most significant changes include a major overhaul of the .golangci.yml linter configuration, introducing more linters and formatters for strict checks.

These changes collectively enhance code quality, enforce stricter linting, and make the codebase easier to maintain.

@github-actions

Copy link
Copy Markdown

📦 wpm cli builds 📦

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a comprehensive refactoring of the Go CLI tool, including an updated .golangci.yml with stricter linting rules, import reorganization, and modularization of key commands like init, install, publish, and why. The review feedback highlights several critical improvements: resolving a Windows-specific file cleanup issue in publish.go by closing the temporary file before removal, addressing orphaned directories and incorrect NoOp actions in plan.go when a package type changes, and fixing a logical flaw in sanitizeStringList where truncation occurs before filtering.

Comment thread cli/command/publish/publish.go
Comment thread pkg/pm/installer/plan.go
Comment thread pkg/pm/installer/plan.go
Comment thread cli/command/init/init.go
@thelovekesh
thelovekesh merged commit 6f2760c into main May 25, 2026
17 checks passed
@thelovekesh
thelovekesh deleted the update/lint-config branch May 25, 2026 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant