happy linting

master
Marvin Preuss 2 years ago
parent e4ec29b083
commit c35b3989a9

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

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

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

@ -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()
}

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

Loading…
Cancel
Save