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

View File

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

View File

@ -1,4 +1,4 @@
// nolint: gochecknoglobals, exhaustivestruct, gochecknoinits // nolint:gochecknoglobals,exhaustivestruct,gochecknoinits
package cmd package cmd
import ( 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) log := logrus.WithField("iface", iface)
_, err := os.Stat(cfg) _, err := os.Stat(cfg)

View File

@ -2,8 +2,6 @@ package main
import "go.xsfx.dev/wg-quicker/cmd" 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() { func main() {
cmd.Execute() cmd.Execute()
} }

View File

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