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
+7-1
Original file line number
Diff line number
Diff line change
@@ -288,10 +288,16 @@ GolangCI-Lint looks for next config paths in the current directory:
288
288
-`.golangci.toml`
289
289
-`.golangci.json`
290
290
291
+
GolangCI-Lint also searches config file in all directories from directory of the first analyzed path up to the root.
292
+
To see which config file is used and where it was searched run golangci-lint with `-v` option.
293
+
291
294
Configuration options inside the file are identical to command-line options.
295
+
You can configure specific linters options only within configuration file, it can't be done with command-line.
296
+
292
297
There is a [`.golangci.yml`](https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml) with all supported options.
293
298
294
-
It's a [.golangci.yml](https://github.com/golangci/golangci-lint/blob/master/.golangci.yml) of this repo: we enable more linters than by default and make their settings more strict:
299
+
It's a [.golangci.yml](https://github.com/golangci/golangci-lint/blob/master/.golangci.yml) of this repo: we enable more linters
300
+
than by default and make their settings more strict:
Copy file name to clipboardExpand all lines: README.md.tmpl
+7-1
Original file line number
Diff line number
Diff line change
@@ -180,10 +180,16 @@ GolangCI-Lint looks for next config paths in the current directory:
180
180
- `.golangci.toml`
181
181
- `.golangci.json`
182
182
183
+
GolangCI-Lint also searches config file in all directories from directory of the first analyzed path up to the root.
184
+
To see which config file is used and where it was searched run golangci-lint with `-v` option.
185
+
183
186
Configuration options inside the file are identical to command-line options.
187
+
You can configure specific linters options only within configuration file, it can't be done with command-line.
188
+
184
189
There is a [`.golangci.yml`](https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml) with all supported options.
185
190
186
-
It's a [.golangci.yml](https://github.com/golangci/golangci-lint/blob/master/.golangci.yml) of this repo: we enable more linters than by default and make their settings more strict:
191
+
It's a [.golangci.yml](https://github.com/golangci/golangci-lint/blob/master/.golangci.yml) of this repo: we enable more linters
192
+
than by default and make their settings more strict:
0 commit comments