lint: Set a linter conf and fix errors
Metadata
Current evaluation
Merged following reviewer approval and successful CI checks. Integrated golangci-lint configuration and resolved linting errors across 117 files, establishing automated static analysis for the codebase.
Suggested action: —
No scores available.
Issue body
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
-----
Add a golangci-lint conf and fix all low hanging fruits.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged following reviewer approval and successful CI checks. Integrated golangci-lint configuration and resolved linting errors across 117 files, establishing automated static analysis for the codebase. |
Update history
| Date | Change |
|---|---|
| created |
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #3672 linters: address issues and enable pylint in ci | snapcraft | merged | Merged after approval and CI pass. The PR addressed linter issues and enabled pylint in CI across 8 files. Changes increased test coverage by 0.02% with 100% diff coverage, successfully integrating static analysis into the pipeline. | |
| #77 lint: fix linting issues with up-to-date linters | craft-store | merged | Merged a maintainer-submitted pull request resolving linting errors from updated linter versions. Approved by one reviewer, passed CI, and modified 11 files (+40/-24 lines). | |
| #567 ci: fix linter issues | craft-parts | merged | Merged fix for CI linter issues across four files (+14/-6 lines). Approved by one reviewer and passed all CI checks before integration. | |
| #5 style(lint): fix linting issues | starflow | merged | Merged after approval. Resolved linting issues by modifying one file with three additions and three deletions. No unresolved comments or CI checks were present. | |
| #364 lint: strictly set the linter versions for the v1.15 branch | craft-parts | merged | Merged after approval and passing CI checks. The change strictly sets linter versions for the v1.15 branch, modifying two files to enforce consistent linting standards across the codebase. | |
| #495 Linters: enable gocyclo, errcheck and gosec | fetch-service | open | Enable gocyclo, errcheck, and gosec linters in golangci-lint config and fix resulting errors. Triaged but inactive for ~9 months. | |
| #10 lint: freeze linters and update config | craft-grammar | merged | Merged after single reviewer approval and passing CI. Freezes linter versions and updates configuration across two files, reducing 71 lines to ensure consistent code analysis. | |
| #142 lint: fix linting issues with newer linters | craft-cli | merged | Merged after reviewer approval and passing CI checks. Resolves linting failures caused by updated linter versions across five files. Ubuntu 18.04 GitHub Actions test failures were addressed separately in pull request #144. | |
| #18 lint: update linters | craft-archives | merged | Merged maintainer lengau's pull request updating project linters. The change modified two files with a net reduction of six lines. Approved by one reviewer with no unresolved comments, the update was successfully integrated. | |
| #98 ci: lint docs in all directories | starbase | merged | Merged into main. Configured CI to run sphinx-lint on all rst files across the repository. Approved by reviewer, passed all checks, and merged with zero coverage impact. |