Skip to content

Commit

Permalink
Merge pull request #48 from fix/golang-linters
Browse files Browse the repository at this point in the history
Fix: Remove deprecated linters
  • Loading branch information
notsatan authored Oct 19, 2023
2 parents 6be60d3 + 671b6b0 commit 713df20
Showing 1 changed file with 3 additions and 25 deletions.
28 changes: 3 additions & 25 deletions {{ cookiecutter.project_name.strip() }}/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -285,26 +285,6 @@ linters-settings:
# - shadow
disable-all: false

depguard:
# linter to check if package imports are in a list of acceptable packages
list-type: blacklist # either `blacklist` or `whitelist`
include-go-root: false
# packages:
# - github.com/sirupsen/logrus

# specify an error message to output when a blacklisted package is used
# packages-with-error-message:
# - github.com/sirupsen/logrus: "logging is allowed only by logutils.Log"

ifshort:
# max length of variable declaration measured in number of lines, beyond which
# linter won't suggest using short syntax - higher priority than `max-decl-chars`
max-decl-lines: 1

# max length of variable declaration measured in number of characters, beyond which
# linter won't suggest using short syntax
max-decl-chars: 30

lll:
# max line length, lines longer will be reported. Default is 120.
line-length: 88 # tab (`\t`) is counted as 1 character by default
Expand Down Expand Up @@ -466,20 +446,16 @@ linters:
disable-all: true # disable all, selectively enable what is needed
enable:
# Defaults
- deadcode
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- structcheck
- typecheck
- unused
- varcheck

# Additional
- cyclop
- depguard
- dogsled
- dupl
- errname
Expand All @@ -498,7 +474,6 @@ linters:
- gomnd
- goprintffuncname
- gosec
- ifshort
- lll
- makezero
- misspell
Expand Down Expand Up @@ -536,3 +511,6 @@ linters:
# version
# - nilnil
# - tenv

# Might be useful for larger/coporate projects. Probably not for a hobby project
# - depguard

0 comments on commit 713df20

Please sign in to comment.