Skip to content

Commit

Permalink
Merge pull request #211 from jrasell/enable_lint_check
Browse files Browse the repository at this point in the history
Enable lint check during tests and fix discovered lint issues.
  • Loading branch information
jrasell committed Jul 10, 2018
2 parents b4741ff + daf6287 commit 3bc5011
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ check: ## Run the gometalinter suite
--sort="path" \
--aggregate \
--disable-all \
--enable golint \
--enable-gc \
--enable goimports \
--enable misspell \
Expand Down
5 changes: 4 additions & 1 deletion buildtime/consts.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
package buildtime

// These variables are populated by govvv during build time to provide detailed
// version output information.
var (
Version string
BuildDate string
GitCommit string
GitBranch string
GitState string
GitSummary string
Version string
)

const (
// PROGNAME is the name of this application.
PROGNAME = "Levant"
)
6 changes: 5 additions & 1 deletion helper/kvflag.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ func (v *Flag) String() string {
return ""
}

// Set takes...
// Set takes a flag variable argument and pulls the correct key and value to
// create or add to a map.
func (v *Flag) Set(raw string) error {
idx := strings.Index(raw, "=")
if idx == -1 {
Expand All @@ -36,6 +37,9 @@ type FlagStringSlice []string
func (v *FlagStringSlice) String() string {
return ""
}

// Set is used to append a variable file flag argument to a list of file flag
// args.
func (v *FlagStringSlice) Set(raw string) error {
*v = append(*v, raw)
return nil
Expand Down
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ import (
"github.com/mitchellh/cli"
)

// These variables are populated by govvv during build time to provide detailed
// version output information.
var (
// variables populated by govvv(1)
Version = "dev"
BuildDate string
GitCommit string
Expand Down

0 comments on commit 3bc5011

Please sign in to comment.