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
Copy file name to clipboardExpand all lines: README.md
+18-18
Original file line number
Diff line number
Diff line change
@@ -185,16 +185,16 @@ GolangCI-Lint can be used with zero configuration. By default the following lint
185
185
```bash
186
186
$ golangci-lint help linters
187
187
Enabled by default linters:
188
-
govet (vet, vetshadow): Vet examines Go sourcecode and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string [fast: false, auto-fix: false]
errcheck: Errcheck is a program forchecking for unchecked errorsin go programs. These unchecked errors can be critical bugs in some cases [fast: true, auto-fix: false]
190
-
staticcheck: Staticcheck is a go vet on steroids, applying a ton of static analysis checks [fast: false, auto-fix: false]
191
-
unused: Checks Go code for unused constants, variables, functions and types [fast: false, auto-fix: false]
192
190
gosimple: Linter forGo source code that specializesin simplifying a code [fast: false, auto-fix: false]
193
-
structcheck: Finds an unused struct fields [fast: true, auto-fix: false]
194
-
varcheck: Finds unused global variables and constants [fast: true, auto-fix: false]
191
+
govet (vet, vetshadow): Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string [fast: false, auto-fix: false]
195
192
ineffassign: Detects when assignments to existing variables are not used [fast: true, auto-fix: false]
Pass `-E/--enable` to enable linter and `-D/--disable` to disable:
@@ -457,7 +457,7 @@ Flags:
457
457
-D, --disable strings Disable specific linter
458
458
--enable-all Enable all linters
459
459
--disable-all Disable all linters
460
-
-p, --presets strings Enable presets (bugs|unused|format|style|complexity|performance) of linters. Run 'golangci-lint linters' to see them. This option implies option --disable-all
460
+
-p, --presets strings Enable presets (bugs|complexity|format|performance|style|unused) of linters. Run 'golangci-lint linters' to see them. This option implies option --disable-all
461
461
--fast Run only fast linters from enabled linters set (first run won't be fast)
462
462
-e, --exclude strings Exclude issue by regexp
463
463
--exclude-use-default Use or not use default excludes:
0 commit comments