367 Commits

Author SHA1 Message Date
Denis Tingaikin
85049e5ea0
Bump go-header to v0.4.1 (#1578) 2020-12-27 20:32:33 +01:00
Andrew Shannon Brown
222076fdc6
Add forbidigo linter (#1569) 2020-12-24 17:19:32 +01:00
Ryan Currah
a893212f02
gomodguard: updated for new features and fixes (#1567) 2020-12-20 11:27:55 +01:00
Brian Flad
e26630a82c
deps: Bump github.com/tommy-muehle/go-mnd@v2.2.0 (#1558)
Reference: https://github.com/golangci/golangci-lint/issues/1557

Upstream project does not support Go Modules to reference @v2.2.0 directly, so used commit at that tag.

Updated via:

```console
$ go get github.com/tommy-muehle/go-mnd@16041ac3fe65b98fbbf4c3c9b88c346196211614
$ go mod tidy
```
2020-12-15 00:54:32 +01:00
Aleksey Bakin
0370d3adea
Add thelper linter (#1541) 2020-12-13 14:54:26 +01:00
Ludovic Fernandez
b79e0c5adf
fix: throw an error on panic. (#1540)
* fix: throw an error on panic.
* current min go version is go1.13
2020-12-12 20:31:17 +00:00
Ludovic Fernandez
10c786e52a
chore: update gofumpt. (#1548) 2020-12-11 22:17:36 +01:00
dependabot[bot]
21be7d2dcf
build(deps): bump github.com/daixiang0/gci from 0.2.4 to 0.2.7 (#1521)
* build(deps): bump github.com/daixiang0/gci from 0.2.4 to 0.2.5

Bumps [github.com/daixiang0/gci](https://github.com/daixiang0/gci) from 0.2.4 to 0.2.5.
- [Release notes](https://github.com/daixiang0/gci/releases)
- [Commits](https://github.com/daixiang0/gci/compare/v0.2.4...v0.2.5)

Signed-off-by: dependabot[bot] <support@github.com>

* chore: update to v0.2.6

* chore: update to v0.2.7

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fernandez Ludovic <lfernandez.dev@gmail.com>
2020-12-10 14:18:57 +08:00
Andrew Shannon Brown
cf32a7b706
Add makezero linter (#1520)
makezero ensures that objects recognized as slices are initialized with length 0.  By default, this is only required when we find a subsequent append to the object, but can also be enabled at all times as a way of discouraging the use of integer variables (i.e. "i") to index slices.
2020-12-05 07:37:37 -08:00
Pierre R
f7a0c3c2e6
Bump go-errorlint to latest (#1529) 2020-12-03 22:48:50 +01:00
Ludovic Fernandez
af0dd77ce4
fix: update github.com/tetafro/godot to v1.3.2 (#1536) 2020-12-03 18:42:42 +03:00
dependabot[bot]
f8418b1b49
build(deps): bump gopkg.in/yaml.v2 from 2.3.0 to 2.4.0 (#1528)
Bumps [gopkg.in/yaml.v2](https://github.com/go-yaml/yaml) from 2.3.0 to 2.4.0.
- [Release notes](https://github.com/go-yaml/yaml/releases)
- [Commits](https://github.com/go-yaml/yaml/compare/v2.3.0...v2.4.0)

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Xiang Dai <long0dai@foxmail.com>
Co-authored-by: Xiang Dai <long0dai@foxmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-30 14:11:42 +08:00
Henry
91e733194f
CVE-2020-14040: v0.3.3 golang.org/x/text (#1293)
* CVE-2020-14040: v0.3.3 golang.org/x/text

* go mod tidy

* Update go.mod

* * Go get golang.org/x/text
* Delete go.sum
* go mod tidy

* Remove replace statement

* Missed new line at end of go mod
2020-11-28 14:01:44 +03:00
Pierre R
fc1a8263b9
Bump go-errorlint to latest (#1527) 2020-11-27 04:49:07 +01:00
Kunwardeep
b90551cdf9
add new paralleltest linter (#1503)
Some checks failed
Extra / Vulnerability scanner (push) Failing after 15m24s
CI / go-mod (push) Failing after 15m22s
CI / golangci-lint (push) Failing after 15m20s
Release a tag / release (push) Failing after 15m18s
CI / tests-on-windows (push) Has been cancelled
CI / tests-on-macos (push) Has been cancelled
CI / tests-on-unix (1.13) (push) Has been cancelled
CI / tests-on-unix (1.14) (push) Has been cancelled
CI / tests-on-unix (1.15) (push) Has been cancelled
CI / check_generated (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/Dockerfile.alpine]) (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/Dockerfile]) (push) Has been cancelled
2020-11-22 22:28:38 +03:00
iwankgb
993337baa2
Using upstrem goconst (#1500)
github.com/golangci/goconst is now obsolete :)
2020-11-17 19:07:37 +00:00
Denis Krivak
df2e9e2ebd
Update godot to 1.3.0 (#1498) 2020-11-10 20:11:26 +03:00
dependabot[bot]
b1755c16ea
build(deps): bump github.com/kyoh86/exportloopref from 0.1.7 to 0.1.8 (#1501)
Bumps [github.com/kyoh86/exportloopref](https://github.com/kyoh86/exportloopref) from 0.1.7 to 0.1.8.
- [Release notes](https://github.com/kyoh86/exportloopref/releases)
- [Changelog](https://github.com/kyoh86/exportloopref/blob/master/.goreleaser.yml)
- [Commits](https://github.com/kyoh86/exportloopref/compare/v0.1.7...v0.1.8)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-09 16:53:40 +11:00
dependabot[bot]
0b245262a0
build(deps): bump github.com/securego/gosec/v2 from 2.4.0 to 2.5.0 (#1484)
Bumps [github.com/securego/gosec/v2](https://github.com/securego/gosec) from 2.4.0 to 2.5.0.
- [Release notes](https://github.com/securego/gosec/releases)
- [Changelog](https://github.com/securego/gosec/blob/master/.goreleaser.yml)
- [Commits](https://github.com/securego/gosec/compare/v2.4.0...v2.5.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-02 17:27:56 +11:00
dependabot[bot]
97cb05c492
build(deps): bump github.com/fatih/color from 1.9.0 to 1.10.0 (#1485)
Bumps [github.com/fatih/color](https://github.com/fatih/color) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/fatih/color/releases)
- [Commits](https://github.com/fatih/color/compare/v1.9.0...v1.10.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-02 17:27:34 +11:00
Mateusz Bilski
55e35d27e3
Update exhaustivestruct (#1472)
* Update exhaustivestruct

* Add tests
2020-10-27 00:54:55 +01:00
Tam Mach
9d557ed40e
chore(dep): Use tag version for cobra (#1458)
Some checks failed
Extra / Vulnerability scanner (push) Failing after 2m37s
CI / go-mod (push) Failing after 18m50s
CI / golangci-lint (push) Failing after 18m22s
Release a tag / release (push) Failing after 18m18s
CI / tests-on-windows (push) Has been cancelled
CI / tests-on-macos (push) Has been cancelled
CI / tests-on-unix (1.13) (push) Has been cancelled
CI / tests-on-unix (1.14) (push) Has been cancelled
CI / tests-on-unix (1.15) (push) Has been cancelled
CI / check_generated (push) Has been cancelled
This commit is to use tag version for cobra (e.g. 1.1.1). The main
benefit is that this can be managed and upgraded by dependabot later.

This is follow-up item from PR #1201.

Signed-off-by: Tam Mach <sayboras@yahoo.com>
2020-10-19 17:01:48 +11:00
dependabot[bot]
254f0d4d4d
build(deps): bump honnef.co/go/tools (#1459)
Bumps [honnef.co/go/tools](https://github.com/dominikh/go-tools) from 0.0.1-2020.1.5 to 0.0.1-2020.1.6.
- [Release notes](https://github.com/dominikh/go-tools/releases)
- [Commits](https://github.com/dominikh/go-tools/compare/v0.0.1-2020.1.5...v0.0.1-2020.1.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-19 16:57:04 +11:00
Simon Sawert
a8b7b0037a
Update gochecknoglobals, use source analyzer (#1422) 2020-10-16 08:38:04 +11:00
nishanths
58234f055c
update exhaustive to latest; use version in go.mod (#1449)
* update exhaustive to latest

* wip

* update dep

* update flag name

* use versioned dep

* add tests

* unused file

* no need config file

* add vars to test

* test comment

* remove default settings
2020-10-14 08:19:06 +02:00
Mateusz Bilski
c57627b18c
Add exhaustivestruct linter (#1411)
* Add exhaustivestruct linter

* CHange load mode to types info

* Fix go.mod
2020-10-12 08:35:02 +02:00
dependabot[bot]
2f16572d5f
build(deps): bump honnef.co/go/tools (#1448)
Bumps [honnef.co/go/tools](https://github.com/dominikh/go-tools) from 0.0.1-2020.1.5 to 0.0.1-2020.1.6.
- [Release notes](https://github.com/dominikh/go-tools/releases)
- [Commits](https://github.com/dominikh/go-tools/compare/v0.0.1-2020.1.5...v0.0.1-2020.1.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-12 16:53:34 +11:00
dependabot[bot]
ae3aca745e
build(deps): bump github.com/sirupsen/logrus from 1.6.0 to 1.7.0 (#1412)
Bumps [github.com/sirupsen/logrus](https://github.com/sirupsen/logrus) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/sirupsen/logrus/releases)
- [Changelog](https://github.com/sirupsen/logrus/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sirupsen/logrus/compare/v1.6.0...v1.7.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-11 08:58:42 +11:00
dependabot[bot]
3cc77d1bd2
build(deps): bump github.com/sourcegraph/go-diff from 0.6.0 to 0.6.1 (#1414)
Bumps [github.com/sourcegraph/go-diff](https://github.com/sourcegraph/go-diff) from 0.6.0 to 0.6.1.
- [Release notes](https://github.com/sourcegraph/go-diff/releases)
- [Commits](https://github.com/sourcegraph/go-diff/compare/v0.6.0...v0.6.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-10 20:37:29 +02:00
Vladimir Evgrafov
796a958805
Add go-errorlint (#1420)
* Add errorlint

* Add errorlint config example
2020-10-09 15:42:48 +03:00
dependabot[bot]
501f00c6b0
build(deps): bump github.com/mattn/go-colorable from 0.1.7 to 0.1.8 (#1413)
Bumps [github.com/mattn/go-colorable](https://github.com/mattn/go-colorable) from 0.1.7 to 0.1.8.
- [Release notes](https://github.com/mattn/go-colorable/releases)
- [Commits](https://github.com/mattn/go-colorable/compare/v0.1.7...v0.1.8)

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Xiang Dai <long0dai@foxmail.com>
Co-authored-by: Xiang Dai <long0dai@foxmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-07 10:31:31 +08:00
Tom Arrell
247b6c2796
Add wrapcheck linter (#1407)
* Add failing test

* Add wrapcheck linter
2020-10-06 13:40:00 +02:00
Melvin
926e76dcf2
Add tparallel linter (#1380) 2020-10-02 13:00:46 -07:00
dependabot[bot]
065be625c1
build(deps): bump github.com/tetafro/godot from 0.4.8 to 0.4.9 (#1384)
Bumps [github.com/tetafro/godot](https://github.com/tetafro/godot) from 0.4.8 to 0.4.9.
- [Release notes](https://github.com/tetafro/godot/releases)
- [Changelog](https://github.com/tetafro/godot/blob/master/.goreleaser.yml)
- [Commits](https://github.com/tetafro/godot/compare/v0.4.8...v0.4.9)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-26 00:32:17 +10:00
dependabot[bot]
a0599ca1d2
build(deps): bump github.com/valyala/quicktemplate from 1.6.2 to 1.6.3 (#1385)
Bumps [github.com/valyala/quicktemplate](https://github.com/valyala/quicktemplate) from 1.6.2 to 1.6.3.
- [Release notes](https://github.com/valyala/quicktemplate/releases)
- [Commits](https://github.com/valyala/quicktemplate/compare/v1.6.2...v1.6.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-25 23:14:16 +10:00
Tam Mach
5f93c930a1
Add support for fish completion (#1201)
Co-authored-by: Sascha Grunert <sgrunert@suse.com>
2020-09-21 07:50:06 +10:00
Tam Mach
5efb842164
chore(dep): Update unparam/gofumpt to latest commit hash (#1376)
* chore(dep): Update unparam/gofumpt to latest commit hash

This commit is to update the below deps:
- unparam to b37ab49443f75cf3121a1c153ca02be64ecdec07
- gofumpt to ab5a8192947d

Fixes #1375
2020-09-20 09:51:59 +10:00
nishanths
2cb7515611
update exhaustive linter (#1339) 2020-09-07 06:15:36 -05:00
dependabot[bot]
3ca396eb7f
build(deps): bump github.com/sourcegraph/go-diff from 0.5.3 to 0.6.0 (#1353)
Bumps [github.com/sourcegraph/go-diff](https://github.com/sourcegraph/go-diff) from 0.5.3 to 0.6.0.
- [Release notes](https://github.com/sourcegraph/go-diff/releases)
- [Commits](https://github.com/sourcegraph/go-diff/compare/v0.5.3...v0.6.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-07 14:46:10 +08:00
dependabot[bot]
ac43599fb3
build(deps): bump github.com/ultraware/funlen from 0.0.2 to 0.0.3 (#1341)
Bumps [github.com/ultraware/funlen](https://github.com/ultraware/funlen) from 0.0.2 to 0.0.3.
- [Release notes](https://github.com/ultraware/funlen/releases)
- [Commits](https://github.com/ultraware/funlen/compare/v0.0.2...v0.0.3)

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Xiang Dai <long0dai@foxmail.com>
Co-authored-by: Xiang Dai <long0dai@foxmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-31 15:17:53 +08:00
dependabot[bot]
11818dfdf3
build(deps): bump github.com/gofrs/flock from 0.7.3 to 0.8.0 (#1340)
Bumps [github.com/gofrs/flock](https://github.com/gofrs/flock) from 0.7.3 to 0.8.0.
- [Release notes](https://github.com/gofrs/flock/releases)
- [Commits](https://github.com/gofrs/flock/compare/v0.7.3...v0.8.0)

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Xiang Dai <long0dai@foxmail.com>
Co-authored-by: Xiang Dai <long0dai@foxmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-31 15:00:22 +08:00
Xiang Dai
913e57fcda
Gci: update the way to call Run() (#1337)
Signed-off-by: Xiang Dai <long0dai@foxmail.com>
2020-08-31 08:38:05 +08:00
dependabot[bot]
e2d717b873
build(deps): bump github.com/ssgreg/nlreturn/v2 from 2.0.2 to 2.1.0 (#1327)
Bumps [github.com/ssgreg/nlreturn/v2](https://github.com/ssgreg/nlreturn) from 2.0.2 to 2.1.0.
- [Release notes](https://github.com/ssgreg/nlreturn/releases)
- [Changelog](https://github.com/ssgreg/nlreturn/blob/master/.goreleaser.yml)
- [Commits](https://github.com/ssgreg/nlreturn/compare/v2.0.2...v2.1.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-25 10:02:28 -05:00
dependabot[bot]
fe5359051e
build(deps): bump github.com/gofrs/flock from 0.7.1 to 0.7.3 (#1326)
Bumps [github.com/gofrs/flock](https://github.com/gofrs/flock) from 0.7.1 to 0.7.3.
- [Release notes](https://github.com/gofrs/flock/releases)
- [Commits](https://github.com/gofrs/flock/compare/v0.7.1...v0.7.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-24 13:26:44 -05:00
dependabot[bot]
6ac41d9f33
build(deps): bump github.com/go-critic/go-critic from 0.5.0 to 0.5.2 (#1307)
* build(deps): bump github.com/go-critic/go-critic from 0.5.0 to 0.5.2

Bumps [github.com/go-critic/go-critic](https://github.com/go-critic/go-critic) from 0.5.0 to 0.5.2.
- [Release notes](https://github.com/go-critic/go-critic/releases)
- [Commits](https://github.com/go-critic/go-critic/compare/v0.5.0...v0.5.2)

Signed-off-by: dependabot[bot] <support@github.com>

* Fix gocritic TestFilterByDisableTags

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sergey Vilgelm <sergey.vilgelm@ibm.com>
2020-08-17 08:38:53 -05:00
Xiang Dai
e695b1473f
Bump up gci to v0.2.2 (#1305)
Signed-off-by: Xiang Dai <long0dai@foxmail.com>
2020-08-17 14:29:58 +08:00
dependabot[bot]
20814be434
build(deps): bump github.com/valyala/quicktemplate from 1.6.0 to 1.6.2 (#1295)
Bumps [github.com/valyala/quicktemplate](https://github.com/valyala/quicktemplate) from 1.6.0 to 1.6.2.
- [Release notes](https://github.com/valyala/quicktemplate/releases)
- [Commits](https://github.com/valyala/quicktemplate/compare/v1.6.0...v1.6.2)

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Xiang Dai <long0dai@foxmail.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-10 14:42:56 +08:00
Xiang Dai
ad53b26546
Gci: fix panic (#1292)
Signed-off-by: Xiang Dai <long0dai@foxmail.com>
2020-08-04 13:59:06 +08:00
dependabot[bot]
cae1842109
build(deps): bump github.com/spf13/viper from 1.7.0 to 1.7.1 (#1285)
* build(deps): bump github.com/spf13/viper from 1.7.0 to 1.7.1

Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.7.0...v1.7.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sergey Vilgelm <sergey.vilgelm@ibm.com>
2020-08-03 23:48:12 +10:00
dependabot[bot]
78b742f289
build(deps): bump honnef.co/go/tools (#1286)
Bumps [honnef.co/go/tools](https://github.com/dominikh/go-tools) from 0.0.1-2020.1.4 to 0.0.1-2020.1.5.
- [Release notes](https://github.com/dominikh/go-tools/releases)
- [Commits](https://github.com/dominikh/go-tools/compare/v0.0.1-2020.1.4...v0.0.1-2020.1.5)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-03 08:30:14 -05:00