247 Commits

Author SHA1 Message Date
Ludovic Fernandez
b39dbcd694
durationcheck: False positive when multiplying with int type struct field (#1744)
Some checks failed
Extra / Vulnerability scanner (push) Failing after 33s
CI / go-mod (push) Failing after 43s
CI / golangci-lint (push) Failing after 1m0s
CI / tests-on-windows (push) Has been skipped
CI / tests-on-macos (push) Has been skipped
CI / tests-on-unix (1.14) (push) Has been skipped
CI / tests-on-unix (1.15) (push) Has been skipped
CI / tests-on-unix (1.16) (push) Has been skipped
CI / check_generated (push) Has been skipped
Release a tag / release (push) Failing after 1m10s
Release a tag / docker-release (map[Dockerfile:build/Dockerfile.alpine]) (push) Has been skipped
Release a tag / docker-release (map[Dockerfile:build/Dockerfile]) (push) Has been skipped
2021-02-20 12:43:21 +01:00
Ludovic Fernandez
4b3fb4c64f
revive: fix types and default configuration. (#1747) 2021-02-19 01:40:40 +01:00
Ludovic Fernandez
34e5fc6396
Use upstream gocyclo. (#1739)
Some checks failed
Extra / Vulnerability scanner (push) Failing after 19s
CI / golangci-lint (push) Failing after 2m53s
CI / tests-on-windows (push) Has been skipped
CI / tests-on-macos (push) Has been skipped
CI / tests-on-unix (1.14) (push) Has been skipped
CI / tests-on-unix (1.15) (push) Has been skipped
CI / tests-on-unix (1.16) (push) Has been skipped
CI / check_generated (push) Has been skipped
CI / go-mod (push) Failing after 15m20s
Release a tag / release (push) Failing after 15m3s
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
2021-02-17 10:27:15 +01:00
Bartłomiej Klimczak
2121370f81
add 'cyclop' linter (#1738) 2021-02-17 09:48:29 +01:00
dependabot[bot]
4dc0dc32e0
build(deps): bump github.com/spf13/cobra from 1.1.1 to 1.1.3 (#1736)
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.1.1 to 1.1.3.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Changelog](https://github.com/spf13/cobra/blob/master/CHANGELOG.md)
- [Commits](https://github.com/spf13/cobra/compare/v1.1.1...v1.1.3)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-15 07:48:30 +01:00
Ludovic Fernandez
b0b2dc6b36
feat: add durationcheck linter. (#1734)
Co-authored-by: Sergey Vilgelm <sergey.vilgelm@ibm.com>
2021-02-14 11:47:06 -06:00
Sebastian Spaink
35b6f35476
Add "revive" linter (#1729) 2021-02-14 14:36:37 +01:00
Ludovic Fernandez
ce2e778220
fix: new-from-rev for large repository. (#1723) 2021-02-14 05:01:21 +01:00
dependabot[bot]
ed9480c4ac
build(deps): bump github.com/kulti/thelper from 0.3.0 to 0.3.1 (#1722) 2021-02-08 09:13:32 +03:00
Aleksey Bakin
cc152be1a9
bump thelper linter version to v0.3.0 (#1696) 2021-02-07 18:28:04 +01:00
Robert Liebowitz
2a5b42cecc
prealloc: Use upstream version (#1694) 2021-02-06 14:17:25 +01:00
dependabot[bot]
5694c50144
build(deps): bump github.com/mbilski/exhaustivestruct from 1.1.0 to 1.2.0 (#1680) 2021-02-01 21:45:42 +01:00
dependabot[bot]
55eed969c5
build(deps): bump github.com/tetafro/godot from 1.4.3 to 1.4.4 (#1679) 2021-02-01 21:19:42 +01:00
Sebastien Rosset
443e5b6c73
Print error message and exit with non-zero status when ruleguard parse error occurs (#1666) 2021-02-01 12:50:25 +01:00
dependabot[bot]
3096f8aedb
build(deps): bump github.com/ashanbrown/forbidigo from 1.0.0 to 1.1.0 (#1678)
Bumps [github.com/ashanbrown/forbidigo](https://github.com/ashanbrown/forbidigo) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/ashanbrown/forbidigo/releases)
- [Commits](https://github.com/ashanbrown/forbidigo/compare/v1.0.0...v1.1.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>
2021-02-01 14:21:30 +08:00
Eugene Simonov
0a474a2637
Update ifshort to v1.0.1 (#1671) 2021-01-30 17:08:46 +01:00
gaojingyu
839dd7445e
rowserrcheck: fix reports false positive (#1670) 2021-01-30 03:01:07 +01:00
Ludovic Fernandez
6c25d06830
fix: bump github.com/tommy-muehle/go-mnd/v2 to v2.3.1 (#1667)
Some checks failed
Extra / Vulnerability scanner (push) Failing after 1m43s
CI / golangci-lint (push) Failing after 2m38s
CI / tests-on-windows (push) Has been skipped
CI / tests-on-macos (push) Has been skipped
CI / tests-on-unix (1.13) (push) Has been skipped
CI / tests-on-unix (1.14) (push) Has been skipped
CI / tests-on-unix (1.15) (push) Has been skipped
CI / check_generated (push) Has been skipped
CI / go-mod (push) Failing after 17m1s
Release a tag / release (push) Failing after 15m25s
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
2021-01-26 11:43:15 +01:00
dependabot[bot]
ea4179397d
build(deps): bump github.com/securego/gosec/v2 from 2.5.0 to 2.6.1 (#1665)
Bumps [github.com/securego/gosec/v2](https://github.com/securego/gosec) from 2.5.0 to 2.6.1.
- [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.5.0...v2.6.1)

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>
2021-01-25 14:18:03 +08:00
dependabot[bot]
4f648a732f
build(deps): bump github.com/tetafro/godot from 1.3.2 to 1.4.3 (#1664)
Bumps [github.com/tetafro/godot](https://github.com/tetafro/godot) from 1.3.2 to 1.4.3.
- [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/v1.3.2...v1.4.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>
2021-01-25 14:17:27 +08:00
Eugene Simonov
750309d157
Add ifshort linter (#1587) 2021-01-20 23:07:43 +01:00
dependabot[bot]
f049bfc4ae
build(deps): bump github.com/stretchr/testify from 1.6.1 to 1.7.0 (#1654)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.6.1...v1.7.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>
2021-01-18 14:12:53 +08:00
Ludovic Fernandez
1da57014f9
fix: gci init (#1642)
Some checks failed
Extra / Vulnerability scanner (push) Failing after 1m50s
CI / golangci-lint (push) Failing after 3m49s
CI / tests-on-windows (push) Has been skipped
CI / tests-on-macos (push) Has been skipped
CI / tests-on-unix (1.13) (push) Has been skipped
CI / tests-on-unix (1.14) (push) Has been skipped
CI / tests-on-unix (1.15) (push) Has been skipped
CI / check_generated (push) Has been skipped
CI / go-mod (push) Failing after 17m8s
Release a tag / release (push) Failing after 17m5s
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
2021-01-10 20:49:57 -06:00
Ludovic Fernandez
44bf1977a0
fix regression: update thelper to v0.2.1 (#1639)
Some checks failed
Extra / Vulnerability scanner (push) Failing after 1m54s
CI / go-mod (push) Failing after 17m16s
CI / golangci-lint (push) Failing after 17m14s
Release a tag / release (push) Failing after 17m12s
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
2021-01-09 20:21:31 +01:00
Ludovic Fernandez
e5a395b2c8
Update mvdan.cc/gofumpt to v0.1.0 (#1637) 2021-01-08 16:48:56 +01:00
Ludovic Fernandez
1e5ba1eb70
fix: modules-download-mode support (#1593)
Some checks failed
Extra / Vulnerability scanner (push) Failing after 2m2s
CI / go-mod (push) Failing after 17m24s
CI / golangci-lint (push) Failing after 17m22s
Release a tag / release (push) Failing after 17m20s
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
2021-01-07 23:37:22 +01:00
Nishanth Shanmugham
76c452197b
add 'predeclared' linter (#1606) 2021-01-07 17:58:04 +01:00
dependabot[bot]
5c9e38655e
build(deps): bump github.com/go-critic/go-critic from 0.5.2 to 0.5.3 (#1631) 2021-01-06 22:43:05 +01:00
dependabot[bot]
122193999a
build(deps): bump github.com/kulti/thelper from 0.1.0 to 0.2.0 (#1630) 2021-01-05 05:09:01 +01:00
Denis Tingaikin
260dc80742
Bump go-header to v0.4.2 (#1585)
Some checks failed
Extra / Vulnerability scanner (push) Failing after 15m16s
CI / go-mod (push) Failing after 15m14s
CI / golangci-lint (push) Failing after 15m13s
Release a tag / release (push) Failing after 15m11s
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
Signed-off-by: Denis Tingajkin <denis.tingajkin@xored.com>
2020-12-28 17:22:37 +07:00
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