Skip to content

Commit

Permalink
feat(lint): add more linters
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiayu Liu committed Nov 19, 2017
1 parent 1497682 commit 186d391
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.idea/
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ before_install:
- gometalinter --install

script:
- gometalinter --config=config.json ./...
- gometalinter --config=config.json --line-length=150 ./...
- goveralls -service=travis-ci
23 changes: 14 additions & 9 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,23 @@
"Vendor": false,
"DisableAll": true,
"Enable": [
"vet",
"gotype",
"safesql",
"staticcheck",
"deadcode",
"errcheck",
"gas",
"goconst",
"goimports",
"varcheck",
"gas",
"unconvert",
"gosimple",
"gotype",
"ineffassign",
"interfacer",
"lll",
"misspell",
"deadcode",
"unconvert"
"nakedret",
"safesql",
"staticcheck",
"unconvert",
"unparam",
"varcheck",
"vet"
]
}

0 comments on commit 186d391

Please sign in to comment.