Skip to content

chore():cherry-pick k8s code from branch release/7.14 refs MONITOR-7364 #18

chore():cherry-pick k8s code from branch release/7.14 refs MONITOR-7364

chore():cherry-pick k8s code from branch release/7.14 refs MONITOR-7364 #18

Triggered via pull request November 16, 2023 02:24
Status Failure
Total duration 5m 54s
Artifacts

golangci-lint.yml

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

Annotations

21 errors and 6 warnings
lint (darwin): metricbeat/helper/easyops/cou_metric_builder.go#L5
File is not `goimports`-ed with -local github.com/elastic (goimports)
lint (darwin): metricbeat/helper/easyops/div_metric_builder.go#L4
File is not `goimports`-ed with -local github.com/elastic (goimports)
lint (darwin): metricbeat/helper/easyops/util.go#L5
File is not `goimports`-ed with -local github.com/elastic (goimports)
lint (darwin): metricbeat/helper/easyops/util.go#L34
S1034: assigning the result of this type assertion to a variable (switch value := value.(type)) could eliminate type assertions in switch cases (gosimple)
lint (darwin): metricbeat/helper/easyops/util.go#L36
S1034(related information): could eliminate this type assertion (gosimple)
lint (darwin): metricbeat/helper/easyops/util.go#L38
S1034(related information): could eliminate this type assertion (gosimple)
lint (darwin): metricbeat/helper/easyops/util.go#L40
S1034(related information): could eliminate this type assertion (gosimple)
lint (darwin): metricbeat/helper/easyops/util.go#L58
unnecessary conversion (unconvert)
lint (darwin)
issues found
lint (linux)
The job was canceled because "darwin" failed.
lint (linux): metricbeat/helper/easyops/cou_metric_builder.go#L5
File is not `goimports`-ed with -local github.com/elastic (goimports)
lint (linux): metricbeat/helper/easyops/div_metric_builder.go#L4
File is not `goimports`-ed with -local github.com/elastic (goimports)
lint (linux): metricbeat/helper/easyops/util.go#L5
File is not `goimports`-ed with -local github.com/elastic (goimports)
lint (linux): metricbeat/helper/easyops/util.go#L34
S1034: assigning the result of this type assertion to a variable (switch value := value.(type)) could eliminate type assertions in switch cases (gosimple)
lint (linux): metricbeat/helper/easyops/util.go#L36
S1034(related information): could eliminate this type assertion (gosimple)
lint (linux): metricbeat/helper/easyops/util.go#L38
S1034(related information): could eliminate this type assertion (gosimple)
lint (linux): metricbeat/helper/easyops/util.go#L40
S1034(related information): could eliminate this type assertion (gosimple)
lint (linux): metricbeat/helper/easyops/util.go#L58
unnecessary conversion (unconvert)
lint (linux)
issues found
lint (windows)
The job was canceled because "darwin" failed.
lint (windows)
The operation was canceled.
lint (darwin)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']
lint (darwin)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']
lint (linux)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']
lint (linux)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']
lint (windows)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']
lint (windows)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']