Skip to content

fix: lint errors

fix: lint errors #446

Triggered via push October 23, 2023 21:08
Status Success
Total duration 36s
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/stats/stats.go#L30
mnd: Magic number: 10, in <assign> detected (gomnd)
lint-soft: server/stats/stats.go#L31
mnd: Magic number: 10, in <assign> detected (gomnd)
lint-soft: server/stats/stats.go#L32
mnd: Magic number: 10, in <assign> detected (gomnd)
lint-soft: server/stats/stats.go#L40
error returned from external package is unwrapped: sig: func (*net/http.Server).ListenAndServe() error (wrapcheck)
lint-soft: server/stats/stats.go#L45
error returned from external package is unwrapped: sig: func (*net/http.Server).Shutdown(ctx context.Context) error (wrapcheck)
lint-soft: server/stats/stats.go#L50
error returned from external package is unwrapped: sig: func (*net/http.Server).Close() error (wrapcheck)
lint-soft: server/cron/cron.go#L42
mnd: Magic number: 30, in <argument> detected (gomnd)
lint-soft: server/jwk/jwk.go#L37
error returned from external package is unwrapped: sig: func (github.com/charmbracelet/soft-serve/server/config.SSHConfig).KeyPair() (*github.com/charmbracelet/keygen.KeyPair, error) (wrapcheck)
lint-soft: server/sshutils/utils.go#L14
error returned from external package is unwrapped: sig: func golang.org/x/crypto/ssh.ParseAuthorizedKey(in []byte) (out golang.org/x/crypto/ssh.PublicKey, comment string, options []string, rest []byte, err error) (wrapcheck)
lint-soft: server/storage/local.go#L82
Comment should end in a period (godot)
lint-soft
Restore cache failed: Dependencies file is not found in /home/runner/work/soft-serve/soft-serve. Supported file pattern: go.sum