Skip to content

Commit

Permalink
Disable 'depguard' (#9)
Browse files Browse the repository at this point in the history
The linter 'depguard' changed behavior and now blocks un-listed packages
during linting. We are disabling this linter for now, until we decide
how to best use it.
  • Loading branch information
eric-reis committed Jul 31, 2023
1 parent c9a3a21 commit bd29404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ run:
linters:
disable-all: true
enable:
#- depguard # Go linter that checks if package imports are in a list of acceptable packages
#- exhaustive # check exhaustiveness of enum switch statements
#- funlen # Tool for detection of long functions
#- gocognit # Computes and checks the cognitive complexity of functions
Expand All @@ -17,7 +18,6 @@ linters:
#- lll # Reports long lines
#- scopelint # Scopelint checks for unpinned variables in go programs
- bodyclose # checks whether HTTP response body is closed successfully
- depguard # Go linter that checks if package imports are in a list of acceptable packages
- dupl # Tool for code clone detection
- errcheck # Errcheck is a program for checking for unchecked errors in go programs. These unchecked errors can be critical bugs in some cases
- exportloopref # checks for pointers to enclosing loop variables
Expand Down

0 comments on commit bd29404

Please sign in to comment.