-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove bundle injection, make golangci-lint config consistent
Signed-off-by: Joe Lanford <[email protected]>
- Loading branch information
1 parent
838dd0a
commit 001bb62
Showing
17 changed files
with
325 additions
and
209 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT | ||
|
||
go 1.20 | ||
go 1.21 | ||
|
||
require github.com/golangci/golangci-lint v1.55.2 // cmd/golangci-lint | ||
toolchain go1.22.2 | ||
|
||
require github.com/golangci/golangci-lint v1.57.2 // cmd/golangci-lint |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,77 @@ | ||
######## | ||
# NOTE | ||
# | ||
# This file is duplicated in the following repos: | ||
# - operator-framework/kubectl-operator | ||
# - operator-framework/catalogd | ||
# - operator-framework/operator-controller | ||
# - operator-framework/rukpak | ||
# | ||
# If you are making a change, please make it in ALL | ||
# of the above repositories! | ||
# | ||
# TODO: Find a way to have a shared golangci config. | ||
######## | ||
|
||
run: | ||
# Default timeout is 1m, up to give more room | ||
timeout: 4m | ||
|
||
linters: | ||
auto-fix: false | ||
enable: | ||
- errcheck | ||
- goimports | ||
- golint | ||
- gosec | ||
- misspell | ||
- scopelint | ||
- unconvert | ||
- unparam | ||
- interfacer | ||
- nakedret | ||
- gocyclo | ||
- dupl | ||
- goconst | ||
- lll | ||
run: | ||
- asciicheck | ||
- bodyclose | ||
- errorlint | ||
- gci | ||
- gofmt | ||
- gosec | ||
- importas | ||
- misspell | ||
- nestif | ||
- nonamedreturns | ||
- prealloc | ||
- stylecheck | ||
- tparallel | ||
- unconvert | ||
- unparam | ||
- unused | ||
- whitespace | ||
|
||
linters-settings: | ||
errcheck: | ||
check-type-assertions: true | ||
lll: | ||
line-length: 250 | ||
dupl: | ||
threshold: 400 | ||
gci: | ||
sections: | ||
- standard | ||
- dot | ||
- default | ||
- prefix(github.com/operator-framework) | ||
|
||
# TODO: change this to `localmodule` when golangci-lint | ||
# is updated to 1.58+ | ||
- prefix(github.com/operator-framework/kubectl-operator) | ||
custom-order: true | ||
|
||
errorlint: | ||
errorf: false | ||
|
||
importas: | ||
alias: | ||
- pkg: k8s.io/apimachinery/pkg/apis/meta/v1 | ||
alias: metav1 | ||
- pkg: k8s.io/apimachinery/pkg/api/errors | ||
alias: apierrors | ||
- pkg: k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1 | ||
alias: apiextensionsv1 | ||
- pkg: k8s.io/apimachinery/pkg/util/runtime | ||
alias: utilruntime | ||
- pkg: "^k8s\\.io/api/([^/]+)/(v[^/]+)$" | ||
alias: $1$2 | ||
- pkg: sigs.k8s.io/controller-runtime | ||
alias: ctrl | ||
- pkg: github.com/operator-framework/rukpak/api/v1alpha2 | ||
alias: rukpakv1alpha2 | ||
- pkg: github.com/blang/semver/v4 | ||
alias: bsemver | ||
|
||
output: | ||
formats: | ||
- format: tab |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.