-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lint: fix all lint errors as reported by golangci-lint. (#49)
This PR updates many packages to pass lint checks implemented using golangci-lint. The changes are mostly cosmetic except for: - netconfig/osconfig: required the use golang.org/x/net/route rather than raw system calls. - nsync: tests were refactored to avoid using testing.T from a goroutine. - ibe: needs to transition from the bn256 elliptic curve, a // nolint comment was used to defer this. - // nolint: gocyclo was used to avoid having to refactor overly complex functions in multiple packages.
- Loading branch information
1 parent
b2730bc
commit 2f9767f
Showing
117 changed files
with
810 additions
and
642 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,43 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/golang:1.14 | ||
test: | ||
executor: | ||
name: go/default | ||
tag: "1.14" | ||
steps: | ||
- checkout | ||
- go/load-cache | ||
- go/mod-download | ||
- go/save-cache | ||
- go/test: | ||
covermode: atomic | ||
failfast: true | ||
race: true | ||
|
||
lint: | ||
executor: | ||
name: go/default | ||
tag: "1.14" | ||
steps: | ||
- checkout | ||
- go/load-cache | ||
- go/mod-download | ||
- run: | ||
name: downloads | ||
command: | | ||
go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.27.0 | ||
go get github.com/matthewloring/validjson/cmd/validjson | ||
- run: | ||
name: build | ||
name: lint | ||
command: | | ||
set -eux -o pipefail | ||
go get -v -t -d ./... | ||
go test -v ./... | ||
go run github.com/golangci/golangci-lint/cmd/golangci-lint run ./... | ||
go run github.com/matthewloring/validjson/cmd/validjson ./... | ||
- go/save-cache | ||
|
||
version: 2.1 | ||
orbs: | ||
go: circleci/go@1.1.2 | ||
workflows: | ||
main: | ||
jobs: | ||
- test | ||
- lint |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.