-
Notifications
You must be signed in to change notification settings - Fork 9
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
1 parent
084ed3f
commit 5957e3d
Showing
11 changed files
with
263 additions
and
187 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# inspired by: https://github.com/golangci/golangci-lint/blob/master/.golangci.yml | ||
|
||
run: | ||
go: "1.18" | ||
|
||
linters-settings: | ||
# dupl: | ||
# threshold: 100 | ||
funlen: | ||
lines: 100 | ||
statements: 50 | ||
golint: | ||
min-confidence: 0 | ||
lll: | ||
line-length: 125 | ||
goconst: | ||
min-len: 2 | ||
min-occurences: 2 | ||
misspell: | ||
locale: US | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- asciicheck | ||
# - bidichk | ||
# - bodyclose | ||
# - contextcheck | ||
- deadcode | ||
- depguard | ||
- dogsled | ||
# - dupl | ||
# - durationcheck | ||
- errcheck | ||
# - errname | ||
- exportloopref | ||
- funlen | ||
- gochecknoinits | ||
- goconst | ||
- gocritic | ||
- gocyclo | ||
- gofmt | ||
- goimports | ||
- gomnd | ||
- goprintffuncname | ||
- gosec | ||
- gosimple | ||
- govet | ||
# - ifshort | ||
# - importas | ||
- ineffassign | ||
- lll | ||
# - makezero | ||
- misspell | ||
- nakedret | ||
# - nilerr | ||
# - nilnil | ||
# - noctx | ||
- nolintlint | ||
# - predeclared | ||
# - revive | ||
- staticcheck | ||
- structcheck | ||
- stylecheck | ||
# - tagliatelle | ||
# - thelper | ||
- typecheck | ||
- unconvert | ||
- unparam | ||
- unused | ||
- varcheck | ||
# - wastedassign | ||
- whitespace | ||
|
||
# don't enable: | ||
# - prealloc |
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,7 @@ | ||
{ | ||
"recommendations": [ | ||
"streetsidesoftware.code-spell-checker", | ||
"stkb.rewrap", | ||
"golang.go" | ||
] | ||
} |
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,29 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"editor.formatOnPaste": true, | ||
"[go]": { | ||
"editor.tabSize": 4, | ||
"editor.detectIndentation": false, | ||
"editor.snippetSuggestions": "none", | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": true | ||
} | ||
}, | ||
"go.autocompleteUnimportedPackages": true, | ||
"go.formatTool": "goimports", | ||
"go.lintTool": "golangci-lint", | ||
"go.buildOnSave": "workspace", | ||
"go.lintOnSave": "workspace", | ||
"go.vetOnSave": "package", | ||
"gopls": { | ||
"usePlaceholders": true, // add parameter placeholders when completing a function | ||
// Experimental settings | ||
"completeUnimported": true, // autocomplete unimported packages | ||
"deepCompletion": true // enable deep completion | ||
}, | ||
"go.useLanguageServer": true, | ||
"cSpell.words": [ | ||
"geoblock" | ||
] | ||
} |
Oops, something went wrong.