Skip to content

Add example converter for conversion of singleton lists to embedded objects #1099

Add example converter for conversion of singleton lists to embedded objects

Add example converter for conversion of singleton lists to embedded objects #1099

Triggered via pull request May 6, 2024 13:46
Status Failure
Total duration 2m 38s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 4 warnings
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)
detect-noop
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: fkirc/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
check-diff
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. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
lint
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/.
unit-tests
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, codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.