mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
go1.12: add nolint for gochecknoinits in mod_version.go
This commit is contained in:
parent
d3bc69dc5b
commit
407c3f0465
1 changed files with 1 additions and 0 deletions
|
@ -7,6 +7,7 @@ import (
|
|||
"runtime/debug"
|
||||
)
|
||||
|
||||
//nolint:gochecknoinits
|
||||
func init() {
|
||||
if info, available := debug.ReadBuildInfo(); available {
|
||||
if date == "" && info.Main.Version != "(devel)" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue