Skip to content

feat: new workload plugin version and controller-gen logic #201

feat: new workload plugin version and controller-gen logic

feat: new workload plugin version and controller-gen logic #201

Triggered via pull request July 3, 2024 13:34
Status Failure
Total duration 27s
Artifacts

check.yaml

on: pull_request
Check Latest Commit Message
0s
Check Latest Commit Message
Check Commit Messages
5s
Check Commit Messages
Check Pull Request Title
3s
Check Pull Request Title
DCO Check
3s
DCO Check
Check License Lines
17s
Check License Lines
Lint
14s
Lint
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 8 warnings
Lint: internal/plugins/workload/v2/scaffolds/templates/controller/controller_suitetest.go#L102
mnd: Magic number: 2, in <argument> detected (gomnd)
Lint: internal/plugins/workload/v2/scaffolds/api.go#L113
Function 'scaffoldWorkload' is too long (107 > 100) (funlen)
Lint: internal/plugins/workload/v2/init.go#L30
goVerMin is a global variable (gochecknoglobals)
Lint: internal/plugins/workload/v2/init.go#L31
goVerMax is a global variable (gochecknoglobals)
Lint: internal/plugins/workload/v2/api.go#L128
err113: do not define dynamic errors, use wrapped static errors instead: "errors.New(\"API resource already exists\")" (goerr113)
Lint: internal/plugins/workload/v2/api.go#L133
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"multiple groups are not allowed by default, \" +\n\t\"to enable multi-group visit https://kubebuilder.io/migration/multi-group.html\")" (goerr113)
Lint: internal/plugins/workload/v2/api.go#L161
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"%s file should present in the root directory\", utils.DefaultMainPath)" (goerr113)
Lint: internal/plugins/workload/v2/init.go#L219
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\n\t\"target directory is not empty (only %s, files and directories with the prefix \\\".\\\", \"+\n\t\t\"files with the suffix \\\".md\\\" or capitalized files name are allowed); \"+\n\t\t\"found existing file %q\", strings.Join(allowedFiles, \", \"), path)" (goerr113)
Lint: internal/plugins/workload/v2/scaffolds/templates/hack/boilerplate.go#L95
knownLicenses is a global variable (gochecknoglobals)
Lint: internal/plugins/workload/v2/scaffolds/templates/hack/boilerplate.go#L45
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"unknown specified license %s\", f.License)" (goerr113)
Check Pull Request Title
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: deepakputhraya/action-pr-title@master. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Check Pull Request Title
The following actions uses node12 which is deprecated and will be forced to run on node16: deepakputhraya/action-pr-title@master. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Check Commit Messages
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: tim-actions/get-pr-commits@master, tim-actions/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Check Commit Messages
The following actions uses node12 which is deprecated and will be forced to run on node16: tim-actions/[email protected]. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
DCO Check
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: tim-actions/get-pr-commits@master, tim-actions/dco@master. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
DCO Check
The following actions uses node12 which is deprecated and will be forced to run on node16: tim-actions/dco@master. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Lint
Restore cache failed: Dependencies file is not found in /home/runner/work/operator-builder/operator-builder. Supported file pattern: go.sum