mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
Deprecate Interfacer
linter (#1755)
This commit is contained in:
parent
eace6a11a9
commit
251b205f54
8 changed files with 38 additions and 11 deletions
2
test/testdata/interfacer.go
vendored
2
test/testdata/interfacer.go
vendored
|
@ -1,4 +1,4 @@
|
|||
//args: -Einterfacer
|
||||
//args: -Einterfacer --internal-cmd-test
|
||||
package testdata
|
||||
|
||||
import "io"
|
||||
|
|
|
@ -94,7 +94,9 @@ func (r *LintRunner) Run(args ...string) *RunResult {
|
|||
func (r *LintRunner) RunCommand(command string, args ...string) *RunResult {
|
||||
r.Install()
|
||||
|
||||
runArgs := append([]string{command}, args...)
|
||||
runArgs := append([]string{command}, "--internal-cmd-test")
|
||||
runArgs = append(runArgs, args...)
|
||||
|
||||
defer func(startedAt time.Time) {
|
||||
r.log.Infof("ran [../golangci-lint %s] in %s", strings.Join(runArgs, " "), time.Since(startedAt))
|
||||
}(time.Now())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue