-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix golangci-lint config to use default golint (#2284)
golangci-lint disables some checks for golint, including checks for well-formed comments on all exported symbols This change disables the golangci-lint's `exclude-use-default` setting, to run golint with default settings. Also introduce a `.golangci.yml` file to centralize config. Signed-off-by: Andrew Seigner <siggy@buoyant.io>
- Loading branch information
Showing
3 changed files
with
16 additions
and
5 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 |
---|---|---|
|
@@ -13,6 +13,6 @@ web/app/yarn-error.log | |
.protoc | ||
.gorun | ||
.dep* | ||
.golangci* | ||
.golangci-lint* | ||
**.gogen* | ||
**/*.swp |
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,14 @@ | ||
issues: | ||
exclude-use-default: false | ||
linters: | ||
enable: | ||
- gofmt | ||
- golint | ||
disable: | ||
- deadcode | ||
- errcheck | ||
- gosimple | ||
- staticcheck | ||
- structcheck | ||
- unused | ||
- varcheck |
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