mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
dev: use goprintffuncname, gomnd and rowserrcheck (#927)
Order linters in config in alphabetical order. Support gomnd configuration.
This commit is contained in:
parent
88b6c25075
commit
6237e59c97
18 changed files with 321 additions and 277 deletions
|
@ -1,12 +0,0 @@
|
|||
package timeutils
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/golangci/golangci-lint/pkg/logutils"
|
||||
)
|
||||
|
||||
func Track(from time.Time, log logutils.Log, format string, args ...interface{}) {
|
||||
log.Infof("%s took %s", fmt.Sprintf(format, args...), time.Since(from))
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue