Skip to content

Wilhuang/fix mssql

Wilhuang/fix mssql #24

Triggered via pull request November 7, 2024 07:10
Status Failure
Total duration 1m 17s
Artifacts

golangci-lint.yml

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

Annotations

14 errors and 7 warnings
lint (darwin): x-pack/metricbeat/module/mssql/database/database.go#L7
File is not `goimports`-ed with -local github.com/elastic (goimports)
lint (darwin): x-pack/metricbeat/module/mssql/database/database.go#L54
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
lint (darwin): x-pack/metricbeat/module/mssql/database/database.go#L63
ineffectual assignment to uri (ineffassign)
lint (darwin): x-pack/metricbeat/module/mssql/database/database.go#L248
ST1023: should omit type rowCounter from declaration; it will be inferred from the right-hand side (stylecheck)
lint (darwin): x-pack/metricbeat/module/mssql/database/database.go#L373
ST1023: should omit type rowCounter from declaration; it will be inferred from the right-hand side (stylecheck)
lint (darwin): x-pack/metricbeat/module/mssql/database/database.go#L416
ST1023: should omit type rowCounter from declaration; it will be inferred from the right-hand side (stylecheck)
lint (darwin): x-pack/metricbeat/module/mssql/database/database.go#L611
ST1023: should omit type float64 from declaration; it will be inferred from the right-hand side (stylecheck)
lint (darwin): x-pack/metricbeat/module/mssql/database/database.go#L638
ineffectual assignment to dbSpaceUsedPct (ineffassign)
lint (darwin): x-pack/metricbeat/module/mssql/database/database.go#L701
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
lint (darwin): x-pack/metricbeat/module/mssql/database/database.go#L753
ST1023: should omit type int64 from declaration; it will be inferred from the right-hand side (stylecheck)
lint (windows)
The job was canceled because "darwin" failed.
lint (windows)
The operation was canceled.
lint (linux)
The job was canceled because "darwin" failed.
lint (linux)
The operation was canceled.
lint (darwin)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v3, golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
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 (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']
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']