mirror of
https://github.com/anchore/syft
synced 2024-11-10 06:14:16 +00:00
Disable lint rule prealloc
Signed-off-by: Dan Luhring <dan.luhring@anchore.com>
This commit is contained in:
parent
52e719dcb8
commit
359212e8ee
2 changed files with 4 additions and 3 deletions
|
@ -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
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue