forked from purcell/emacs.d
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
69 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# .golangci.yml | ||
run: | ||
# timeout for the whole golangci-lint run, including linters loading, analyzing source code, etc | ||
timeout: 10m | ||
|
||
issues: | ||
# Code is grouped by package for the application. If you have multiple projects inside a repository, this value can be `folder` | ||
# You can also have issues grouped by default "none" | ||
# Valid values are: package, folder, file | ||
# Default is "package" | ||
grouping: package | ||
|
||
exclude-rules: | ||
# Exclude some linters from all packages | ||
- linters: | ||
- errcheck | ||
text: "SA4006" # exclude `SA4006` from `errcheck` | ||
|
||
linters-settings: | ||
govet: | ||
check-shadowing: true | ||
|
||
# configuration for `golint` | ||
golint: | ||
min-confidence: 0.8 | ||
|
||
gocyclo: | ||
min-complexity: 10 | ||
|
||
misspell: | ||
locale: US | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- govet | ||
- golint | ||
- gocyclo | ||
- misspell | ||
|
||
|
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