Wilhuang/fix mssql #25
Annotations
10 errors and 3 warnings
golangci-lint:
x-pack/metricbeat/module/mssql/database/database.go#L7
File is not `goimports`-ed with -local github.com/elastic (goimports)
|
golangci-lint:
x-pack/metricbeat/module/mssql/database/database.go#L54
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
|
golangci-lint:
x-pack/metricbeat/module/mssql/database/database.go#L63
ineffectual assignment to uri (ineffassign)
|
golangci-lint:
x-pack/metricbeat/module/mssql/database/database.go#L249
ST1023: should omit type rowCounter from declaration; it will be inferred from the right-hand side (stylecheck)
|
golangci-lint:
x-pack/metricbeat/module/mssql/database/database.go#L374
ST1023: should omit type rowCounter from declaration; it will be inferred from the right-hand side (stylecheck)
|
golangci-lint:
x-pack/metricbeat/module/mssql/database/database.go#L417
ST1023: should omit type rowCounter from declaration; it will be inferred from the right-hand side (stylecheck)
|
golangci-lint:
x-pack/metricbeat/module/mssql/database/database.go#L612
ST1023: should omit type float64 from declaration; it will be inferred from the right-hand side (stylecheck)
|
golangci-lint:
x-pack/metricbeat/module/mssql/database/database.go#L639
ineffectual assignment to dbSpaceUsedPct (ineffassign)
|
golangci-lint:
x-pack/metricbeat/module/mssql/database/database.go#L702
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
|
golangci-lint:
x-pack/metricbeat/module/mssql/database/database.go#L754
ST1023: should omit type int64 from declaration; it will be inferred from the right-hand side (stylecheck)
|
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/
|
Post golangci-lint
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']
|
golangci-lint
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']
|
Loading