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

Replaces staticcheck with golangci-lint #24

Merged
merged 2 commits into from
Jul 2, 2024
Merged

Conversation

azdagron
Copy link
Contributor

@azdagron azdagron commented Jul 2, 2024

Borrowed the config from storj/ci and only made one edit to disable linting comments on exported functions due to the volume of violations. This lint can be enabled later when someone has the time to address them.

@azdagron azdagron merged commit b3d1b26 into main Jul 2, 2024
2 checks passed
@azdagron azdagron deleted the azdagron/add-golangci-lint branch July 2, 2024 14:41
#TODO#- whitespace # checks for leading/trailing newlines
disable:
- nolintlint # checks that nolint directives are correct
- staticcheck # we already use staticcheck separately
Copy link
Member

Choose a reason for hiding this comment

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

Oh, forgot, please add this into the enable section.

We run staticcheck separately in other repos, because the golangci-lint sometimes lags behind with the version.

Also, staticcheck is the most useful part of the checks.

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