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: docs/src/docs/usage/configuration.mdx
+15-17
Original file line number
Diff line number
Diff line change
@@ -12,19 +12,6 @@ To see a list of enabled by your configuration linters:
12
12
golangci-lint linters
13
13
```
14
14
15
-
## Command-Line Options
16
-
17
-
```sh
18
-
golangci-lint run -h
19
-
{.RunHelpText}
20
-
```
21
-
22
-
When the `--cpu-profile-path` or `--mem-profile-path` arguments are specified, `golangci-lint` writes runtime profiling data
23
-
in the format expected by the [pprof](https://github.com/google/pprof) visualization tool.
24
-
25
-
When the `--trace-path` argument is specified, `golangci-lint` writes runtime tracing data in the format expected by
26
-
the `go tool trace` command and visualization tool.
27
-
28
15
## Config File
29
16
30
17
GolangCI-Lint looks for config files in the following paths from the current working directory:
@@ -41,13 +28,24 @@ To see which config file is being used and where it was sourced from run golangc
41
28
Config options inside the file are identical to command-line options.
42
29
You can configure specific linters' options only within the config file (not the command-line).
43
30
44
-
There is a [`.golangci.example.yml`](https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml)example
45
-
config file with all supported options, their description and default value:
31
+
There is a [`.golangci.example.yml`](https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml)file with all supported options, their description, and default values.
32
+
This file is a neither a working example nor recommended configuration, it's just a reference to display all the configuration options.
46
33
47
-
```yaml
48
-
{ .GolangciYamlExample }
34
+
{ .ConfigurationExample}
35
+
36
+
## Command-Line Options
37
+
38
+
```sh
39
+
golangci-lint run -h
40
+
{.RunHelpText}
49
41
```
50
42
43
+
When the `--cpu-profile-path` or `--mem-profile-path` arguments are specified, `golangci-lint` writes runtime profiling data
44
+
in the format expected by the [pprof](https://github.com/google/pprof) visualization tool.
45
+
46
+
When the `--trace-path` argument is specified, `golangci-lint` writes runtime tracing data in the format expected by
47
+
the `go tool trace` command and visualization tool.
48
+
51
49
## Cache
52
50
53
51
GolangCI-Lint stores its cache in the [default user cache directory](https://golang.org/pkg/os/#UserCacheDir).
0 commit comments