Skip to content

Commit

Permalink
Add some linter cheat codes
Browse files Browse the repository at this point in the history
  • Loading branch information
dontlaugh committed Jan 29, 2022
1 parent a8e5261 commit c8cf434
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion completions/completions.go
Expand Up @@ -2,10 +2,11 @@ package completions

import (
"fmt"
"github.com/naggie/dstask"
"log"
"strconv"
"strings"

"github.com/naggie/dstask"
)

// Completions ...
Expand Down
3 changes: 3 additions & 0 deletions 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
2 changes: 2 additions & 0 deletions const.go
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion qa/lint.sh
Expand Up @@ -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 install 'github.com/golangci/golangci-lint/cmd/golangci-lint@v1.35.2'
cd -
fi

Expand Down

0 comments on commit c8cf434

Please sign in to comment.