-
Notifications
You must be signed in to change notification settings - Fork 12
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
54 changed files
with
3,481 additions
and
3,120 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,94 @@ | ||
run: | ||
deadline: 4m | ||
build-tags: | ||
- netgo | ||
skip-files: | ||
- jobqueue/static.go | ||
modules-download-mode: readonly | ||
|
||
output: | ||
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number" | ||
format: colored-line-number | ||
|
||
linters-settings: | ||
errcheck: | ||
check-type-assertions: false | ||
check-blank: true | ||
govet: | ||
check-shadowing: true | ||
goimports: | ||
# put imports beginning with prefix after 3rd-party packages; | ||
# it's a comma-separated list of prefixes | ||
# local-prefixes: github.com/VertebrateResequencing/wr | ||
maligned: | ||
# print struct with more effective memory layout or not, false by default | ||
suggest-new: true | ||
unused: | ||
# treat code as a program (not a library) and report unused exported identifiers; default is false. | ||
# XXX: if you enable this setting, unused will report a lot of false-positives in text editors: | ||
# if it's called for subdir of a project it can't find funcs usages. All text editor integrations | ||
# with golangci-lint call it on a directory with the changed file. | ||
check-exported: false | ||
unparam: | ||
# Inspect exported functions, default is false. Set to true if no external program/library imports your code. | ||
# XXX: if you enable this setting, unparam will report a lot of false-positives in text editors: | ||
# if it's called for subdir of a project it can't find external interfaces. All text editor integrations | ||
# with golangci-lint call it on a directory with the changed file. | ||
check-exported: false | ||
nakedret: | ||
max-func-lines: 30 | ||
prealloc: | ||
simple: true | ||
range-loops: true | ||
for-loops: true | ||
|
||
linters: | ||
enable-all: true | ||
# enable: | ||
# - deadcode | ||
# - errcheck | ||
# - gosimple | ||
# - govet | ||
# - ineffassign | ||
# - staticcheck | ||
# - structcheck | ||
# - typecheck | ||
# - unused | ||
# - varcheck | ||
# - goconst | ||
# - gocritic | ||
# - goimports | ||
# - golint | ||
# - gosec | ||
# - interfacer | ||
# - maligned | ||
# - misspell | ||
# - nakedret | ||
# - prealloc | ||
# - scopelint | ||
# - stylecheck | ||
# - unconvert | ||
# - unparam | ||
disable-all: false | ||
disable: | ||
- depguard | ||
- dupl | ||
- gochecknoglobals | ||
- gochecknoinits | ||
- gocyclo | ||
- gofmt | ||
- lll | ||
|
||
issues: | ||
exclude-rules: | ||
# Exclude some linters from running on tests files. | ||
- path: _test\.go | ||
linters: | ||
- gocyclo | ||
- errcheck | ||
- dupl | ||
- gosec | ||
max-issues-per-linter: 0 | ||
max-same-issues: 0 | ||
new: true | ||
|
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,45 @@ | ||
run: | ||
deadline: 4m | ||
build-tags: | ||
- netgo | ||
skip-files: | ||
- jobqueue/static.go | ||
modules-download-mode: readonly | ||
|
||
output: | ||
format: colored-line-number | ||
|
||
linters-settings: | ||
gocyclo: | ||
# minimal code complexity to report, 30 by default (but we recommend 10-20) | ||
min-complexity: 10 | ||
dupl: | ||
# tokens count to trigger issue, 150 by default | ||
threshold: 100 | ||
|
||
linters: | ||
disable-all: true | ||
enable-all: false | ||
enable: | ||
- dupl | ||
- gocyclo | ||
- gochecknoglobals | ||
- gochecknoinits | ||
|
||
issues: | ||
exclude-rules: | ||
- path: _test\.go | ||
linters: | ||
- gocyclo | ||
- dupl | ||
- gochecknoglobals | ||
- gochecknoinits | ||
- path: cmd/ | ||
linters: | ||
- gocyclo | ||
- dupl | ||
- gochecknoglobals | ||
- gochecknoinits | ||
|
||
new: true | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,17 @@ | ||
{ | ||
"go.lintOnSave": "package", | ||
"editor.formatOnSave": true, | ||
"go.lintTool": "gometalinter", | ||
"go.vetOnSave": "workspace", | ||
"go.formatTool": "goimports", | ||
"go.lintFlags": [ | ||
"--vendor", | ||
"--disable-all", | ||
"--enable=unconvert", | ||
"--enable=interfacer", | ||
"--enable=gotypex", | ||
"--enable=structcheck", | ||
"--enable=gofmt", | ||
"--enable=varcheck", | ||
"--enable=gotype", | ||
"--enable=goconst", | ||
"--enable=deadcode", | ||
"--enable=vet", | ||
"--enable=unparam", | ||
"--enable=golint", | ||
"--enable=goimports", | ||
"--enable=gosec", | ||
"--enable=megacheck", | ||
"--enable=ineffassign", | ||
"--enable=misspell", | ||
"--enable=nakedret", | ||
"--enable=vetshadow", | ||
"--enable=errcheck", | ||
"--json", | ||
"--fast", | ||
"--deadline", | ||
"30s" | ||
] | ||
"[go]": { | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": true | ||
}, | ||
}, | ||
"go.formatTool": "goimports", | ||
"go.formatFlags": [ | ||
"-w" | ||
], | ||
"go.lintOnSave": "package", | ||
"go.lintTool": "golangci-lint", | ||
"go.lintFlags": [ | ||
"--fast" | ||
] | ||
} |
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.