Run Linter
Steps
- •Run
golangci-lint run ./...(or on$ARGUMENTSif a specific path is given) - •If
--fixis passed as argument, run with--fixflag - •For each issue found:
- •Read the file and understand the context
- •Apply the fix using Edit tool
- •Explain what was changed and why
- •Re-run the linter to verify all issues are resolved
Rules
- •Follow existing code style in the project
- •Do not add unnecessary comments or docstrings
- •Do not refactor surrounding code - only fix linter issues