ワンクリックで
lint-check
// Run pre-commit hooks and golangci-lint to verify code quality before finishing work
// Run pre-commit hooks and golangci-lint to verify code quality before finishing work
| name | lint-check |
| description | Run pre-commit hooks and golangci-lint to verify code quality before finishing work |
Run all quality checks (pre-commit hooks and golangci-lint) before considering work complete. Use this skill when finishing a task, before committing, or when preparing a PR.
First, check what files have been modified:
git status --short
If there are no modified files, inform the user and exit.
Run pre-commit on all modified files:
pre-commit run --files <list-of-modified-files>
Important: If pre-commit modifies files (like prettier formatting), stage those changes:
git add <files-modified-by-pre-commit>
Then re-run pre-commit to verify all checks pass.
If any Go files were modified, run the full lint suite:
make lint
This runs both pre-commit hooks and golangci-lint with the project's configuration.
If all checks pass:
Present a success message:
✅ All quality checks passed!
Pre-commit: Passed
golangci-lint: 0 issues
Your changes are ready to commit.
If checks fail:
After successful checks, suggest appropriate next steps:
.copyright-header.tmplIf lint output is too large (>30KB), read the full output file and summarize:
If changes are in tools/ directory, also run:
cd tools && make lint
If only documentation files (*.md) were changed:
User says: "I'm done with this feature"
Record a lesson learned after a user correction, or review existing lessons at session start
Start a new feature development session with branch setup and requirements gathering
Fix all CVEs in the Okteto CLI Docker image by scanning with Trivy and updating vulnerable dependencies and binaries