Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardottt committed Sep 4, 2022
1 parent bb78a98 commit 60f6d59
Show file tree
Hide file tree
Showing 3 changed files with 136 additions and 63 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
uses: golangci/golangci-lint-action@v3
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.29
version: v1.49

# Optional: working directory, useful for monorepos
# working-directory: somedir
Expand Down
63 changes: 51 additions & 12 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,54 @@
linters:
# Enable all available linters.
# Default: false
enable-all: true
disable:
- structcheck
- maligned
- deadcode
- scopelint
- nosnakecase
- varcheck
- exhaustivestruct
- interfacer
- golint
- ifshort
disable-all: true
enable:
- asciicheck
- bodyclose
- depguard
- dogsled
- dupl
- errcheck
- exhaustive
- exportloopref
- gochecknoglobals
- gochecknoinits
- goconst
- gocritic
- godot
- godox
- goerr113
- goheader
- gomnd
- gomodguard
- goprintffuncname
- gosimple
- govet
- ineffassign
- lll
- misspell
- nakedret
- nolintlint
- prealloc
- rowserrcheck
- sqlclosecheck
- staticcheck
- stylecheck
- testpackage
- typecheck
- unconvert
- unparam
- unused
- whitespace
- wsl

linters-settings:
wsl:
strict-append: false
enforce-err-cuddling: true

gomnd:
# Values always ignored: "1", "1.0", "0" and "0.0"
# Default: []
ignored-numbers:
- '2'
Loading

0 comments on commit 60f6d59

Please sign in to comment.