@@ -13,12 +13,12 @@ import (
13
13
const envDebug = "GL_DEBUG"
14
14
15
15
const (
16
- DebugKeyAutogenExclude = "autogen_exclude"
16
+ DebugKeyAutogenExclude = "autogen_exclude" // Debugs a filter excluding autogenerated source code.
17
17
DebugKeyBinSalt = "bin_salt"
18
18
DebugKeyConfigReader = "config_reader"
19
19
DebugKeyEmpty = ""
20
20
DebugKeyEnabledLinters = "enabled_linters"
21
- DebugKeyEnv = "env"
21
+ DebugKeyEnv = "env" // Debugs `go env` command.
22
22
DebugKeyExcludeRules = "exclude_rules"
23
23
DebugKeyExec = "exec"
24
24
DebugKeyFilenameUnadjuster = "filename_unadjuster"
@@ -27,7 +27,7 @@ const (
27
27
DebugKeyLintersContext = "linters_context"
28
28
DebugKeyLintersDB = "lintersdb"
29
29
DebugKeyLintersOutput = "linters_output"
30
- DebugKeyLoader = "loader"
30
+ DebugKeyLoader = "loader" // Debugs packages loading (including `go/packages` internal debugging).
31
31
DebugKeyMaxFromLinter = "max_from_linter"
32
32
DebugKeyMaxSameIssues = "max_same_issues"
33
33
DebugKeyPkgCache = "pkgcache"
@@ -55,10 +55,10 @@ const (
55
55
)
56
56
57
57
const (
58
- DebugKeyGoCritic = "gocritic"
59
- DebugKeyMegacheck = "megacheck"
60
- DebugKeyNolint = "nolint"
61
- DebugKeyRevive = "revive"
58
+ DebugKeyGoCritic = "gocritic" // Debugs `go-critic` linter.
59
+ DebugKeyMegacheck = "megacheck" // Debugs `staticcheck` related linters.
60
+ DebugKeyNolint = "nolint" // Debugs a filter excluding issues by `//nolint` comments.
61
+ DebugKeyRevive = "revive" // Debugs `revice` linter.
62
62
)
63
63
64
64
func getEnabledDebugs () map [string ]bool {
0 commit comments