Skip to content

feat: support mcs #1293

feat: support mcs

feat: support mcs #1293

Triggered via pull request January 17, 2024 09:19
Status Failure
Total duration 4m 49s
Artifacts

ci.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint: pkg/controllers/mcs/service_export_controller.go#L137
typeSwitchVar: 1 case can benefit from type switch with assignment (gocritic)
lint: pkg/controllers/mcs/service_export_controller.go#L163
typeSwitchVar: 1 case can benefit from type switch with assignment (gocritic)
lint: pkg/controllers/mcs/service_import_controller.go#L119
typeSwitchVar: 1 case can benefit from type switch with assignment (gocritic)
lint: pkg/controllers/mcs/service_export_controller.go#L137
S1034: assigning the result of this type assertion to a variable (switch obj := obj.(type)) could eliminate type assertions in switch cases (gosimple)
lint: pkg/controllers/mcs/service_export_controller.go#L139
S1034(related information): could eliminate this type assertion (gosimple)
lint: pkg/controllers/mcs/service_export_controller.go#L163
S1034: assigning the result of this type assertion to a variable (switch obj := obj.(type)) could eliminate type assertions in switch cases (gosimple)
lint: pkg/controllers/mcs/service_export_controller.go#L165
S1034(related information): could eliminate this type assertion (gosimple)
lint: pkg/controllers/mcs/service_import_controller.go#L119
S1034: assigning the result of this type assertion to a variable (switch obj := obj.(type)) could eliminate type assertions in switch cases (gosimple)
lint: pkg/controllers/mcs/service_import_controller.go#L121
S1034(related information): could eliminate this type assertion (gosimple)
lint
issues found