fix: enable golangci-lint #2
Annotations
10 errors and 2 warnings
migrations/20230413100000_set_default_tags_in_resources.go#L18
Error return value of `(*github.com/uptrace/bun.UpdateQuery).Exec` is not checked (errcheck)
|
migrations/20230602100000_create_custom_webhook_fields_in_alerts.go#L16
Error return value of `db.ExecContext` is not checked (errcheck)
|
migrations/20230602100000_create_custom_webhook_fields_in_alerts.go#L21
Error return value of `db.ExecContext` is not checked (errcheck)
|
migrations/20230602100000_create_custom_webhook_fields_in_alerts.go#L26
Error return value of `db.ExecContext` is not checked (errcheck)
|
utils/database.go#L92
Error return value of `migrator.Init` is not checked (errcheck)
|
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)
|
utils/gcpcomputepricing/snapshot.go#L50
S1021: should merge variable declaration with assignment on next line (gosimple)
|
utils/gcpcomputepricing/disk.go#L111
S1028: should use fmt.Errorf(...) instead of errors.New(fmt.Sprintf(...)) (gosimple)
|
utils/gcpcomputepricing/machine.go#L139
S1028: should use fmt.Errorf(...) instead of errors.New(fmt.Sprintf(...)) (gosimple)
|
utils/gcpcomputepricing/machine.go#L164
S1028: should use fmt.Errorf(...) instead of errors.New(fmt.Sprintf(...)) (gosimple)
|
|
|
The logs for this run have expired and are no longer available.
Loading