Skip to content

Commit 1a389d1

Browse files
authored
Merge pull request #977 from ellemouton/lll
golangci: enable line length linter
2 parents 7463cd6 + a22689c commit 1a389d1

File tree

7 files changed

+17
-0
lines changed

7 files changed

+17
-0
lines changed

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ linters-settings:
3636

3737
linters:
3838
enable:
39+
- lll
3940
- gofmt
4041
- tagliatelle
4142
- whitespace

autopilotserver/client.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ var ErrVersionIncompatible = fmt.Errorf("litd version is not compatible " +
2626
"with the minimum version required by the autopilot server")
2727

2828
// Config holds the configuration options for the autopilot server client.
29+
//
30+
//nolint:lll
2931
type Config struct {
3032
// Disable will disable the autopilot client.
3133
Disable bool `long:"disable" description:"disable the autopilot client"`

config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ var (
147147
// Config is the main configuration struct of lightning-terminal. It contains
148148
// all config items of its enveloping subservers, each prefixed with their
149149
// daemon's short name.
150+
//
151+
//nolint:lll
150152
type Config struct {
151153
ShowVersion bool `long:"version" description:"Display version information and exit."`
152154

firewall/config.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
package firewall
22

33
// Config holds all config options for the firewall.
4+
//
5+
//nolint:lll
46
type Config struct {
57
RequestLogger *RequestLoggerConfig `group:"request-logger" namespace:"request-logger" description:"request logger settings"`
68
}
79

810
// RequestLoggerConfig holds all the config options for the request logger.
11+
//
12+
//nolint:lll
913
type RequestLoggerConfig struct {
1014
RequestLoggerLevel RequestLoggerLevel `long:"level" description:"Set the request logger level. Options include 'all', 'full' and 'interceptor''"`
1115
}

firewall/privacy_mapper_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,6 +1308,8 @@ func TestHideBool(t *testing.T) {
13081308

13091309
// TestObfuscateConfig tests that we substitute substrings in the config
13101310
// correctly.
1311+
//
1312+
//nolint:lll
13111313
func TestObfuscateConfig(t *testing.T) {
13121314
tests := []struct {
13131315
name string

rpcmiddleware/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ const (
99
)
1010

1111
// Config is the configuration struct for the RPC middleware.
12+
//
13+
//nolint:lll
1214
type Config struct {
1315
Disabled bool `long:"disabled" description:"Disable the RPC middleware"`
1416
InterceptTimeout time.Duration `long:"intercept-timeout" description:"The maximum time the RPC middleware is allowed to take for intercepting each RPC request"`

subservers/config.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ package subservers
22

33
// RemoteConfig holds the configuration parameters that are needed when running
44
// LiT in the "remote" lnd mode.
5+
//
6+
//nolint:lll
57
type RemoteConfig struct {
68
LitLogDir string `long:"lit-logdir" description:"For lnd remote mode only: Directory to log output."`
79
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 {
1820

1921
// RemoteDaemonConfig holds the configuration parameters that are needed to
2022
// connect to a remote daemon like lnd for example.
23+
//
24+
//nolint:lll
2125
type RemoteDaemonConfig struct {
2226
// RPCServer is host:port that the remote daemon's RPC server is
2327
// listening on.

0 commit comments

Comments
 (0)