-
Notifications
You must be signed in to change notification settings - Fork 7
Upgrade to golangci-lint v2 #1689
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,48 @@ | ||
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt | ||
|
||
version: "2" | ||
linters: | ||
enable: | ||
- errcheck | ||
- gci | ||
- goconst | ||
- gofmt | ||
- gosec | ||
- govet | ||
- ineffassign | ||
- lll | ||
- gosimple | ||
- staticcheck | ||
- misspell | ||
- nakedret | ||
- revive | ||
- unconvert | ||
- unused | ||
enable-all: false | ||
issues: | ||
exclude-dirs: | ||
- pkg/vendored | ||
exclude-files: | ||
- schema.go | ||
- pulumiManifest.go | ||
run: | ||
timeout: 20m | ||
linters-settings: | ||
gci: | ||
sections: | ||
- standard # Standard section: captures all standard library packages. | ||
- blank # Blank section: contains all blank imports. | ||
- default # Default section: contains all imports that could not be matched to another section type. | ||
- prefix(github.com/pulumi/) # Custom section: groups all imports with the github.com/pulumi/ prefix. | ||
- prefix(github.com/#{{ .Config.Organization }}#/pulumi-#{{ .Config.Provider }}#) # Custom section: local imports | ||
custom-order: true | ||
- goconst | ||
- gosec | ||
- lll | ||
- misspell | ||
- nakedret | ||
- revive | ||
- unconvert | ||
exclusions: | ||
generated: lax | ||
presets: | ||
- comments | ||
- common-false-positives | ||
- legacy | ||
- std-error-handling | ||
paths: | ||
- schema.go | ||
- pulumiManifest.go | ||
- pkg/vendored | ||
- third_party$ | ||
- builtin$ | ||
- examples$ | ||
formatters: | ||
enable: | ||
- gci | ||
- gofmt | ||
settings: | ||
gci: | ||
sections: | ||
- standard | ||
- blank | ||
- default | ||
- prefix(github.com/pulumi/) | ||
- prefix(github.com/#{{ .Config.Organization }}#/pulumi-#{{ .Config.Provider }}#) | ||
custom-order: true | ||
exclusions: | ||
generated: lax | ||
paths: | ||
- schema.go | ||
- pulumiManifest.go | ||
- pkg/vendored | ||
- third_party$ | ||
- builtin$ | ||
- examples$ |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ dotnet = '#{{ trimSuffix ".x" .Config.ToolVersions.Dotnet }}#' | |
java = 'corretto-#{{trimSuffix ".x" .Config.ToolVersions.Java }}#' | ||
|
||
# Executable tools | ||
golangci-lint = 'v2.4.0' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be read from toolVersions in ci-mgmt.yaml like the rest of these tools. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @blampe it didn't before my change. If needed, I would like to implement that in a separate PR. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right, that's the bug to fix. We should just fix it directly, no need to break builds in the interim. |
||
pulumi = 'latest' | ||
"go:github.com/pulumi/pulumictl/cmd/pulumictl" = 'latest' | ||
gradle = '#{{ trimSuffix ".x" .Config.ToolVersions.Gradle }}#' | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,48 @@ | ||
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt | ||
|
||
version: "2" | ||
linters: | ||
enable: | ||
- errcheck | ||
- gci | ||
- goconst | ||
- gofmt | ||
- gosec | ||
- govet | ||
- ineffassign | ||
- lll | ||
- gosimple | ||
- staticcheck | ||
- misspell | ||
- nakedret | ||
- revive | ||
- unconvert | ||
- unused | ||
enable-all: false | ||
issues: | ||
exclude-dirs: | ||
- pkg/vendored | ||
exclude-files: | ||
- schema.go | ||
- pulumiManifest.go | ||
run: | ||
timeout: 20m | ||
linters-settings: | ||
gci: | ||
sections: | ||
- standard # Standard section: captures all standard library packages. | ||
- blank # Blank section: contains all blank imports. | ||
- default # Default section: contains all imports that could not be matched to another section type. | ||
- prefix(github.com/pulumi/) # Custom section: groups all imports with the github.com/pulumi/ prefix. | ||
- prefix(github.com/pulumiverse/pulumi-acme) # Custom section: local imports | ||
custom-order: true | ||
- goconst | ||
- gosec | ||
- lll | ||
- misspell | ||
- nakedret | ||
- revive | ||
- unconvert | ||
exclusions: | ||
generated: lax | ||
presets: | ||
- comments | ||
- common-false-positives | ||
- legacy | ||
- std-error-handling | ||
paths: | ||
- schema.go | ||
- pulumiManifest.go | ||
- pkg/vendored | ||
- third_party$ | ||
- builtin$ | ||
- examples$ | ||
formatters: | ||
enable: | ||
- gci | ||
- gofmt | ||
settings: | ||
gci: | ||
sections: | ||
- standard | ||
- blank | ||
- default | ||
- prefix(github.com/pulumi/) | ||
- prefix(github.com/pulumiverse/pulumi-acme) | ||
custom-order: true | ||
exclusions: | ||
generated: lax | ||
paths: | ||
- schema.go | ||
- pulumiManifest.go | ||
- pkg/vendored | ||
- third_party$ | ||
- builtin$ | ||
- examples$ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,48 @@ | ||
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt | ||
|
||
version: "2" | ||
linters: | ||
enable: | ||
- errcheck | ||
- gci | ||
- goconst | ||
- gofmt | ||
- gosec | ||
- govet | ||
- ineffassign | ||
- lll | ||
- gosimple | ||
- staticcheck | ||
- misspell | ||
- nakedret | ||
- revive | ||
- unconvert | ||
- unused | ||
enable-all: false | ||
issues: | ||
exclude-dirs: | ||
- pkg/vendored | ||
exclude-files: | ||
- schema.go | ||
- pulumiManifest.go | ||
run: | ||
timeout: 20m | ||
linters-settings: | ||
gci: | ||
sections: | ||
- standard # Standard section: captures all standard library packages. | ||
- blank # Blank section: contains all blank imports. | ||
- default # Default section: contains all imports that could not be matched to another section type. | ||
- prefix(github.com/pulumi/) # Custom section: groups all imports with the github.com/pulumi/ prefix. | ||
- prefix(github.com/pulumi/pulumi-aws) # Custom section: local imports | ||
custom-order: true | ||
- goconst | ||
- gosec | ||
- lll | ||
- misspell | ||
- nakedret | ||
- revive | ||
- unconvert | ||
exclusions: | ||
generated: lax | ||
presets: | ||
- comments | ||
- common-false-positives | ||
- legacy | ||
- std-error-handling | ||
paths: | ||
- schema.go | ||
- pulumiManifest.go | ||
- pkg/vendored | ||
- third_party$ | ||
- builtin$ | ||
- examples$ | ||
formatters: | ||
enable: | ||
- gci | ||
- gofmt | ||
settings: | ||
gci: | ||
sections: | ||
- standard | ||
- blank | ||
- default | ||
- prefix(github.com/pulumi/) | ||
- prefix(github.com/pulumi/pulumi-aws) | ||
custom-order: true | ||
exclusions: | ||
generated: lax | ||
paths: | ||
- schema.go | ||
- pulumiManifest.go | ||
- pkg/vendored | ||
- third_party$ | ||
- builtin$ | ||
- examples$ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep formatting changes separate. It's too hard to tell what's actually changing vs. what's just reformatted.