mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
dev: replace ioutil with io and os (#2318)
This commit is contained in:
parent
e612577dfc
commit
e5cd59a607
21 changed files with 40 additions and 51 deletions
|
@ -3,7 +3,7 @@ package golinters
|
|||
import (
|
||||
"fmt"
|
||||
"go/token"
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"log"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
@ -42,7 +42,7 @@ func NewGosec(settings *config.GoSecSettings) *goanalysis.Linter {
|
|||
|
||||
ruleDefinitions := rules.Generate(filters...)
|
||||
|
||||
logger := log.New(ioutil.Discard, "", 0)
|
||||
logger := log.New(io.Discard, "", 0)
|
||||
|
||||
analyzer := &analysis.Analyzer{
|
||||
Name: gosecName,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue