Skip to content

Commit 13f7f68

Browse files
authored
docs: remove invalid example about mixing files and directory (#4566)
1 parent afd670b commit 13f7f68

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/src/docs/welcome/quick-start.mdx

+6-3
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@ It's an equivalent of executing:
1414
golangci-lint run ./...
1515
```
1616

17-
You can choose which directories and files to analyze:
17+
You can choose which directories or files to analyze:
1818

1919
```sh
20-
golangci-lint run dir1 dir2/... dir3/file1.go
20+
golangci-lint run dir1 dir2/...
21+
golangci-lint run file1.go
2122
```
2223

23-
Directories are NOT analyzed recursively. To analyze them recursively append `/...` to their path.
24+
Directories are NOT analyzed recursively.
25+
To analyze them recursively append `/...` to their path.
26+
It's not possible to mix files and packages/directories, and files must come from the same package.
2427

2528
GolangCI-Lint can be used with zero configuration. By default, the following linters are enabled:
2629

0 commit comments

Comments
 (0)