-
-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add tools. update golangci-lint. fix linting issues
- Loading branch information
Showing
8 changed files
with
454 additions
and
61 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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// +build tools | ||
|
||
// This file ensures tool dependencies are kept in sync. This is the | ||
// recommended way of doing this according to | ||
// https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module | ||
// To install the following tools at the version used by this repo run: | ||
// $ make tools | ||
// or | ||
// $ go generate -tags tools tools/tools.go | ||
|
||
package tools | ||
|
||
// NOTE: This must not be indented, so to stop goimports from trying to be | ||
// helpful, it's separated out from the import block below. Please try to keep | ||
// them in the same order. | ||
//go:generate go install github.com/mfridman/tparse | ||
//go:generate go install golang.org/x/tools/cmd/goimports | ||
//go:generate go install github.com/golangci/golangci-lint/cmd/golangci-lint | ||
|
||
import ( | ||
_ "github.com/mfridman/tparse" | ||
|
||
_ "github.com/golangci/golangci-lint/cmd/golangci-lint" | ||
|
||
_ "golang.org/x/tools/cmd/goimports" | ||
) |