-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch from gometalinter to golangci-lint
Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
- Loading branch information
1 parent
d5ce508
commit 63a8d84
Showing
8 changed files
with
218 additions
and
86 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 |
---|---|---|
@@ -0,0 +1,83 @@ | ||
linters-settings: | ||
govet: | ||
check-shadowing: true | ||
golint: | ||
min-confidence: 0 | ||
gocyclo: | ||
min-complexity: 20 | ||
gocognit: | ||
min-complexity: 30 | ||
maligned: | ||
suggest-new: true | ||
dupl: | ||
threshold: 100 | ||
goconst: | ||
min-len: 2 | ||
min-occurrences: 2 | ||
depguard: | ||
list-type: blacklist | ||
packages: | ||
# logging is allowed only by logutils.Log, logrus | ||
# is allowed to use only in logutils package | ||
- github.com/sirupsen/logrus | ||
misspell: | ||
locale: US | ||
ignore-words: | ||
- lustre | ||
lll: | ||
line-length: 120 | ||
goimports: | ||
local-prefixes: github.com/golangci/golangci-lint | ||
gocritic: | ||
enabled-tags: | ||
- performance | ||
- style | ||
- experimental | ||
disabled-checks: | ||
- wrapperFunc | ||
- hugeParam | ||
funlen: | ||
lines: 300 | ||
statements: 50 | ||
wsl: | ||
# If true append is only allowed to be cuddled if appending value is | ||
# matching variables, fields or types on line above. Default is true. | ||
strict-append: true | ||
# Allow calls and assignments to be cuddled as long as the lines have any | ||
# matching variables, fields or types. Default is true. | ||
allow-assign-and-call: true | ||
# Allow multiline assignments to be cuddled. Default is true. | ||
allow-multiline-assign: true | ||
# Allow case blocks to end with a whitespace. | ||
allow-case-traling-whitespace: true | ||
# Allow declarations (var) to be cuddled. | ||
allow-cuddle-declarations: true | ||
|
||
linters: | ||
enable-all: true | ||
disable: | ||
- gochecknoinits | ||
- gochecknoglobals | ||
- goimports | ||
|
||
run: | ||
skip-dirs: | ||
- test/testdata_etc | ||
|
||
issues: | ||
exclude-rules: | ||
- text: "type `typedDesc` is unused" | ||
linters: | ||
- unused | ||
- text: "consider giving a name to these results" | ||
linters: | ||
- gocritic | ||
- text: "Subprocess launched with function call as argument or cmd arguments" | ||
linters: | ||
- gosec | ||
|
||
# golangci.com configuration | ||
# https://github.com/golangci/golangci/wiki/Configuration | ||
service: | ||
prepare: | ||
- echo "here I can run custom commands, but no preparation needed for this repo" |
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
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.