Fix lint issues

This commit is contained in:
9seconds
2021-03-12 21:59:05 +03:00
parent 185baf6bc9
commit 18e3ca77de
4 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ type Access struct {
base `kong:"-"` base `kong:"-"`
ConfigPath string `kong:"arg,required,type='existingfile',help='Path to the configuration file.',name='config-path'"` // nolint: lll 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'"` 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.'"` Hex bool `kong:"help='Print secret in hex encoding.'"`
} }
-1
View File
@@ -99,7 +99,6 @@ var accressResponseJSONSchema = func() *gojsonschema.Schema {
} }
} }
`)) `))
if err != nil { if err != nil {
panic(err) panic(err)
} }
+2 -2
View File
@@ -3,7 +3,7 @@ package cli
import "github.com/alecthomas/kong" import "github.com/alecthomas/kong"
type CLI struct { type CLI struct {
GenerateSecret GenerateSecret `kong:"cmd,help='Generate new proxy secret'"` // nolint: govet GenerateSecret GenerateSecret `kong:"cmd,help='Generate new proxy secret'"`
Access Access `kong:"cmd,help='Print access information.'"` // nolint: govet Access Access `kong:"cmd,help='Print access information.'"`
Version kong.VersionFlag `kong:"help='Print version.'"` Version kong.VersionFlag `kong:"help='Print version.'"`
} }
+1 -1
View File
@@ -9,7 +9,7 @@ import (
type GenerateSecret struct { 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.'"` Hex bool `kong:"help='Print secret in hex encoding.'"`
} }