Skip to content

fix: lint errors

fix: lint errors #448

Triggered via push October 23, 2023 21:12
Status Success
Total duration 35s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

lint-soft.yml

on: push
lint-soft
26s
lint-soft
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
lint-soft: server/db/errors.go#L23
`if err != nil` has complex nested blocks (complexity: 7) (nestif)
lint-soft: server/db/db.go#L26
error returned from external package is unwrapped: sig: func github.com/jmoiron/sqlx.ConnectContext(ctx context.Context, driverName string, dataSourceName string) (*github.com/jmoiron/sqlx.DB, error) (wrapcheck)
lint-soft: server/db/db.go#L43
error returned from external package is unwrapped: sig: func (*database/sql.DB).Close() error (wrapcheck)
lint-soft: server/db/logger.go#L24
error returned from external package is unwrapped: sig: func (*github.com/jmoiron/sqlx.DB).Select(dest interface{}, query string, args ...interface{}) error (wrapcheck)
lint-soft: server/db/logger.go#L30
error returned from external package is unwrapped: sig: func (*github.com/jmoiron/sqlx.DB).Get(dest interface{}, query string, args ...interface{}) error (wrapcheck)
lint-soft: server/db/logger.go#L36
error returned from external package is unwrapped: sig: func (*github.com/jmoiron/sqlx.DB).Queryx(query string, args ...interface{}) (*github.com/jmoiron/sqlx.Rows, error) (wrapcheck)
lint-soft: server/db/logger.go#L48
error returned from external package is unwrapped: sig: func (*database/sql.DB).Exec(query string, args ...any) (database/sql.Result, error) (wrapcheck)
lint-soft: server/db/logger.go#L54
error returned from external package is unwrapped: sig: func (*github.com/jmoiron/sqlx.DB).SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error (wrapcheck)
lint-soft: server/db/logger.go#L60
error returned from external package is unwrapped: sig: func (*github.com/jmoiron/sqlx.DB).GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error (wrapcheck)
lint-soft: server/db/logger.go#L66
error returned from external package is unwrapped: sig: func (*github.com/jmoiron/sqlx.DB).QueryxContext(ctx context.Context, query string, args ...interface{}) (*github.com/jmoiron/sqlx.Rows, error) (wrapcheck)
lint-soft
Restore cache failed: Dependencies file is not found in /home/runner/work/soft-serve/soft-serve. Supported file pattern: go.sum