You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wh(fmt.Sprintf("Enable presets (%s) of linters. Run 'golangci-lint linters' to see them. This option implies option --disable-all", strings.Join(lintersdb.AllPresets(), "|"))))
134
+
wh(fmt.Sprintf("Enable presets (%s) of linters. Run 'golangci-lint linters' to see "+
135
+
"them. This option implies option --disable-all", strings.Join(lintersdb.AllPresets(), "|"))))
128
136
fs.BoolVar(&lc.Fast, "fast", false, wh("Run only fast linters from enabled linters set"))
129
137
130
138
// Issues config
131
139
ic:=&cfg.Issues
132
140
fs.StringSliceVarP(&ic.ExcludePatterns, "exclude", "e", nil, wh("Exclude issue by regexp"))
wh("Maximum count of issues with the same text. Set to 0 to disable"))
137
147
138
148
fs.BoolVarP(&ic.Diff, "new", "n", false,
139
-
wh("Show only new issues: if there are unstaged changes or untracked files, only those changes are analyzed, else only changes in HEAD~ are analyzed.\nIt's a super-useful option for integration of golangci-lint into existing large codebase.\nIt's not practical to fix all existing issues at the moment of integration: much better don't allow issues in new code"))
140
-
fs.StringVar(&ic.DiffFromRevision, "new-from-rev", "", wh("Show only new issues created after git revision `REV`"))
141
-
fs.StringVar(&ic.DiffPatchFilePath, "new-from-patch", "", wh("Show only new issues created in git patch with file path `PATH`"))
149
+
wh("Show only new issues: if there are unstaged changes or untracked files, only those changes "+
150
+
"are analyzed, else only changes in HEAD~ are analyzed.\nIt's a super-useful option for integration "+
151
+
"of golangci-lint into existing large codebase.\nIt's not practical to fix all existing issues at "+
152
+
"the moment of integration: much better don't allow issues in new code"))
0 commit comments