diff --git a/completions/completions.go b/completions/completions.go index 3e62e748..b9ccb5f4 100644 --- a/completions/completions.go +++ b/completions/completions.go @@ -2,10 +2,11 @@ package completions import ( "fmt" - "github.com/naggie/dstask" "log" "strconv" "strings" + + "github.com/naggie/dstask" ) // Completions ... diff --git a/completions/embed.go b/completions/embed.go index d8ff5676..95dd0b66 100644 --- a/completions/embed.go +++ b/completions/embed.go @@ -1,9 +1,12 @@ package completions +//nolint import _ "embed" +//nolint //go:embed zsh.sh var Zsh string +//nolint //go:embed bash.sh var Bash string diff --git a/const.go b/const.go index c350ca18..ab47dd80 100644 --- a/const.go +++ b/const.go @@ -59,7 +59,9 @@ const ( CMD_HELP = "help" CMD_VERSION = "version" + //nolint CMD_PRINT_ZSH_COMPLETION = "zsh-completion" + //nolint CMD_PRINT_BASH_COMPLETION = "bash-completion" // filter: P1 P2 etc diff --git a/qa/lint.sh b/qa/lint.sh index a5f1fb12..9ad3add7 100755 --- a/qa/lint.sh +++ b/qa/lint.sh @@ -9,7 +9,7 @@ if ! which golangci-lint &>/dev/null; then # run the install from a temp dir. we don't want 'go get' updating our go.mod/go.sum files dir=$(mktemp -d) cd $dir - GO111MODULE=on go get 'github.com/golangci/golangci-lint/cmd/golangci-lint@v1.35.2' + GO111MODULE=on go 'github.com/golangci/golangci-lint/cmd/golangci-lint@v1.35.2' cd - fi