Skip to content

Commit a8e6336

Browse files
committed
multi: add nolint directives
Ignore long lines in the files we touched in the previous commit. For the tapcfg/config.go file which only contains config elements, we add the ignore directive to the whole file.
1 parent 560a005 commit a8e6336

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

proof/courier.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,8 @@ func (e *BackoffExecError) Error() string {
542542
}
543543

544544
// BackoffCfg configures the behaviour of the proof delivery backoff procedure.
545+
//
546+
// nolint:lll
545547
type BackoffCfg struct {
546548
// SkipInitDelay is a flag that indicates whether we should skip the
547549
// initial delay before attempting to deliver the proof to the receiver
@@ -752,6 +754,8 @@ func NewBackoffHandler(cfg *BackoffCfg,
752754
}
753755

754756
// HashMailCourierCfg is the config for the hashmail proof courier.
757+
//
758+
// nolint:lll
755759
type HashMailCourierCfg struct {
756760
// ReceiverAckTimeout is the maximum time we'll wait for the receiver to
757761
// acknowledge the proof.

tapcfg/config.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// nolint:lll
12
package tapcfg
23

34
import (
@@ -269,8 +270,6 @@ type LndConfig struct {
269270

270271
// UniverseConfig is the config that houses any Universe related config
271272
// values.
272-
//
273-
// nolint: lll
274273
type UniverseConfig struct {
275274
SyncInterval time.Duration `long:"syncinterval" description:"Amount of time to wait between universe syncs. Valid time units are {s, m, h}."`
276275

@@ -304,8 +303,6 @@ func (c *ExperimentalConfig) Validate() error {
304303
}
305304

306305
// Config is the main config for the tapd cli command.
307-
//
308-
// nolint: lll
309306
type Config struct {
310307
ShowVersion bool `long:"version" description:"Display version information and exit"`
311308

@@ -436,7 +433,6 @@ func DefaultConfig() Config {
436433
AddrBook: &AddrBookConfig{
437434
DisableSyncer: false,
438435
},
439-
// nolint: lll
440436
Experimental: &ExperimentalConfig{
441437
Rfq: rfq.CliConfig{
442438
AcceptPriceDeviationPpm: rfq.DefaultAcceptPriceDeviationPpm,

tapdb/postgres.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ var (
4343
)
4444

4545
// PostgresConfig holds the postgres database configuration.
46+
//
47+
// nolint:lll
4648
type PostgresConfig struct {
4749
SkipMigrations bool `long:"skipmigrations" description:"Skip applying migrations on startup."`
4850
Host string `long:"host" description:"Database server hostname."`

0 commit comments

Comments
 (0)