Skip to content

feat: more tests

feat: more tests #114

Triggered via push July 26, 2023 21:16
Status Success
Total duration 20s
Artifacts

lint-soft.yml

on: push
lint-soft
12s
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#L25
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#L42
error returned from external package is unwrapped: sig: func (*database/sql.DB).Close() error (wrapcheck)
lint-soft: server/db/logger.go#L20
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#L26
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#L32
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#L44
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#L50
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#L56
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#L62
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