From 846c2986146422d6c45b715ea7dce7a40758458a Mon Sep 17 00:00:00 2001 From: Oleg Balunenko Date: Sat, 7 Mar 2020 16:35:36 +0300 Subject: [PATCH] chore(): Upgrade to go 1.14; Linters config --- .golangci.yml | 5 +++++ .travis.yml | 4 ++-- pkg/bar/bar.go | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 219e57d9..c7a5d347 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -33,6 +33,11 @@ linters-settings: goconst: min-len: 2 min-occurrences: 2 + gomnd: + settings: + mnd: + # the list of enabled checks, see https://github.com/tommy-muehle/go-mnd/#checks for description. + checks: case,condition,operation,return misspell: locale: US lll: diff --git a/.travis.yml b/.travis.yml index 27581a62..78af6b8c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,7 +16,7 @@ jobs: include: - stage: Unit Tests, Metalinter, Sonar go: - - 1.13.x + - 1.14.x os: - linux install: @@ -32,7 +32,7 @@ jobs: - stage: Build Application go: - - 1.13.x + - 1.14.x os: - linux go_import_path: github.com/oleg-balunenko/instadiff-cli diff --git a/pkg/bar/bar.go b/pkg/bar/bar.go index 315d204a..ea11b0d3 100644 --- a/pkg/bar/bar.go +++ b/pkg/bar/bar.go @@ -144,6 +144,7 @@ func (b *realBar) Run(ctx context.Context) { if err := b.bar.Finish(); err != nil { log.Errorf("error when finish bar: %v", err) } + fmt.Println() }()