Browse Source

Fix lint issues

tags/v2.0.0-rc1
9seconds 5 years ago
parent
commit
18e3ca77de
4 changed files with 6 additions and 7 deletions
  1. 2
    2
      cli/access.go
  2. 0
    1
      cli/access_test.go
  3. 2
    2
      cli/cli.go
  4. 2
    2
      cli/generate_secret.go

+ 2
- 2
cli/access.go View File

@@ -36,8 +36,8 @@ type accessResponseURLs struct {
36 36
 type Access struct {
37 37
 	base `kong:"-"`
38 38
 
39
-	ConfigPath string `kong:"arg,required,type='existingfile',help='Path to the configuration file.',name='config-path'"` // nolint: lll
40
-	Port       uint   `kong:"help='Port number. Default port is taken from configuration file, bind-to parameter',type:'uint'"`
39
+	ConfigPath string `kong:"arg,required,type='existingfile',help='Path to the configuration file.',name='config-path'"`       // nolint: lll
40
+	Port       uint   `kong:"help='Port number. Default port is taken from configuration file, bind-to parameter',type:'uint'"` // nolint: lll
41 41
 	Hex        bool   `kong:"help='Print secret in hex encoding.'"`
42 42
 }
43 43
 

+ 0
- 1
cli/access_test.go View File

@@ -99,7 +99,6 @@ var accressResponseJSONSchema = func() *gojsonschema.Schema {
99 99
     }
100 100
 }
101 101
     `))
102
-
103 102
 	if err != nil {
104 103
 		panic(err)
105 104
 	}

+ 2
- 2
cli/cli.go View File

@@ -3,7 +3,7 @@ package cli
3 3
 import "github.com/alecthomas/kong"
4 4
 
5 5
 type CLI struct {
6
-	GenerateSecret GenerateSecret   `kong:"cmd,help='Generate new proxy secret'"` // nolint: govet
7
-	Access         Access           `kong:"cmd,help='Print access information.'"` // nolint: govet
6
+	GenerateSecret GenerateSecret   `kong:"cmd,help='Generate new proxy secret'"`
7
+	Access         Access           `kong:"cmd,help='Print access information.'"`
8 8
 	Version        kong.VersionFlag `kong:"help='Print version.'"`
9 9
 }

+ 2
- 2
cli/generate_secret.go View File

@@ -7,9 +7,9 @@ import (
7 7
 )
8 8
 
9 9
 type GenerateSecret struct {
10
-    base `kong:"-"`
10
+	base `kong:"-"`
11 11
 
12
-	HostName string `kong:"arg,required,help='Hostname to use for domain fronting.',name='hostname'"` // nolint: lll, govet
12
+	HostName string `kong:"arg,required,help='Hostname to use for domain fronting.',name='hostname'"`
13 13
 	Hex      bool   `kong:"help='Print secret in hex encoding.'"`
14 14
 }
15 15
 

Loading…
Cancel
Save