chore: migrate .golangci.yml to golangci-lint v2 config format#269
Open
prdai wants to merge 3 commits intouber-go:masterfrom
Open
chore: migrate .golangci.yml to golangci-lint v2 config format#269prdai wants to merge 3 commits intouber-go:masterfrom
prdai wants to merge 3 commits intouber-go:masterfrom
Conversation
the previous commit just random golangci-lint migrate which does not properly migrate things over
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Migrates
.golangci.ymlto the golangci-lint v2 configuration schema so contributors using current golangci-lint versions can run linting without first having to rungolangci-lint migratelocally.Closes #268.
Changes
version: "2".goimportsfromlinters.enabletoformatters.enable(formatters now live in their own section in v2).golint, which has been deprecated and removed in newer golangci-lint versions.issues.exclude-use-default: false, since not applying default exclusion presets is the v2 default.run.timeout,run.modules-download-mode, the remaining linters (errcheck,govet,staticcheck), andissues.max-issues-per-linter/max-same-issues.