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
+16-8Lines changed: 16 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
4
4
GolangCI-Lint is a linters aggregator. It's fast: on average [5 times faster](#performance) than gometalinter. It's [easy to integrate and use](#issues-options), has [nice output](#quick-start) and has a minimum number of false positives.
5
5
6
-
GolangCI-Lint has [integrations](#ide-integrations) with VS Code, GNU Emacs, Sublime Text.
6
+
GolangCI-Lint has [integrations](#editor-integration) with VS Code, GNU Emacs, Sublime Text.
7
7
8
8
Sponsored by [GolangCI.com](https://golangci.com): SaaS service for running linters on Github pull requests. Free for Open Source.
9
9
@@ -12,12 +12,12 @@ Sponsored by [GolangCI.com](https://golangci.com): SaaS service for running lint
12
12
*[Demo](#demo)
13
13
*[Install](#install)
14
14
*[Quick Start](#quick-start)
15
+
*[Editor Integration](#editor-integration)
15
16
*[Comparison](#comparison)
16
17
*[Performance](#performance)
17
18
*[Supported Linters](#supported-linters)
18
19
*[Configuration](#configuration)
19
20
*[False Positives](#false-positives)
20
-
*[IDE integrations](#ide-integrations)
21
21
*[Internals](#internals)
22
22
*[FAQ](#faq)
23
23
*[Thanks](#thanks)
@@ -120,6 +120,12 @@ Pass `-E/--enable` to enable linter and `-D/--disable` to disable:
120
120
$ golangci-lint run --disable-all -E errcheck
121
121
```
122
122
123
+
# Editor Integration
124
+
1.[Go for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-vscode.Go).
125
+
2. Sublime Text - [plugin](https://github.com/alecthomas/SublimeLinter-contrib-golang-cilint) for SublimeLinter.
126
+
3. GNU Emacs - [flycheck checker](https://github.com/weijiangan/flycheck-golangci-lint).
127
+
4. Vim - [issue](https://github.com/fatih/vim-go/issues/1841) for vim-go.
128
+
123
129
# Comparison
124
130
## `golangci-lint` vs `gometalinter`
125
131
GolangCI-Lint was created to fix next issues with `gometalinter`:
@@ -332,15 +338,17 @@ False positives are inevitable, but we did our best to reduce their count. For e
332
338
1. Exclude issue by text using command-line option `-e` or config option `issues.exclude`. It's helpful when you decided to ignore all issues of this type.
333
339
2. Exclude this one issue by using special comment `// nolint[:linter1,linter2,...]` on issued line.
334
340
Comment `// nolint` disables all issues reporting on this line. Comment e.g. `// nolint:govet` disables only govet issues for this line.
341
+
If you would like to completely exclude all issues for some function prepend this comment
342
+
above function:
343
+
```go
344
+
//nolint
345
+
func f() {
346
+
...
347
+
}
348
+
```
335
349
336
350
Please create [GitHub Issues here](https://github.com/golangci/golangci-lint/issues/new) about found false positives. We will add it to default exclude list if it's common or we will fix underlying linter.
337
351
338
-
# IDE integrations
339
-
1. VS Code - [pull request](https://github.com/Microsoft/vscode-go/pull/1693) to vscode-go (thanks to [pdf](https://github.com/pdf)).
340
-
2. Vim - [issue](https://github.com/fatih/vim-go/issues/1841) for vim-go.
341
-
3. GNU Emacs - [flycheck checker](https://github.com/weijiangan/flycheck-golangci-lint) (thanks to [weijiangan](https://github.com/weijiangan)).
342
-
4. Sublime Text - [plugin](https://github.com/alecthomas/SublimeLinter-contrib-golang-cilint) for SublimeLinter (thanks to [alecthomas](https://github.com/alecthomas)).
343
-
344
352
# Internals
345
353
The key difference with gometalinter is that golangci-lint shares work between specific linters (golint, govet, ...).
346
354
For small and medium projects 50-80% of work between linters can be reused.
Copy file name to clipboardExpand all lines: README.md.tmpl
+16-8Lines changed: 16 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
4
4
GolangCI-Lint is a linters aggregator. It's fast: on average [5 times faster](#performance) than gometalinter. It's [easy to integrate and use](#issues-options), has [nice output](#quick-start) and has a minimum number of false positives.
5
5
6
-
GolangCI-Lint has [integrations](#ide-integrations) with VS Code, GNU Emacs, Sublime Text.
6
+
GolangCI-Lint has [integrations](#editor-integration) with VS Code, GNU Emacs, Sublime Text.
7
7
8
8
Sponsored by [GolangCI.com](https://golangci.com): SaaS service for running linters on Github pull requests. Free for Open Source.
9
9
@@ -12,12 +12,12 @@ Sponsored by [GolangCI.com](https://golangci.com): SaaS service for running lint
12
12
* [Demo](#demo)
13
13
* [Install](#install)
14
14
* [Quick Start](#quick-start)
15
+
* [Editor Integration](#editor-integration)
15
16
* [Comparison](#comparison)
16
17
* [Performance](#performance)
17
18
* [Supported Linters](#supported-linters)
18
19
* [Configuration](#configuration)
19
20
* [False Positives](#false-positives)
20
-
* [IDE integrations](#ide-integrations)
21
21
* [Internals](#internals)
22
22
* [FAQ](#faq)
23
23
* [Thanks](#thanks)
@@ -98,6 +98,12 @@ Pass `-E/--enable` to enable linter and `-D/--disable` to disable:
98
98
$ golangci-lint run --disable-all -E errcheck
99
99
```
100
100
101
+
# Editor Integration
102
+
1. [Go for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-vscode.Go).
103
+
2. Sublime Text - [plugin](https://github.com/alecthomas/SublimeLinter-contrib-golang-cilint) for SublimeLinter.
104
+
3. GNU Emacs - [flycheck checker](https://github.com/weijiangan/flycheck-golangci-lint).
105
+
4. Vim - [issue](https://github.com/fatih/vim-go/issues/1841) for vim-go.
106
+
101
107
# Comparison
102
108
## `golangci-lint` vs `gometalinter`
103
109
GolangCI-Lint was created to fix next issues with `gometalinter`:
@@ -204,15 +210,17 @@ False positives are inevitable, but we did our best to reduce their count. For e
204
210
1. Exclude issue by text using command-line option `-e` or config option `issues.exclude`. It's helpful when you decided to ignore all issues of this type.
205
211
2. Exclude this one issue by using special comment `// nolint[:linter1,linter2,...]` on issued line.
206
212
Comment `// nolint` disables all issues reporting on this line. Comment e.g. `// nolint:govet` disables only govet issues for this line.
213
+
If you would like to completely exclude all issues for some function prepend this comment
214
+
above function:
215
+
```go
216
+
//nolint
217
+
func f() {
218
+
...
219
+
}
220
+
```
207
221
208
222
Please create [GitHub Issues here](https://github.com/golangci/golangci-lint/issues/new) about found false positives. We will add it to default exclude list if it's common or we will fix underlying linter.
209
223
210
-
# IDE integrations
211
-
1. VS Code - [pull request](https://github.com/Microsoft/vscode-go/pull/1693) to vscode-go (thanks to [pdf](https://github.com/pdf)).
212
-
2. Vim - [issue](https://github.com/fatih/vim-go/issues/1841) for vim-go.
213
-
3. GNU Emacs - [flycheck checker](https://github.com/weijiangan/flycheck-golangci-lint) (thanks to [weijiangan](https://github.com/weijiangan)).
214
-
4. Sublime Text - [plugin](https://github.com/alecthomas/SublimeLinter-contrib-golang-cilint) for SublimeLinter (thanks to [alecthomas](https://github.com/alecthomas)).
215
-
216
224
# Internals
217
225
The key difference with gometalinter is that golangci-lint shares work between specific linters (golint, govet, ...).
218
226
For small and medium projects 50-80% of work between linters can be reused.
0 commit comments