@@ -16,23 +16,20 @@ const EnvTestRun = "GL_TEST_RUN"
16
16
const envDebug = "GL_DEBUG"
17
17
18
18
const (
19
- DebugKeyBinSalt = "bin_salt"
20
- DebugKeyGoModSalt = "gomod_salt"
21
- DebugKeyConfigReader = "config_reader"
22
- DebugKeyEmpty = ""
23
- DebugKeyEnabledLinters = "enabled_linters"
24
- DebugKeyExec = "exec"
25
- DebugKeyFormatter = "formatter"
26
- DebugKeyFormattersOutput = "formatters_output"
27
- DebugKeyGoEnv = "goenv"
28
- DebugKeyLintersContext = "linters_context"
29
- DebugKeyLintersDB = "lintersdb"
30
- DebugKeyLintersOutput = "linters_output"
31
- DebugKeyLoader = "loader" // Debugs packages loading (including `go/packages` internal debugging).
32
- DebugKeyPkgCache = "pkgcache"
33
- DebugKeyRunner = "runner"
34
- DebugKeyStopwatch = "stopwatch"
35
- DebugKeyTest = "test"
19
+ DebugKeyBinSalt = "bin_salt" // Forces the usage of constant as salt (only for maintainers).
20
+ DebugKeyGoModSalt = "gomod_salt" // Display logs related to the salt computation from the go.mod file.
21
+ DebugKeyConfigReader = "config_reader" // Display logs related to configuration loading.
22
+ DebugKeyEmpty = ""
23
+ DebugKeyEnabledLinters = "enabled_linters" // Display logs related to the enabled linters inside the [lintersdb.Manager].
24
+ DebugKeyExec = "exec" // Display logs related to the lock file.
25
+ DebugKeyGoEnv = "goenv" // Display logs related to [goenv.Env].
26
+ DebugKeyLintersContext = "linters_context" // Display logs related to the package analysis context (not related to [context.Context]).
27
+ DebugKeyLintersDB = "lintersdb" // Display logs related to the linters/formatters loading.
28
+ DebugKeyLoader = "loader" // Display logs related to package loading (including `go/packages` internal debugging).
29
+ DebugKeyPkgCache = "pkgcache" // Display logs related to cache.
30
+ DebugKeyRunner = "runner" // Display logs related to the linter runner.
31
+ DebugKeyStopwatch = "stopwatch" // Display logs related to the stopwatch of the cache.
32
+ DebugKeyTest = "test" // Display debug logs during integration tests.
36
33
)
37
34
38
35
// Printers.
@@ -59,7 +56,6 @@ const (
59
56
DebugKeyPathPrettifier = "path_prettifier"
60
57
DebugKeyPathRelativity = "path_relativity"
61
58
DebugKeySeverityRules = "severity_rules"
62
- DebugKeySkipDirs = "skip_dirs"
63
59
DebugKeySourceCode = "source_code"
64
60
)
65
61
@@ -77,12 +73,16 @@ const (
77
73
DebugKeyGoAnalysisFactsInherit = DebugKeyGoAnalysisFacts + "/inherit"
78
74
)
79
75
80
- // Linters.
76
+ // Linters and Formatters .
81
77
const (
82
- DebugKeyForbidigo = "forbidigo" // Debugs `forbidigo` linter.
83
- DebugKeyGoCritic = "gocritic" // Debugs `gocritic` linter.
84
- DebugKeyGovet = "govet" // Debugs `govet` linter.
85
- DebugKeyLinter = "linter"
78
+ DebugKeyFormatter = "formatter" // Display logs from the shared logger for formatters.
79
+ DebugKeyFormattersOutput = "formatters_output" // Display logs from formatters themselves.
80
+ DebugKeyLinter = "linter" // Display logs from the shared logger for linters.
81
+ DebugKeyLintersOutput = "linters_output" // Display logs from linters themselves.
82
+
83
+ DebugKeyForbidigo = "forbidigo" // Debugs `forbidigo` linter.
84
+ DebugKeyGoCritic = "gocritic" // Debugs `gocritic` linter.
85
+ DebugKeyGovet = "govet" // Debugs `govet` linter.
86
86
DebugKeyRevive = "revive" // Debugs `revive` linter.
87
87
DebugKeyStaticcheck = "staticcheck" // Debugs `staticcheck` linter.
88
88
)
0 commit comments