Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Open sidebar
Tiger Ton
Osmosis_Sync
Commits
d2136a3c
Commit
d2136a3c
authored
2 years ago
by
Jacob Gadikian
Browse files
Options
Download
Email Patches
Plain Diff
bring in visual studio code settings and golangci-lint
parent
6a557551
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.golangci.yml
+99
-0
.golangci.yml
.vscode/settings.json
+27
-0
.vscode/settings.json
with
126 additions
and
0 deletions
+126
-0
.golangci.yml
0 → 100644
+
99
-
0
View file @
d2136a3c
run
:
tests
:
false
# # timeout for analysis, e.g. 30s, 5m, default is 1m
# timeout: 5m
linters
:
disable-all
:
true
# Enable specific linter
# https://golangci-lint.run/usage/linters/#enabled-by-default-linters
enable
:
-
asciicheck
-
bidichk
-
bodyclose
-
contextcheck
# - cyclop
# - deadcode <- re-enable in another pr
-
depguard
# - dogsled <- disabled because we would like to participate in the iditerod
# - dupl <- really just catches cli stub text
-
durationcheck
-
errcheck
-
errname
# - errorlint <- later
# - exhaustive <- too picky
# - exhaustivestruct <- disabled because we don't want to use every element of every struct
-
exportloopref
# - forbidigo <- forbids fmt.Print* by default
-
forcetypeassert
# - funlen <- some of our functions are longer than this by necessity
# - gci <- questionable utility
# - gochecknoglobals <- disabled because we want some globals
# - gochecknoinits <- disabled because we want to use init()
# - gocognit <- disabled for same reason as gocyclo
-
goconst
# - gocritic <- re enable later to catch capitalized local variables
# - gocyclo <- disabled because it won't work with how we cosmos
# - godot
# - godox <- detects TODO/BUG/FIXME and we may wantnthis later but isn't appropriate now
# - goerr113 <- disabled due to lack of comprehension
-
gofmt
# - gofumpt
-
goheader
-
goimports
# - gomoddirectives <- disables replaces
-
gomodguard
-
goprintffuncname
# - gosec <- triggers too much for this round and should be re-enabled later
# - gosimple <- later
-
govet
# - ifshort <- seems to be of questionable value
-
importas
-
ineffassign
# - ireturn <- disabled because we want to return interfaces
# - lll <- disabled as it is a bit much. Maybe we have a desired limit?
-
makezero
-
misspell
-
nakedret
# - nestif <- ?
-
nilerr
-
nilnil
# - nlreturn <- disabled as it doesn't auto-fix something simple and doesn't add anything useful
-
noctx
# - nolintlint <- disabled because we use nolint in some places
-
paralleltest
# - prealloc <- disabled because it makes simple code complicated
# - predeclared <- later
-
promlinter
# - revive <- temporarily disabled while jacob figures out how to make poolId not trigger it.
-
rowserrcheck
-
sqlclosecheck
# - staticcheck <- later
# - structcheck <- later
# - stylecheck <- enable later, atriggers on underscores in variable names and on poolId
# - tagliatelle <- disabled for defying cosmos idiom
-
tenv
-
testpackage
# - thelper <- later
-
tparallel
-
typecheck
-
unconvert
# - unparam <- looks for unused parameters (enable later)
# - unused <- looks for unused variables (enable later)
# - varcheck <- later
# - varnamelen <- disabled because defies idiom
# - wastedassign
-
whitespace
# - wrapcheck
# - wsl
issues
:
exclude-rules
:
-
path
:
bench_test\.go
linters
:
-
errcheck
-
path
:
client/docs
linters
:
-
all
max-issues-per-linter
:
10000
max-same-issues
:
10000
This diff is collapsed.
Click to expand it.
.vscode/settings.json
0 → 100644
+
27
-
0
View file @
d2136a3c
{
"tabnine.experimentalAutoImports"
:
true
,
"go.lintTool"
:
"golangci-lint"
,
"go.formatTool"
:
"gofumports"
,
"go.useLanguageServer"
:
true
,
"[go.mod]"
:
{
"editor.formatOnSave"
:
true
,
"editor.codeActionsOnSave"
:
{
"source.organizeImports"
:
true
}
},
"[go]"
:
{
"editor.snippetSuggestions"
:
"none"
,
"editor.formatOnSave"
:
true
,
"editor.codeActionsOnSave"
:
{
"source.organizeImports"
:
true
}
},
"gopls"
:
{
"local"
:
"github.com/osmosis-labs/osmosis"
},
"files.eol"
:
"
\n
"
,
"[proto3]"
:
{
"editor.defaultFormatter"
:
"xaver.clang-format"
},
"clang-format.style"
:
"{BasedOnStyle: Google, IndentWidth: 2, ColumnLimit: 120, AlignConsecutiveAssignments: true, AlignConsecutiveDeclarations: true, SpacesInSquareBrackets: true}"
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets