mirror of
https://github.com/google/go-jsonnet.git
synced 2025-09-28 17:01:02 +02:00
Enforce no golangci-lint warnings in CI
This commit is contained in:
parent
9ada769ce4
commit
234b97cd9c
14
.golangci.yml
Normal file
14
.golangci.yml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
run:
|
||||||
|
skip-files: ast/identifier_set.go
|
||||||
|
linters:
|
||||||
|
enable:
|
||||||
|
- stylecheck
|
||||||
|
- gochecknoinits
|
||||||
|
- golint
|
||||||
|
issues:
|
||||||
|
exclude-use-default: false
|
||||||
|
exclude:
|
||||||
|
- "should have a package comment, unless it's in another file for this package"
|
||||||
|
linters-settings:
|
||||||
|
golint:
|
||||||
|
min-confidence: 0
|
@ -49,6 +49,7 @@ before_install:
|
|||||||
- go get github.com/axw/gocov/gocov
|
- go get github.com/axw/gocov/gocov
|
||||||
- go get github.com/mattn/goveralls
|
- go get github.com/mattn/goveralls
|
||||||
- go get github.com/fatih/color
|
- go get github.com/fatih/color
|
||||||
|
- go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
|
||||||
- if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
|
- if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
|
||||||
- go get github.com/sergi/go-diff/diffmatchpatch
|
- go get github.com/sergi/go-diff/diffmatchpatch
|
||||||
|
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
run_tests() {
|
run_tests() {
|
||||||
|
golangci-lint run ./...
|
||||||
$GOPATH/bin/goveralls -service=travis-ci
|
$GOPATH/bin/goveralls -service=travis-ci
|
||||||
SKIP_GO_TESTS=1 ./tests.sh
|
SKIP_GO_TESTS=1 ./tests.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
run_tests
|
run_tests
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user