Просмотр исходного кода

Fix lint issues

tags/v2.0.0-rc1
9seconds 5 лет назад
Родитель
Сommit
18e3ca77de
4 измененных файлов: 6 добавлений и 7 удалений
  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 Просмотреть файл

36
 type Access struct {
36
 type Access struct {
37
 	base `kong:"-"`
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
 	Hex        bool   `kong:"help='Print secret in hex encoding.'"`
41
 	Hex        bool   `kong:"help='Print secret in hex encoding.'"`
42
 }
42
 }
43
 
43
 

+ 0
- 1
cli/access_test.go Просмотреть файл

99
     }
99
     }
100
 }
100
 }
101
     `))
101
     `))
102
-
103
 	if err != nil {
102
 	if err != nil {
104
 		panic(err)
103
 		panic(err)
105
 	}
104
 	}

+ 2
- 2
cli/cli.go Просмотреть файл

3
 import "github.com/alecthomas/kong"
3
 import "github.com/alecthomas/kong"
4
 
4
 
5
 type CLI struct {
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
 	Version        kong.VersionFlag `kong:"help='Print version.'"`
8
 	Version        kong.VersionFlag `kong:"help='Print version.'"`
9
 }
9
 }

+ 2
- 2
cli/generate_secret.go Просмотреть файл

7
 )
7
 )
8
 
8
 
9
 type GenerateSecret struct {
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
 	Hex      bool   `kong:"help='Print secret in hex encoding.'"`
13
 	Hex      bool   `kong:"help='Print secret in hex encoding.'"`
14
 }
14
 }
15
 
15
 

Загрузка…
Отмена
Сохранить