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-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -204,6 +204,7 @@ and the following linters are disabled by default:
204
204
$ golangci-lint help linters
205
205
...
206
206
Disabled by default linters:
207
+
bodyclose: checks whether HTTP response body is closed successfully [fast: false, auto-fix: false]
207
208
depguard: Go linter that checks if package imports are in a list of acceptable packages [fast: true, auto-fix: false]
208
209
dupl: Tool for code clone detection [fast: true, auto-fix: false]
209
210
gochecknoglobals: Checks that no globals are present in Go code [fast: true, auto-fix: false]
@@ -344,7 +345,7 @@ Read [this section](#internals) for details.
344
345
345
346
### Memory Usage of Golangci-lint
346
347
347
-
A trade-off between memory usage and execution time can be controlled by [`GOCC`](https://golang.org/pkg/runtime/#hdr-Environment_Variables) environment variable.
348
+
A trade-off between memory usage and execution time can be controlled by [`GOGC`](https://golang.org/pkg/runtime/#hdr-Environment_Variables) environment variable.
348
349
Less `GOGC` values trigger garbage collection more frequently and golangci-lint consumes less memory and more CPU. Below is the trade-off table for running on this repo:
349
350
350
351
|`GOGC`|Peak Memory, GB|Executon Time, s|
@@ -416,6 +417,7 @@ golangci-lint help linters
416
417
417
418
### Disabled By Default Linters (`-E/--enable`)
418
419
420
+
- [bodyclose](https://github.com/timakin/bodyclose) - checks whether HTTP response body is closed successfully
419
421
- [golint](https://github.com/golang/lint) - Golint differs from gofmt. Gofmt reformats Go source code, whereas golint prints out style mistakes
420
422
- [stylecheck](https://github.com/dominikh/go-tools/tree/master/stylecheck) - Stylecheck is a replacement for golint
421
423
- [gosec](https://github.com/securego/gosec) - Inspects source code for security problems
Copy file name to clipboardExpand all lines: README.tmpl.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -313,7 +313,7 @@ Read [this section](#internals) for details.
313
313
314
314
### Memory Usage of Golangci-lint
315
315
316
-
A trade-off between memory usage and execution time can be controlled by [`GOCC`](https://golang.org/pkg/runtime/#hdr-Environment_Variables) environment variable.
316
+
A trade-off between memory usage and execution time can be controlled by [`GOGC`](https://golang.org/pkg/runtime/#hdr-Environment_Variables) environment variable.
317
317
Less `GOGC` values trigger garbage collection more frequently and golangci-lint consumes less memory and more CPU. Below is the trade-off table for running on this repo:
318
318
319
319
|`GOGC`|Peak Memory, GB|Executon Time, s|
@@ -475,8 +475,8 @@ Short answer: go 1.11 and newer are oficially supported.
475
475
Long answer:
476
476
1. go < 1.9 isn't supported
477
477
2. go 1.9 is supported by golangci-lint <= v1.10.2
478
-
3. go 1.10 is oficially supported by golangci-lint <= 1.15.0.
479
-
4. go1.11 and go1.12 are oficially supported by the latest version of golangci-lint.
478
+
3. go 1.10 is officially supported by golangci-lint <= 1.15.0.
479
+
4. go1.11 and go1.12 are officially supported by the latest version of golangci-lint.
0 commit comments