File tree Expand file tree Collapse file tree 5 files changed +137
-21
lines changed
docs/content/docs/configuration Expand file tree Collapse file tree 5 files changed +137
-21
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,12 @@ title: Command-Line
3
3
weight : 1
4
4
---
5
5
6
- ## run
6
+ ``` sh
7
+ $ golangci-lint -h
8
+ {.CmdRootHelpText}
9
+ ```
10
+
11
+ ## ` run `
7
12
8
13
{{< cards >}}
9
14
{{< card link="/docs/linters" title="Linters Overview" icon="collection" >}}
@@ -13,7 +18,7 @@ weight: 1
13
18
14
19
``` sh
15
20
$ golangci-lint run -h
16
- {.RunHelpText }
21
+ {.CmdRunHelpText }
17
22
```
18
23
19
24
When the ` --cpu-profile-path ` or ` --mem-profile-path ` arguments are specified,
@@ -22,12 +27,26 @@ golangci-lint writes runtime profiling data in the format expected by the [pprof
22
27
When the ` --trace-path ` argument is specified, ` golangci-lint ` writes runtime tracing data in the format expected by
23
28
the ` go tool trace ` command and visualization tool.
24
29
25
- ### Cache
30
+ ### ` cache `
26
31
27
32
Golangci-lint stores its cache in the subdirectory ` golangci-lint ` inside the [ default user cache directory] ( https://pkg.go.dev/os#UserCacheDir ) .
28
33
29
34
You can override the default cache directory with the environment variable ` GOLANGCI_LINT_CACHE ` ; the path must be absolute.
30
35
36
+ The cache is only used by ` golangci-lint run ` (linters).
37
+
38
+ ``` sh
39
+ $ golangci-lint cache -h
40
+ {.CmdCacheHelpText}
41
+ ```
42
+
43
+ ### ` linters `
44
+
45
+ ``` sh
46
+ $ golangci-lint linters -h
47
+ {.CmdLintersHelpText}
48
+ ```
49
+
31
50
## fmt
32
51
33
52
{{< cards >}}
@@ -38,5 +57,40 @@ You can override the default cache directory with the environment variable `GOLA
38
57
39
58
``` sh
40
59
$ golangci-lint fmt -h
41
- {.FmtHelpText}
60
+ {.CmdFmtHelpText}
61
+ ```
62
+
63
+ ### ` formatters `
64
+
65
+ ``` sh
66
+ $ golangci-lint formatters -h
67
+ {.CmdFormattersHelpText}
68
+ ```
69
+
70
+ ## ` help `
71
+
72
+ ``` sh
73
+ $ golangci-lint help -h
74
+ {.CmdHelpText}
75
+ ```
76
+
77
+ ## ` migrate `
78
+
79
+ ``` sh
80
+ $ golangci-lint migrate -h
81
+ {.CmdMigrateHelpText}
82
+ ```
83
+
84
+ ## ` custom `
85
+
86
+ ``` sh
87
+ $ golangci-lint custom -h
88
+ {.CmdCustomHelpText}
89
+ ```
90
+
91
+ ## ` version `
92
+
93
+ ``` sh
94
+ $ golangci-lint version -h
95
+ {.CmdVersionHelpText}
42
96
```
You can’t perform that action at this time.
0 commit comments