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

View File

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