Skip to content

Linter

Linter #2

Manually triggered October 4, 2024 20:01
Status Failure
Total duration 2m 1s
Artifacts

lint.yml

on: workflow_dispatch
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 11 warnings
lint: pkg/expression/expression.go#L258
258-305 lines are duplicate of `pkg/expression/expression.go:356-403` (dupl)
lint: pkg/expression/expression.go#L356
356-403 lines are duplicate of `pkg/expression/expression.go:258-305` (dupl)
lint: pkg/object/utils.go#L80
Error return value is not checked (errcheck)
lint: pkg/object/utils.go#L81
Error return value is not checked (errcheck)
lint: pkg/cache/composite_cache.go#L107
Error return value of `cc.viewCache.Start` is not checked (errcheck)
lint: pkg/cache/composite_cache_test.go#L67
Error return value of `cache.Start` is not checked (errcheck)
lint: pkg/cache/view_cache.go#L361
Error return value of `informer.RemoveEventHandler` is not checked (errcheck)
lint: pkg/cache/view_cache_test.go#L105
Error return value of `cache.Add` is not checked (errcheck)
lint: pkg/cache/view_cache_test.go#L125
Error return value of `cache.Add` is not checked (errcheck)
lint: pkg/cache/view_cache_test.go#L141
Error return value of `cache.Add` is not checked (errcheck)
lint: internal/buildinfo/build_info.go#L5
exported: exported type BuildInfo should have comment or be unexported (revive)
lint: pkg/util/strings.go#L9
exported: comment on exported function Map should be of the form "Map ..." (revive)
lint: pkg/util/strings.go#L18
exported: exported function Stringify should have comment or be unexported (revive)
lint: internal/testutils/testutils.go#L6
exported: exported var TestSvc should have comment or be unexported (revive)
lint: pkg/api/view/v1alpha1/group_version.go#L19
exported: exported function NewGVK should have comment or be unexported (revive)
lint: pkg/object/utils.go#L35
exported: comment on exported function ConvertRuntimeObjectToClientObject should be of the form "ConvertRuntimeObjectToClientObject ..." (revive)
lint: pkg/object/utils.go#L78
exported: exported function GetBaseScheme should have comment or be unexported (revive)
lint: pkg/object/object.go#L12
exported: exported type Object should have comment or be unexported (revive)
lint: pkg/object/patch.go#L123
exported: exported function ApplyStrategicMergePatch should have comment or be unexported (revive)
lint: pkg/object/object.go#L13
exported: exported type ObjectList should have comment or be unexported (revive)
lint
Restore cache failed: Dependencies file is not found in /home/runner/work/dcontroller/dcontroller. Supported file pattern: go.sum