Skip to content

build(backend): bump golangci-lint to v2.14.0 - #9210

Merged
klesh merged 1 commit into
apache:mainfrom
DoDiODev:pr/wave17-golangci-lint
Oct 14, 2026
Merged

klesh merged 1 commit into
apache:mainfrom
DoDiODev:pr/wave17-golangci-lint

Conversation

@DoDiODev

Copy link
Copy Markdown
Contributor

Summary

Bump golangci-lint from v2.12.2 to v2.14.0 and adjust the configuration to the newer staticcheck (v0.8.1) it ships.

Changes

Where Change
backend/Makefile (go-dep), .github/workflows/golangci-lint.yml v2.12.2 → v2.14.0
backend/.golangci.yaml kiro exclusion: staticcheck v0.8.1 reports SA1019 for github.com/aws/aws-sdk-go/... without quotes, so the rule from #9197 now matches both forms
backend/.golangci.yaml new exclusion for SA1019: …RawDataSubTaskArgs).Params is deprecated (see below)
plugins/github/tasks/cicd_job_convertor_test.go assign the unused fmt.Sprintf result in a benchmark helper
plugins/jira/e2e/issue_repo_commit_test.go keyed CommitUrlPattern literals

Why exclude RawDataSubTaskArgs.Params

staticcheck v0.8.1 newly reports 201 uses of the deprecated RawDataSubTaskArgs.Params field across about 40 plugins. The field is JSON-encoded into _raw_data_params of every raw table and used to find existing raw data. Switching a plugin to Options changes that value, so existing raw data would no longer be matched until it is collected again. That is a per-plugin decision, not something to do mechanically in a linter bump.

The new rule only matches this one message, so other SA1019 findings are still reported. It can be removed once the plugins have moved to Options.

Verification

Check Result
golangci-lint config verify (v2.14.0) ✅
golangci-lint v2.14.0 on backend/, without issue limits ✅ 0 issues (201 before the config change)
golangci-lint v2.12.2 with the new config ✅ 0 issues
go vet and test compilation of the two changed test packages ✅
Full CI mirror on my fork, with golangci-lint v2.14.0, unit tests and e2e on MySQL and PostgreSQL (run) ✅

- golangci-lint v2.12.2 -> v2.14.0 in backend/Makefile and the
  golangci-lint workflow
- staticcheck v0.8.1 reports the aws-sdk-go v1 SA1019 message without
  quotes; let the kiro exclusion match both forms
- staticcheck v0.8.1 newly reports 201 uses of the deprecated
  RawDataSubTaskArgs.Params across ~40 plugins. Exclude that single
  message centrally: switching to Options changes the stored
  _raw_data_params and needs a per-plugin data migration
- fix two go vet findings in tests (unused fmt.Sprintf result, unkeyed
  CommitUrlPattern literals)

Signed-off-by: DoDiODev <DoDiDev@proton.me>

@klesh klesh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM
Thanks for your contribution.

@klesh
klesh merged commit 9faa220 into apache:main Oct 14, 2026
10 checks passed
@DoDiODev
DoDiODev deleted the pr/wave17-golangci-lint branch October 14, 2026 10:31
DoDiODev added a commit to DoDiODev/devlake that referenced this pull request Oct 14, 2026
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.

2 participants