Skip to content

Commit

Permalink
fix go vet
Browse files Browse the repository at this point in the history
  • Loading branch information
coryb committed Sep 3, 2017
1 parent ba35f55 commit e04b506
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ before_install:
- sudo apt-get update && sudo apt-get install -y pass gnupg

language: go

go_import_path: gopkg.in/Netflix-Skunkworks/go-jira.v1
go:
- 1.6

Expand Down
14 changes: 9 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,18 @@ debug:

vet:
@go vet .
@go vet ./data
@go vet ./main
@go vet ./jiracli
@go vet ./jiracmd
@go vet ./jiradata
@go vet ./cmd/jira

lint:
@go get github.com/golang/lint/golint
@./bin/golint .
@./bin/golint ./data
@./bin/golint ./main
@golint .
@golint ./jiracli
@golint ./jiracmd
@golint ./jiradata
@golint ./cmd/jira

cross-setup:
for p in $(PLATFORMS); do \
Expand Down
4 changes: 2 additions & 2 deletions cmd/jira/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func main() {

var verbosity int
app.Flag("verbose", "Increase verbosity for debugging").Short('v').PreAction(func(_ *kingpin.ParseContext) error {
os.Setenv("JIRA_DEBUG", fmt.Sprintf("%s", verbosity))
os.Setenv("JIRA_DEBUG", fmt.Sprintf("%d", verbosity))
increaseLogLevel(1)
return nil
}).CounterVar(&verbosity)
Expand Down Expand Up @@ -298,7 +298,7 @@ func main() {

// register custom commands
data := struct {
CustomCommands kingpeon.DynamicCommands `yaml:"custom-commands" json":custom-commands"`
CustomCommands kingpeon.DynamicCommands `yaml:"custom-commands" json:"custom-commands"`
}{}

if err := fig.LoadAllConfigs("config.yml", &data); err != nil {
Expand Down

0 comments on commit e04b506

Please sign in to comment.