File tree Expand file tree Collapse file tree 7 files changed +17
-0
lines changed Expand file tree Collapse file tree 7 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ linters-settings:
36
36
37
37
linters :
38
38
enable :
39
+ - lll
39
40
- gofmt
40
41
- tagliatelle
41
42
- whitespace
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ var ErrVersionIncompatible = fmt.Errorf("litd version is not compatible " +
26
26
"with the minimum version required by the autopilot server" )
27
27
28
28
// Config holds the configuration options for the autopilot server client.
29
+ //
30
+ //nolint:lll
29
31
type Config struct {
30
32
// Disable will disable the autopilot client.
31
33
Disable bool `long:"disable" description:"disable the autopilot client"`
Original file line number Diff line number Diff line change @@ -147,6 +147,8 @@ var (
147
147
// Config is the main configuration struct of lightning-terminal. It contains
148
148
// all config items of its enveloping subservers, each prefixed with their
149
149
// daemon's short name.
150
+ //
151
+ //nolint:lll
150
152
type Config struct {
151
153
ShowVersion bool `long:"version" description:"Display version information and exit."`
152
154
Original file line number Diff line number Diff line change 1
1
package firewall
2
2
3
3
// Config holds all config options for the firewall.
4
+ //
5
+ //nolint:lll
4
6
type Config struct {
5
7
RequestLogger * RequestLoggerConfig `group:"request-logger" namespace:"request-logger" description:"request logger settings"`
6
8
}
7
9
8
10
// RequestLoggerConfig holds all the config options for the request logger.
11
+ //
12
+ //nolint:lll
9
13
type RequestLoggerConfig struct {
10
14
RequestLoggerLevel RequestLoggerLevel `long:"level" description:"Set the request logger level. Options include 'all', 'full' and 'interceptor''"`
11
15
}
Original file line number Diff line number Diff line change @@ -1308,6 +1308,8 @@ func TestHideBool(t *testing.T) {
1308
1308
1309
1309
// TestObfuscateConfig tests that we substitute substrings in the config
1310
1310
// correctly.
1311
+ //
1312
+ //nolint:lll
1311
1313
func TestObfuscateConfig (t * testing.T ) {
1312
1314
tests := []struct {
1313
1315
name string
Original file line number Diff line number Diff line change 9
9
)
10
10
11
11
// Config is the configuration struct for the RPC middleware.
12
+ //
13
+ //nolint:lll
12
14
type Config struct {
13
15
Disabled bool `long:"disabled" description:"Disable the RPC middleware"`
14
16
InterceptTimeout time.Duration `long:"intercept-timeout" description:"The maximum time the RPC middleware is allowed to take for intercepting each RPC request"`
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ package subservers
2
2
3
3
// RemoteConfig holds the configuration parameters that are needed when running
4
4
// LiT in the "remote" lnd mode.
5
+ //
6
+ //nolint:lll
5
7
type RemoteConfig struct {
6
8
LitLogDir string `long:"lit-logdir" description:"For lnd remote mode only: Directory to log output."`
7
9
LitMaxLogFiles int `long:"lit-maxlogfiles" description:"For lnd remote mode only: Maximum logfiles to keep (0 for no rotation)"`
@@ -18,6 +20,8 @@ type RemoteConfig struct {
18
20
19
21
// RemoteDaemonConfig holds the configuration parameters that are needed to
20
22
// connect to a remote daemon like lnd for example.
23
+ //
24
+ //nolint:lll
21
25
type RemoteDaemonConfig struct {
22
26
// RPCServer is host:port that the remote daemon's RPC server is
23
27
// listening on.
You can’t perform that action at this time.
0 commit comments