Skip to content

Commit

Permalink
Lint examples directory with golangci-lint
Browse files Browse the repository at this point in the history
Use new option in golangci-lint `exclude-use-default` so we can
lint our examples and main code at the same time.
  • Loading branch information
Sean-Der committed Sep 11, 2019
1 parent 6997cc7 commit c178b8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ linters:

issues:
exclude-use-default: false

run:
skip-dirs-use-default: false
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ script:
- bash .github/lint-filename.sh
- godox
- golangci-lint run --build-tags quic ./...
- cd examples && golangci-lint run --build-tags quic ./...
- cd ..
- rm -rf examples # Remove examples, no test coverage for them
- go test -tags quic -coverpkg=$(go list ./... | grep -v examples | tr '\n' ',') -coverprofile=cover.out -v -race -covermode=atomic ./...
- GOOS=js GOARCH=wasm go test -exec="./test-wasm/go_js_wasm_exec" -v .
Expand Down

0 comments on commit c178b8e

Please sign in to comment.