dev: replace ioutil with io and os (#2318)

This commit is contained in:
Benjamin 2021-11-02 03:21:26 +08:00 committed by GitHub
parent e612577dfc
commit e5cd59a607
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 40 additions and 51 deletions

View file

@ -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,