happy linting

This commit is contained in:
Marvin Preuss 2022-01-07 20:17:12 +01:00
parent e4ec29b083
commit c35b3989a9
5 changed files with 9 additions and 11 deletions

View File

@ -38,11 +38,11 @@ builds:
pre:
- make wireguard-go GOARCH={{.Arch}}
- id: 386
- id: "386"
env:
- CGO_ENABLED=0
goarch:
- 386
- "386"
goos:
- linux
ldflags:
@ -62,7 +62,7 @@ builds:
goarch:
- arm
goarm:
- 5
- "5"
goos:
- linux
ldflags:
@ -82,7 +82,7 @@ builds:
goarch:
- arm
goarm:
- 6
- "6"
goos:
- linux
ldflags:
@ -102,7 +102,7 @@ builds:
goarch:
- arm
goarm:
- 7
- "7"
goos:
- linux
ldflags:

View File

@ -1,4 +1,4 @@
// nolint:gochecknoglobals,golint,stylecheck
// nolint:golint
package assets
import _ "embed"

View File

@ -1,4 +1,4 @@
// nolint: gochecknoglobals, exhaustivestruct, gochecknoinits
// nolint:gochecknoglobals,exhaustivestruct,gochecknoinits
package cmd
import (
@ -102,7 +102,7 @@ var showCmd = &cobra.Command{
},
}
func loadConfig(cfg string) (*wgquick.Config, logrus.FieldLogger) {
func loadConfig(cfg string) (*wgquick.Config, logrus.FieldLogger) { //nolint:ireturn
log := logrus.WithField("iface", iface)
_, err := os.Stat(cfg)

View File

@ -2,8 +2,6 @@ package main
import "go.xsfx.dev/wg-quicker/cmd"
//go:generate go-bindata -pkg assets -o assets/bindata.go -nomemcopy third_party/wireguard-go/wireguard-go
func main() {
cmd.Execute()
}

View File

@ -1,4 +1,4 @@
// nolint:gochecknoglobals,paralleltest,goerr113,funlen
// nolint:paralleltest,goerr113,funlen
package pidof_test
import (