mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-27 22:21:18 +02:00
multi: rename nolint:lll to nolint:ll
Find and replace all nolint instances refering to the `lll` linter and replace with `ll` which is the name of our custom version of the `lll` linter which can be used to ignore log lines during linting. The next commit will do the configuration of the custom linter and disable the default one.
This commit is contained in:
@@ -23,7 +23,7 @@ const (
|
||||
|
||||
// LogConfig holds logging configuration options.
|
||||
//
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
type LogConfig struct {
|
||||
Console *consoleLoggerCfg `group:"console" namespace:"console" description:"The logger writing to stdout and stderr."`
|
||||
File *FileLoggerConfig `group:"file" namespace:"file" description:"The logger writing to LND's standard log file."`
|
||||
@@ -41,7 +41,7 @@ func (c *LogConfig) Validate() error {
|
||||
|
||||
// LoggerConfig holds options for a particular logger.
|
||||
//
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
type LoggerConfig struct {
|
||||
Disable bool `long:"disable" description:"Disable this logger."`
|
||||
NoTimestamps bool `long:"no-timestamps" description:"Omit timestamps from log lines."`
|
||||
@@ -89,7 +89,7 @@ func (cfg *LoggerConfig) HandlerOptions() []btclog.HandlerOption {
|
||||
|
||||
// FileLoggerConfig extends LoggerConfig with specific log file options.
|
||||
//
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
type FileLoggerConfig struct {
|
||||
LoggerConfig
|
||||
Compressor string `long:"compressor" description:"Compression algorithm to use when rotating logs." choice:"gzip" choice:"zstd"`
|
||||
|
@@ -22,7 +22,7 @@ const (
|
||||
// consoleLoggerCfg extends the LoggerConfig struct by adding a Color option
|
||||
// which is only available for a console logger.
|
||||
//
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
type consoleLoggerCfg struct {
|
||||
LoggerConfig
|
||||
Style bool `long:"style" description:"If set, the output will be styled with color and fonts"`
|
||||
|
@@ -6,7 +6,7 @@ package build
|
||||
// consoleLoggerCfg embeds the LoggerConfig struct along with any extensions
|
||||
// specific to a production deployment.
|
||||
//
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
type consoleLoggerCfg struct {
|
||||
LoggerConfig
|
||||
}
|
||||
|
Reference in New Issue
Block a user