#89 Adjust golangci-lint configuration
as it does not support generics at this moment. See https://github.com/golangci/golangci-lint/issues/2649
This commit is contained in:
@ -18,6 +18,10 @@ linters-settings:
|
||||
- style
|
||||
disabled-checks:
|
||||
- dupImport # https://github.com/go-critic/go-critic/issues/845
|
||||
- hugeParam # No golang generic support. See https://github.com/golangci/golangci-lint/issues/2649
|
||||
- rangeValCopy # ^
|
||||
- typeDefFirst # |
|
||||
- paramTypeCombine # |
|
||||
gocyclo:
|
||||
min-complexity: 15
|
||||
gomnd:
|
||||
|
@ -97,7 +97,7 @@ func (s *localStorage[T]) Sample() (o T, ok bool) {
|
||||
delete(s.objects, key)
|
||||
return object, true
|
||||
}
|
||||
return
|
||||
return o, false
|
||||
}
|
||||
|
||||
func (s *localStorage[T]) Length() uint {
|
||||
|
Reference in New Issue
Block a user