Skip to content

Update golanci-lint version and fix linting issues - #178

Merged
gab-arrobo merged 1 commit into
omec-project:mainfrom
gab-arrobo:update-golangci-lint
Aug 30, 2026
Merged

Update golanci-lint version and fix linting issues#178
gab-arrobo merged 1 commit into
omec-project:mainfrom
gab-arrobo:update-golangci-lint

Conversation

@gab-arrobo

Copy link
Copy Markdown
Contributor

No description provided.

@gab-arrobo
gab-arrobo requested review from a team and a lite review from Copilot August 29, 2026 19:58
Signed-off-by: Arrobo, Gabriel <gabriel.arrobo@intel.com>

Copilot AI 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.

Pull request overview

Updates the repository’s linting toolchain to a newer golangci-lint release and adjusts code/config to satisfy updated lint rules, keeping local (pre-commit) and CI linting aligned.

Changes:

  • Bump golangci-lint to v2.12.2 in both pre-commit and CI workflow configuration.
  • Update .golangci.yml linter enablement to match the newer golangci-lint setup (including gomodguard_v2 and additional linters).
  • Fix Go test lint findings by deduplicating repeated string literals via test constants.

Reviewed changes

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

File Description
nrfcache/nrfcache_test.go Replaces repeated literals with shared test constants to address linting (e.g., goconst) findings.
.pre-commit-config.yaml Updates golangci-lint rev and ensures YAML formatting hook is present/ordered.
.golangci.yml Aligns enabled linters/settings with the updated golangci-lint configuration and rules.
.github/workflows/main.yml Bumps CI lint workflow input to use golangci-lint v2.12.2.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@gab-arrobo
gab-arrobo merged commit 2edd7c7 into omec-project:main Aug 30, 2026
9 checks passed
@gab-arrobo
gab-arrobo deleted the update-golangci-lint branch August 30, 2026 01:51
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