Skip to content

chore(lint): wrap various TTY-related errors #1631

chore(lint): wrap various TTY-related errors

chore(lint): wrap various TTY-related errors #1631

Triggered via push July 6, 2023 21:16
Status Success
Total duration 20s
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
9s
lint-soft
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 1 warning
lint-soft: commands.go#L16
Consider pre-allocating `validCmds` (prealloc)
lint-soft: logging.go#L35
mnd: Magic number: 0o644, in <argument> detected (gomnd)
lint-soft: tty.go#L45
mnd: Magic number: 10, in <argument> detected (gomnd)
lint-soft: tty.go#L90
mnd: Magic number: 500, in <argument> detected (gomnd)
lint-soft: key.go#L572
mnd: Magic number: 6, in <return> detected (gomnd)
lint-soft: key.go#L581
naked return in func `detectOneMsg` with 67 lines of code (nakedret)
lint-soft: key.go#L550
error returned from interface method should be wrapped: sig: func (io.Reader).Read(p []byte) (n int, err error) (wrapcheck)
lint-soft: key.go#L561
error returned from interface method should be wrapped: sig: func (context.Context).Err() error (wrapcheck)
lint-soft: logging.go#L37
error returned from external package is unwrapped: sig: func os.OpenFile(name string, flag int, perm io/fs.FileMode) (*os.File, error) (wrapcheck)
lint-soft
Restore cache failed: Dependencies file is not found in /home/runner/work/bubbletea/bubbletea. Supported file pattern: go.sum