fix: lint - p.Start is deprecated
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
Dawid Wysokiński 2022-12-11 18:56:47 +01:00
parent 3b778a7883
commit 762a5008a6
Signed by: Kichiyaki
GPG Key ID: B5445E357FB8B892
2 changed files with 59 additions and 5 deletions

View File

@ -1,13 +1,12 @@
run:
tests: true
timeout: 5m
linters:
disable-all: true
enable:
- bodyclose
- deadcode
- depguard
- dupl
- errcheck
- gocritic
- gofmt
@ -19,19 +18,73 @@ linters:
- nakedret
- prealloc
- staticcheck
- structcheck
- typecheck
- unconvert
- unused
- varcheck
- lll
- nestif
- thelper
- nonamedreturns
- gocyclo
- gomnd
- tenv
- testpackage
- noctx
- tparallel
- usestdlibvars
- unconvert
- makezero
- grouper
- errname
- exhaustive
- tagliatelle
linters-settings:
lll:
line-length: 150
gocyclo:
min-complexity: 10
govet:
enable:
- asmdecl
- assign
- atomic
- atomicalign
- bools
- buildtag
- cgocall
- composites
- copylocks
- deepequalerrors
- errorsas
- findcall
- framepointer
- httpresponse
- ifaceassert
- loopclosure
- lostcancel
- nilfunc
- nilness
- printf
- reflectvaluecompare
- shadow
- shift
- sigchanyzer
- sortslice
- stdmethods
- stringintconv
- structtag
- testinggoroutine
- tests
- unmarshal
- unreachable
- unsafeptr
- unusedresult
- unusedwrite
gomnd:
ignored-functions:
- strconv.FormatInt
- strconv.ParseInt
issues:
exclude-rules:
@ -39,6 +92,7 @@ issues:
- path: _test\.go
linters:
- dupl
- gocyclo
- linters:
- lll
source: "^//go:generate "

View File

@ -54,7 +54,7 @@ func newApp() (*cli.App, error) {
}
p := tea.NewProgram(internal.NewUI(entries), tea.WithAltScreen())
if err := p.Start(); err != nil {
if _, err := p.Run(); err != nil {
return fmt.Errorf("p.Start: %w", err)
}