Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/linting added golangci-lint configuration and some linting run. #393

Merged
merged 3 commits into from
Aug 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 32 additions & 31 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,21 @@ linters:
# Enable specific linter
# https://golangci-lint.run/usage/linters/#enabled-by-default
enable:
# - asasalint
# - asciicheck
# - bidichk
# - bodyclose
# - containedctx
- asasalint
- asciicheck
- bidichk
- bodyclose
- containedctx
- contextcheck
# - contextcheck
# - cyclop
# - deadcode
# - decorder
- deadcode
- decorder
# - depguard
# - dogsled
- dogsled
# - dupl
# - dupword
# - durationcheck
- durationcheck
# - errcheck
# - errchkjson
# - errname
Expand All @@ -52,11 +53,11 @@ linters:
# - godot
# - godox
# - goerr113
# - gofmt
- gofmt
# - gofumpt
# - goheader
# - goimports
# - golint
- golint
# - gomnd
# - gomoddirectives
# - gomodguard
Expand Down Expand Up @@ -85,7 +86,7 @@ linters:
# - nilerr
# - nilnil
- nlreturn
# - noctx
- noctx
# - nolintlint
# - nonamedreturns
# - nosnakecase
Expand All @@ -112,10 +113,10 @@ linters:
# - typecheck
# - unconvert
# - unparam
# - unused
- unused
# - usestdlibvars
# - varcheck
# - varnamelen
- varcheck
- varnamelen
# - wastedassign
# - whitespace
# - wrapcheck
Expand All @@ -127,20 +128,20 @@ linters:
# Disable specific linter
# https://golangci-lint.run/usage/linters/#disabled-by-default
disable:
- asasalint
- asciicheck
- bidichk
- bodyclose
- containedctx
- contextcheck
# - asasalint
# - asciicheck
# - bidichk
# - bodyclose
# - containedctx
# - contextcheck
- cyclop
- deadcode
- decorder
# - deadcode
# - decorder
- depguard
- dogsled
# - dogsled
- dupl
- dupword
- durationcheck
# - durationcheck
- errcheck
- errchkjson
- errname
Expand All @@ -165,11 +166,11 @@ linters:
- godot
- godox
- goerr113
- gofmt
# - gofmt
- gofumpt
- goheader
- goimports
- golint
# - golint
- gomnd
- gomoddirectives
- gomodguard
Expand Down Expand Up @@ -198,7 +199,7 @@ linters:
- nilerr
- nilnil
# - nlreturn
- noctx
# - noctx
- nolintlint
- nonamedreturns
- nosnakecase
Expand All @@ -225,10 +226,10 @@ linters:
- typecheck
- unconvert
- unparam
- unused
# - unused
- usestdlibvars
- varcheck
- varnamelen
# - varcheck
# - varnamelen
- wastedassign
- whitespace
- wrapcheck
Expand Down
Loading
Loading