Disable lint rule prealloc

Signed-off-by: Dan Luhring <dan.luhring@anchore.com>
This commit is contained in:
Dan Luhring 2020-12-23 11:35:17 -05:00
parent 52e719dcb8
commit 359212e8ee
No known key found for this signature in database
GPG key ID: 9CEE23D079426CEF
2 changed files with 4 additions and 3 deletions

View file

@ -31,7 +31,6 @@ linters:
- misspell
- nakedret
- nolintlint
- prealloc
- rowserrcheck
- scopelint
- staticcheck
@ -55,5 +54,6 @@ linters:
# - lll # without a way to specify per-line exception cases, this is not usable
# - maligned # this is an excellent linter, but tricky to optimize and we are not sensitive to memory layout optimizations
# - nestif
# - prealloc # following this rule isn't consistently a good idea, as it sometimes forces unnecessary allocations that result in less idiomatic code
# - testpackage
# - wsl
# - wsl

View file

@ -2,9 +2,10 @@ package source
import (
"fmt"
"github.com/anchore/syft/internal/file"
"io/ioutil"
"os"
"github.com/anchore/syft/internal/file"
)
var _ Resolver = (*MockResolver)(nil)