Skip to content

Update commands.go #2137

Update commands.go

Update commands.go #2137

Triggered via push April 24, 2024 18:52
Status Success
Total duration 22s
Artifacts

lint-soft.yml

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

Annotations

7 errors and 1 warning
lint-soft: mouse.go#L48
`if m.Button == MouseButtonNone` has complex nested blocks (complexity: 6) (nestif)
lint-soft: mouse.go#L291
missing cases in switch of type tea.MouseButton: tea.MouseButtonNone, tea.MouseButtonWheelUp, tea.MouseButtonWheelDown, tea.MouseButtonWheelLeft, tea.MouseButtonWheelRight, tea.MouseButton10, tea.MouseButton11 (exhaustive)
lint-soft: mouse.go#L175
mnd: Magic number: 5, in <condition> detected (gomnd)
lint-soft: key.go#L625
mnd: Magic number: 3, in <operation> detected (gomnd)
lint-soft: key.go#L635
naked return in func `detectOneMsg` with 94 lines of code (nakedret)
lint-soft: key.go#L644
naked return in func `detectOneMsg` with 94 lines of code (nakedret)
lint-soft: inputreader_other.go#L13
error returned from external package is unwrapped: sig: func github.com/muesli/cancelreader.NewReader(reader io.Reader) (github.com/muesli/cancelreader.CancelReader, error) (wrapcheck)
lint-soft
Restore cache failed: Dependencies file is not found in /home/runner/work/bubbletea/bubbletea. Supported file pattern: go.sum