Fix linter config.
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
version: "2"
|
||||||
|
|
||||||
run:
|
run:
|
||||||
timeout: 5m
|
timeout: 5m
|
||||||
tests: true
|
tests: true
|
||||||
@@ -25,7 +27,7 @@ linters:
|
|||||||
- revive
|
- revive
|
||||||
- typecheck
|
- typecheck
|
||||||
|
|
||||||
linters-settings:
|
settings:
|
||||||
gocyclo:
|
gocyclo:
|
||||||
min-complexity: 15
|
min-complexity: 15
|
||||||
|
|
||||||
@@ -33,9 +35,6 @@ linters-settings:
|
|||||||
min-len: 3
|
min-len: 3
|
||||||
min-occurrences: 3
|
min-occurrences: 3
|
||||||
|
|
||||||
misspell:
|
|
||||||
locale: US
|
|
||||||
|
|
||||||
revive:
|
revive:
|
||||||
rules:
|
rules:
|
||||||
- name: exported
|
- name: exported
|
||||||
@@ -81,7 +80,5 @@ issues:
|
|||||||
|
|
||||||
output:
|
output:
|
||||||
formats:
|
formats:
|
||||||
- format: colored-line-number
|
text:
|
||||||
path: stdout
|
colors: false
|
||||||
print-issued-lines: true
|
|
||||||
print-linter-name: true
|
|
||||||
|
|||||||
26
.travis.yml
26
.travis.yml
@@ -1,26 +0,0 @@
|
|||||||
arch:
|
|
||||||
- amd64
|
|
||||||
- ppc64le
|
|
||||||
sudo: false
|
|
||||||
language: go
|
|
||||||
go:
|
|
||||||
- tip
|
|
||||||
- 1.9
|
|
||||||
jobs:
|
|
||||||
exclude:
|
|
||||||
- go: 1.9
|
|
||||||
arch: amd64
|
|
||||||
- go: 1.9
|
|
||||||
arch: ppc64le
|
|
||||||
script:
|
|
||||||
- go get golang.org/x/lint/golint
|
|
||||||
- go get golang.org/x/tools/cmd/cover
|
|
||||||
- go get github.com/kisom/goutils/...
|
|
||||||
- go test -cover github.com/kisom/goutils/...
|
|
||||||
- golint github.com/kisom/goutils/...
|
|
||||||
notifications:
|
|
||||||
email:
|
|
||||||
recipients:
|
|
||||||
- coder@kyleisom.net
|
|
||||||
on_success: change
|
|
||||||
on_failure: change
|
|
||||||
Reference in New Issue
Block a user