Skip to content

CI: Upgrade linter#726

Merged
Tabaie merged 12 commits intomasterfrom
config/golangci-lint/migrate
Aug 22, 2025
Merged

CI: Upgrade linter#726
Tabaie merged 12 commits intomasterfrom
config/golangci-lint/migrate

Conversation

@Tabaie
Copy link
Copy Markdown
Contributor

@Tabaie Tabaie commented Aug 21, 2025

Upgrade golangci-lint to v2.1.6.
Some changes were made to satisfy the now-stricter staticcheck linter.

WARNING: ST1008 has been ignored because the fix would involve an API change:

func (vector *Vector) AsyncReadFrom(r io.Reader) (int64, error, chan error)

to become

func (vector *Vector) AsyncReadFrom(r io.Reader) (int64, chan error, error)

@Tabaie Tabaie requested review from Copilot and gbotrel August 21, 2025 20:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR upgrades the golangci-lint tool from v1.60 to v2.1.6, requiring several code changes to satisfy the stricter linting rules introduced in the newer version.

  • Updated golangci-lint configuration and CI version
  • Fixed API function signature to satisfy ST1008 rule (error return order)
  • Applied various code style fixes for cleaner linting compliance

Reviewed Changes

Copilot reviewed 121 out of 121 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.golangci.yml Updated linter configuration to version 2 format
.github/workflows/pr.yml Upgraded golangci-lint action to v8 with v2.1.6
AsyncReadFrom functions Changed return signature from (int64, error, chan error) to (int64, chan error, error)
Marshal functions Simplified boolean expressions using De Morgan's laws
Multiple files Added nolint comments for specific QF rules and improved code style

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Copy Markdown
Collaborator

@gbotrel gbotrel left a comment

Choose a reason for hiding this comment

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

a part from the API change on vector method, all good with me 👍

@Tabaie Tabaie requested a review from gbotrel August 22, 2025 17:05
@Tabaie Tabaie merged commit 1a805ec into master Aug 22, 2025
7 checks passed
@Tabaie Tabaie deleted the config/golangci-lint/migrate branch August 22, 2025 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants