Skip to content
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
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ workflows:
jobs:
- test
- golangci-lint/lint:
tag: v1.52.2
tag: v1.55.2
10 changes: 10 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ linters:
- maligned # deprecated and replaced by official fieldalignment.

linters-settings:
depguard:
rules:
# Only allow imports from the stdlib & this module
all:
list-mode: strict
files:
- $all
allow:
- $gostd
- github.com/percivalalb/sipuri
varnamelen:
max-distance: 17 # default of 5 makes the linter annoying to use.

Expand Down
2 changes: 1 addition & 1 deletion errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (e EscapeError) Error() string {

// Is makes EscapeError useable with errors.Is.
func (e EscapeError) Is(input error) bool {
_, ok := input.(EscapeError) //nolint:errorlint
_, ok := input.(EscapeError)

return ok
}