Skip to content

Commit be21cd7

Browse files
committed
lint: fix issues with lint
In this commit we disable tagalign and turn off lll lint on config struct
1 parent cbc8235 commit be21cd7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.golangci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ linters:
9090
# will also catch magic numbers that make sense to extract.
9191
- gomnd
9292

93+
# Disable tagalign
94+
- tagalign
95+
9396
issues:
9497
# Only check issues in the new code.
9598
new-from-rev: 3f48b446215c751ea4ba0c30fb04413ab9f1a7c7

config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ var (
4545
defaultLogDir = filepath.Join(defaultAppDataDir, defaultLogDirname)
4646
)
4747

48+
//nolint:lll
4849
type config struct {
4950
// General application behavior
5051
ConfigFile *cfgutil.ExplicitString `short:"C" long:"configfile" description:"Path to configuration file"`

0 commit comments

Comments
 (0)