kyaml/openapi: replace the embedded Kubernetes schema with precomputed patch metadata #7830
go.yml
on: pull_request
Matrix: test-modules
conditional-changes
6s
check-synced-go-modules
35s
Lint
3m 4s
Test Linux
1m 9s
Test Summary
2s
Annotations
10 errors
|
Lint:
kyaml/openapi/internal/patchmetagen/main.go#L77
error returned from external package is unwrapped: sig: func (*k8s.io/kube-openapi/pkg/validation/spec.Swagger).UnmarshalJSON(data []byte) error (wrapcheck)
|
|
Lint:
kyaml/openapi/internal/patchmetagen/main.go#L73
error returned from external package is unwrapped: sig: func sigs.k8s.io/yaml.YAMLToJSON(y []byte) ([]byte, error) (wrapcheck)
|
|
Lint:
kyaml/openapi/internal/patchmetagen/main.go#L68
error returned from external package is unwrapped: sig: func (*k8s.io/kube-openapi/pkg/validation/spec.Swagger).FromGnostic(g *github.com/google/gnostic-models/openapiv2.Document) (ok bool, err error) (wrapcheck)
|
|
Lint:
kyaml/openapi/internal/patchmetagen/main.go#L65
error returned from external package is unwrapped: sig: func google.golang.org/protobuf/proto.Unmarshal(b []byte, m google.golang.org/protobuf/proto.Message) error (wrapcheck)
|
|
Lint:
kyaml/openapi/internal/patchmetagen/main.go#L59
error returned from external package is unwrapped: sig: func os.ReadFile(name string) ([]byte, error) (wrapcheck)
|
|
Lint:
kyaml/openapi/internal/patchmetagen/main.go#L135
`if refName(p.Ref) == ""` has complex nested blocks (complexity: 6) (nestif)
|
|
Lint:
kyaml/openapi/internal/patchmetagen/main.go#L103
`if ok` has complex nested blocks (complexity: 7) (nestif)
|
|
Lint:
kyaml/openapi/internal/patchmetagen/main.go#L62
`if filepath.Ext(path) == ".pb"` has complex nested blocks (complexity: 7) (nestif)
|
|
Lint:
kyaml/openapi/openapi_test.go#L101
deploymentSchema is a global variable (gochecknoglobals)
|
|
Lint:
kyaml/openapi/internal/patchmetagen/main.go#L83
cyclomatic complexity 64 of func `main` is high (> 30) (gocyclo)
|