From 18e3ca77de9d0be5e8597ee60223628b54223587 Mon Sep 17 00:00:00 2001 From: 9seconds Date: Fri, 12 Mar 2021 21:59:05 +0300 Subject: [PATCH] Fix lint issues --- cli/access.go | 4 ++-- cli/access_test.go | 1 - cli/cli.go | 4 ++-- cli/generate_secret.go | 4 ++-- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/cli/access.go b/cli/access.go index 9ae7af5..95e02cc 100644 --- a/cli/access.go +++ b/cli/access.go @@ -36,8 +36,8 @@ type accessResponseURLs struct { type Access struct { base `kong:"-"` - ConfigPath string `kong:"arg,required,type='existingfile',help='Path to the configuration file.',name='config-path'"` // nolint: lll - Port uint `kong:"help='Port number. Default port is taken from configuration file, bind-to parameter',type:'uint'"` + ConfigPath string `kong:"arg,required,type='existingfile',help='Path to the configuration file.',name='config-path'"` // nolint: lll + Port uint `kong:"help='Port number. Default port is taken from configuration file, bind-to parameter',type:'uint'"` // nolint: lll Hex bool `kong:"help='Print secret in hex encoding.'"` } diff --git a/cli/access_test.go b/cli/access_test.go index 1a06351..d442d4a 100644 --- a/cli/access_test.go +++ b/cli/access_test.go @@ -99,7 +99,6 @@ var accressResponseJSONSchema = func() *gojsonschema.Schema { } } `)) - if err != nil { panic(err) } diff --git a/cli/cli.go b/cli/cli.go index 19ff668..6cfb2b4 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -3,7 +3,7 @@ package cli import "github.com/alecthomas/kong" type CLI struct { - GenerateSecret GenerateSecret `kong:"cmd,help='Generate new proxy secret'"` // nolint: govet - Access Access `kong:"cmd,help='Print access information.'"` // nolint: govet + GenerateSecret GenerateSecret `kong:"cmd,help='Generate new proxy secret'"` + Access Access `kong:"cmd,help='Print access information.'"` Version kong.VersionFlag `kong:"help='Print version.'"` } diff --git a/cli/generate_secret.go b/cli/generate_secret.go index 8a57251..224ba85 100644 --- a/cli/generate_secret.go +++ b/cli/generate_secret.go @@ -7,9 +7,9 @@ import ( ) type GenerateSecret struct { - base `kong:"-"` + base `kong:"-"` - HostName string `kong:"arg,required,help='Hostname to use for domain fronting.',name='hostname'"` // nolint: lll, govet + HostName string `kong:"arg,required,help='Hostname to use for domain fronting.',name='hostname'"` Hex bool `kong:"help='Print secret in hex encoding.'"` }