|
9 | 9 | # - vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
|
10 | 10 | skip-dirs-use-default: true
|
11 | 11 |
|
12 |
| - # Which files to skip: they will be analyzed, but issues from them won't be reported. |
13 |
| - # Default value is empty list, |
14 |
| - # but there is no need to include all autogenerated files, |
15 |
| - # we confidently recognize autogenerated files. |
16 |
| - # If it's not please let us know. |
17 |
| - # "/" will be replaced by current OS file path separator to properly work on Windows. |
18 |
| - skip-files: |
19 |
| - - ".*\\.my\\.go$" |
20 |
| - - lib/bad.go |
21 |
| - |
22 | 12 | # If set we pass it to "go list -mod={option}". From "go help modules":
|
23 | 13 | # If invoked with -mod=readonly, the go command is disallowed from the implicit
|
24 | 14 | # automatic updating of go.mod described above. Instead, it fails when any changes
|
|
38 | 28 |
|
39 | 29 | # output configuration options
|
40 | 30 | output:
|
41 |
| - # Format: colored-line-number|line-number|json|tab|checkstyle|code-climate|junit-xml|github-actions|teamcity |
42 |
| - # |
43 |
| - # Multiple can be specified by separating them by comma, output can be provided |
44 |
| - # for each of them by separating format name and path by colon symbol. |
| 31 | + # The formats used to render issues. |
| 32 | + # Format: `colored-line-number`, `line-number`, `json`, `colored-tab`, `tab`, `checkstyle`, `code-climate`, `junit-xml`, `github-actions`, `teamcity` |
45 | 33 | # Output path can be either `stdout`, `stderr` or path to the file to write to.
|
46 |
| - # Example: "checkstyle:report.xml,json:stdout,colored-line-number" |
47 | 34 | #
|
48 |
| - # Default: colored-line-number |
49 |
| - format: colored-line-number |
| 35 | + # For the CLI flag (`--out-format`), multiple formats can be specified by separating them by comma. |
| 36 | + # The output can be specified for each of them by separating format name and path by colon symbol. |
| 37 | + # Example: "--out-format=checkstyle:report.xml,json:stdout,colored-line-number" |
| 38 | + # The CLI flag (`--out-format`) override the configuration file. |
| 39 | + # |
| 40 | + # Default: |
| 41 | + # formats: |
| 42 | + # - format: colored-line-number |
| 43 | + # path: stdout |
| 44 | + formats: |
| 45 | + - format: colored-line-number |
| 46 | + path: stdout |
50 | 47 |
|
51 | 48 | # Print lines of code with issue.
|
52 | 49 | # Default: true
|
@@ -185,6 +182,17 @@ issues:
|
185 | 182 | text: "fieldalignment:"
|
186 | 183 | linters:
|
187 | 184 | - govet
|
| 185 | + |
| 186 | + # Which files to skip: they will be analyzed, but issues from them won't be reported. |
| 187 | + # Default value is empty list, |
| 188 | + # but there is no need to include all autogenerated files, |
| 189 | + # we confidently recognize autogenerated files. |
| 190 | + # If it's not please let us know. |
| 191 | + # "/" will be replaced by current OS file path separator to properly work on Windows. |
| 192 | + exclude-files: |
| 193 | + - ".*\\.my\\.go$" |
| 194 | + - lib/bad.go |
| 195 | + |
188 | 196 | # Independently of option `exclude` we use default exclude patterns,
|
189 | 197 | # it can be disabled by this option.
|
190 | 198 | # To list all excluded by default patterns execute `golangci-lint run --help`.
|
|
0 commit comments