Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Use golangci-lint for linting #121

Merged
merged 1 commit into from
Oct 21, 2023
Merged

Conversation

abhinav
Copy link
Collaborator

@abhinav abhinav commented Oct 15, 2023

Instead of hand-managing and running linters, use golangci-lint.

Along with the golangci-lint defaults,
enable a couple other linters we generally agree with.
See also uber-go/zap#1323 for a similar change.

As a result of this, we can:

  • Drop the dependabot for tools
  • Run the lint job in parallel with build/test
  • Simplify the Makefile

@codecov
Copy link

codecov bot commented Oct 15, 2023

Codecov Report

Merging #121 (5a81b00) into master (5fbb57e) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #121   +/-   ##
=======================================
  Coverage   78.90%   78.90%           
=======================================
  Files           3        3           
  Lines         128      128           
=======================================
  Hits          101      101           
  Misses         23       23           
  Partials        4        4           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Instead of hand-managing and running linters, use golangci-lint.

Along with the golangci-lint defaults,
enable a couple other linters we generally agree with.
See also uber-go/zap#1323 for a similar change.

As a result of this, we can:

- Drop the dependabot for tools
- Run the lint job in parallel with build/test
- Simplify the Makefile
sywhang pushed a commit to uber-go/goleak that referenced this pull request Oct 21, 2023
Instead of hand-managing and running linters, use golangci-lint.
This simplifies the Makefile and allows lint to run in parallel
with the build/test job.

Along with the golangci-lint defaults,
enable a couple other linters we generally agree with.
See also uber-go/zap#1323 and uber-go/sally#121 for similar changes.
@sywhang sywhang merged commit 4fe6763 into uber-go:master Oct 21, 2023
6 checks passed
@abhinav abhinav deleted the golangci-lint branch October 22, 2023 03:02
@mway mway mentioned this pull request Oct 24, 2023
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