Skip to content

fix: enable golangci-lint #2

fix: enable golangci-lint

fix: enable golangci-lint #2

Triggered via pull request October 8, 2023 14:24
Status Failure
Total duration 1m 50s
Artifacts

build_test_pr.yml

on: pull_request
build_test_dashboard
1m 38s
build_test_dashboard
build_test_cli
42s
build_test_cli
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
build_test_cli: migrations/20230413100000_set_default_tags_in_resources.go#L18
Error return value of `(*github.com/uptrace/bun.UpdateQuery).Exec` is not checked (errcheck)
build_test_cli: migrations/20230602100000_create_custom_webhook_fields_in_alerts.go#L16
Error return value of `db.ExecContext` is not checked (errcheck)
build_test_cli: migrations/20230602100000_create_custom_webhook_fields_in_alerts.go#L21
Error return value of `db.ExecContext` is not checked (errcheck)
build_test_cli: migrations/20230602100000_create_custom_webhook_fields_in_alerts.go#L26
Error return value of `db.ExecContext` is not checked (errcheck)
build_test_cli: utils/database.go#L92
Error return value of `migrator.Init` is not checked (errcheck)
build_test_cli: internal/config/load.go#L7
SA1019: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details. (staticcheck)
build_test_cli: utils/gcpcomputepricing/snapshot.go#L50
S1021: should merge variable declaration with assignment on next line (gosimple)
build_test_cli: utils/gcpcomputepricing/disk.go#L111
S1028: should use fmt.Errorf(...) instead of errors.New(fmt.Sprintf(...)) (gosimple)
build_test_cli: utils/gcpcomputepricing/machine.go#L139
S1028: should use fmt.Errorf(...) instead of errors.New(fmt.Sprintf(...)) (gosimple)
build_test_cli: utils/gcpcomputepricing/machine.go#L164
S1028: should use fmt.Errorf(...) instead of errors.New(fmt.Sprintf(...)) (gosimple)
build_test_cli
Unexpected input(s) 'cache', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']
build_test_cli
Unexpected input(s) 'cache', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']