Skip to content

build: include golangci-lint as project tool#502

Open
zimeg wants to merge 2 commits intomainfrom
zimeg-build-lint-tool
Open

build: include golangci-lint as project tool#502
zimeg wants to merge 2 commits intomainfrom
zimeg-build-lint-tool

Conversation

@zimeg
Copy link
Copy Markdown
Member

@zimeg zimeg commented Apr 17, 2026

Changelog

N/A - development updates!

Summary

This PR adds the golangci-lint tool to the project tools for confidence in versioning in CI and onboarding to the project 📠

Preview

- golangci-lint run
+ go tool golangci-lint run
0 issues.

Testing

Reviewers might uninstall golangci-lint and checkout this branch before build:

$ go mod tidy
$ make build

Notes

Requirements

@zimeg zimeg added this to the Next Release milestone Apr 17, 2026
@zimeg zimeg self-assigned this Apr 17, 2026
@zimeg zimeg requested a review from a team as a code owner April 17, 2026 18:53
@zimeg zimeg added code health M-T: Test improvements and anything that improves code health semver:patch Use on pull requests to describe the release version increment build M-T: Changes to compilation and CI processes labels Apr 17, 2026
Copy link
Copy Markdown
Member Author

@zimeg zimeg left a comment

Choose a reason for hiding this comment

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

🛠️ A comment for the kind readers!

Comment thread go.mod
gopkg.in/yaml.v3 v3.0.1 // indirect
)

tool github.com/golangci/golangci-lint/v2/cmd/golangci-lint
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

🧰 note: The dependencies added above are numerous but indirect toward this package and won't add to our bundle size!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A small price to pay for a pinned golangci-lint 🙇🏻

I'm curious what snyk will think of all the new indirect dependencies. 😛

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.18%. Comparing base (eecf995) to head (cf65194).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #502      +/-   ##
==========================================
- Coverage   71.22%   71.18%   -0.04%     
==========================================
  Files         222      222              
  Lines       18684    18684              
==========================================
- Hits        13308    13301       -7     
- Misses       4198     4200       +2     
- Partials     1178     1183       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Member

@mwbrooks mwbrooks left a comment

Choose a reason for hiding this comment

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

✅ Woo-wee! This is a great change. Thank you @zimeg 🙇🏻

🧪 Locally, I'm able to tidy and build successfully.

Comment thread go.mod
gopkg.in/yaml.v3 v3.0.1 // indirect
)

tool github.com/golangci/golangci-lint/v2/cmd/golangci-lint
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A small price to pay for a pinned golangci-lint 🙇🏻

I'm curious what snyk will think of all the new indirect dependencies. 😛

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build M-T: Changes to compilation and CI processes code health M-T: Test improvements and anything that improves code health semver:patch Use on pull requests to describe the release version increment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants