Skip to content

Commit

Permalink
multi: add nolint directives
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
guggero committed Nov 11, 2024
1 parent 560a005 commit a8e6336
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 4 additions & 0 deletions proof/courier.go
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,8 @@ func (e *BackoffExecError) Error() string {
}

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

// HashMailCourierCfg is the config for the hashmail proof courier.
//
// nolint:lll
type HashMailCourierCfg struct {
// ReceiverAckTimeout is the maximum time we'll wait for the receiver to
// acknowledge the proof.
Expand Down
6 changes: 1 addition & 5 deletions tapcfg/config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// nolint:lll
package tapcfg

import (
Expand Down Expand Up @@ -269,8 +270,6 @@ type LndConfig struct {

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

Expand Down Expand Up @@ -304,8 +303,6 @@ func (c *ExperimentalConfig) Validate() error {
}

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

Expand Down Expand Up @@ -436,7 +433,6 @@ func DefaultConfig() Config {
AddrBook: &AddrBookConfig{
DisableSyncer: false,
},
// nolint: lll
Experimental: &ExperimentalConfig{
Rfq: rfq.CliConfig{
AcceptPriceDeviationPpm: rfq.DefaultAcceptPriceDeviationPpm,
Expand Down
2 changes: 2 additions & 0 deletions tapdb/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ var (
)

// PostgresConfig holds the postgres database configuration.
//
// nolint:lll
type PostgresConfig struct {
SkipMigrations bool `long:"skipmigrations" description:"Skip applying migrations on startup."`
Host string `long:"host" description:"Database server hostname."`
Expand Down

0 comments on commit a8e6336

Please sign in to comment.