Add example converter for conversion of singleton lists to embedded objects #1099
Annotations
10 errors and 1 warning
Lint:
pkg/config/example_conversions.go#L6
File is not `gci`-ed with --skip-generated -s standard -s default -s prefix(github.com/crossplane/upjet) -s blank -s dot --custom-order (gci)
|
Lint:
pkg/config/example_conversions.go#L9
File is not `gci`-ed with --skip-generated -s standard -s default -s prefix(github.com/crossplane/upjet) -s blank -s dot --custom-order (gci)
|
Lint:
pkg/config/example_conversions.go#L15
File is not `gci`-ed with --skip-generated -s standard -s default -s prefix(github.com/crossplane/upjet) -s blank -s dot --custom-order (gci)
|
Lint:
pkg/config/example_conversions.go#L16
File is not `gci`-ed with --skip-generated -s standard -s default -s prefix(github.com/crossplane/upjet) -s blank -s dot --custom-order (gci)
|
Lint:
pkg/config/resource.go#L8
File is not `gci`-ed with --skip-generated -s standard -s default -s prefix(github.com/crossplane/upjet) -s blank -s dot --custom-order (gci)
|
Lint:
pkg/config/resource.go#L13
File is not `gci`-ed with --skip-generated -s standard -s default -s prefix(github.com/crossplane/upjet) -s blank -s dot --custom-order (gci)
|
Lint:
pkg/config/resource.go#L26
File is not `gci`-ed with --skip-generated -s standard -s default -s prefix(github.com/crossplane/upjet) -s blank -s dot --custom-order (gci)
|
Lint:
pkg/config/example_conversions.go#L96
preferStringWriter: f.WriteString(convertedFileContent) should be preferred to the f.Write([]byte(convertedFileContent)) (gocritic)
|
Lint:
pkg/config/example_conversions.go#L44
wrapperFunc: use strings.ReplaceAll method in `strings.Replace(path, examples[0].GroupVersionKind().Version, rootResource.Version, -1)` (gocritic)
|
Lint:
pkg/config/example_conversions.go#L19
cyclomatic complexity 21 of func `ConvertSingletonListToEmbeddedObject` is high (> 10) (gocyclo)
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744, actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568, actions/cache@v3, golangci/golangci-lint-action@639cd343e1d3b897ff35927a75193d57cfcba299. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Loading