Skip to content

Commit

Permalink
chore: added golinter yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
Slug-Boi committed Jul 1, 2024
1 parent ea0c186 commit 9ce3249
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Taken from https://github.com/analog-apps/spotify-viewer
linters-settings:
errcheck:
check-type-assertions: true
goconst:
min-len: 2
min-occurrences: 3
gocritic:
enabled-tags:
- diagnostic
- experimental
- opinionated
- performance
- style
govet:
shadow: true
enable:
- fieldalignment
nolintlint:
require-explanation: true
require-specific: true

linters:
disable-all: true
enable:
- bodyclose
# TODO: Enable later when you have time to configure
# - depguard
- dogsled
- dupl
- errcheck
- exportloopref
- exhaustive
- goconst
- gocritic
- gofmt
- goimports
- gomnd
- gocyclo
- gosec
- gosimple
- govet
- ineffassign
- misspell
- nolintlint
- nakedret
- prealloc
- predeclared
- revive
- staticcheck
- stylecheck
- thelper
- tparallel
- typecheck
- unconvert
- unparam
- unused
- whitespace
- wsl
issues:
exclude-rules:
- linters:
- gocritic
text: "sloppyReassign:"

run:
issues-exit-code: 1

0 comments on commit 9ce3249

Please sign in to comment.