OpenBazaar / openbazaar-go

OpenBazaar 2.0 Server Daemon in Go
MIT License
993 stars 283 forks source link

Finish adding linters / linter cleanup #1169

Open tyler-smith opened 6 years ago

tyler-smith commented 6 years ago

In order to improve the overall quality of the repo, we are enabling the linter within travis but required our code to be made compliant with the lint rules before enabling each ruleset. Grouped by level of effort required.

The linter used by travis can be installed with curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.10 and executed using $GOPATH/bin/golangci-lint run. Linters may be enabled and disabled within .golangci.yml

Low

Medium (these are already in progress)

High

cpacia commented 6 years ago

Is this completely done?

placer14 commented 6 years ago

Not yet. I updated it to be current.

ulshell commented 6 years ago

I want to work on this

tyler-smith commented 6 years ago

@ulshell That'd be great, thanks. A good place to start is probably finishing up megacheck or prealloc. I have them started but havn't had time to finish them.

Megacheck branch Prealloc branch