|
1 | 1 | # GolangCI-Lint |
2 | 2 |
|
3 | | -[](https://travis-ci.com/golangci/golangci-lint) |
4 | | -[](https://golangci.com) |
| 3 | + |
5 | 4 | [](/LICENSE) |
6 | 5 | [](https://github.com/golangci/golangci-lint/releases/latest) |
7 | 6 | [](https://hub.docker.com/r/golangci/golangci-lint) |
@@ -44,6 +43,10 @@ Sponsored by [GolangCI.com](https://golangci.com): SaaS service for running lint |
44 | 43 | - [Configuration](#configuration) |
45 | 44 | - [Command-Line Options](#command-line-options) |
46 | 45 | - [Config File](#config-file) |
| 46 | + - [Custom Linters](#custom-linters) |
| 47 | + - [Create a Copy of `golangci-lint` that Can Run with Plugins](#create-a-copy-of-golangci-lint-that-can-run-with-plugins) |
| 48 | + - [Configure Your Project for Linting](#configure-your-project-for-linting) |
| 49 | + - [To Create Your Own Custom Linter](#to-create-your-own-custom-linter) |
47 | 50 | - [False Positives](#false-positives) |
48 | 51 | - [Nolint](#nolint) |
49 | 52 | - [FAQ](#faq) |
|
646 | 649 | # can use regexp here: generated.*, regexp is applied on full path; |
647 | 650 | # default value is empty list, but default dirs are skipped independently |
648 | 651 | # from this option's value (see skip-dirs-use-default). |
| 652 | + # "/" will be replaced by current OS file path separator to properly work |
| 653 | + # on Windows. |
649 | 654 | skip-dirs: |
650 | 655 | - src/external_libs |
651 | 656 | - autogenerated_by_my_lib |
|
658 | 663 | # won't be reported. Default value is empty list, but there is |
659 | 664 | # no need to include all autogenerated files, we confidently recognize |
660 | 665 | # autogenerated files. If it's not please let us know. |
| 666 | + # "/" will be replaced by current OS file path separator to properly work |
| 667 | + # on Windows. |
661 | 668 | skip-files: |
662 | 669 | - ".*\\.my\\.go$" |
663 | 670 | - lib/bad.go |
@@ -1104,11 +1111,17 @@ linters: |
1104 | 1111 | - whitespace |
1105 | 1112 |
|
1106 | 1113 | # don't enable: |
| 1114 | + # - asciicheck |
1107 | 1115 | # - gochecknoglobals |
1108 | 1116 | # - gocognit |
| 1117 | + # - godot |
1109 | 1118 | # - godox |
| 1119 | + # - goerr113 |
1110 | 1120 | # - maligned |
| 1121 | + # - nestif |
1111 | 1122 | # - prealloc |
| 1123 | + # - testpackage |
| 1124 | + # - wsl |
1112 | 1125 |
|
1113 | 1126 | issues: |
1114 | 1127 | # Excluding configuration per-path, per-linter, per-text and per-source |
|
0 commit comments