179 Commits

Author SHA1 Message Date
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
Xiang Dai
8e63112ea3
cleanup go.sum (#1336)
Signed-off-by: Xiang Dai <long0dai@foxmail.com>
2020-08-28 14:11:36 +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
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
dependabot[bot]
fcfcf81886
build(deps): bump github.com/ssgreg/nlreturn/v2 from 2.0.1 to 2.0.2 (#1287)
Bumps [github.com/ssgreg/nlreturn/v2](https://github.com/ssgreg/nlreturn) from 2.0.1 to 2.0.2.
- [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.1...v2.0.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-03 08:20:39 -05:00
dependabot[bot]
3ae248e21a
build(deps): bump github.com/valyala/quicktemplate from 1.5.1 to 1.6.0 (#1288)
Bumps [github.com/valyala/quicktemplate](https://github.com/valyala/quicktemplate) from 1.5.1 to 1.6.0.
- [Release notes](https://github.com/valyala/quicktemplate/releases)
- [Commits](https://github.com/valyala/quicktemplate/compare/v1.5.1...v1.6.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-03 08:19:56 -05:00
Grigory Zubankov
6b60cb8a30
new nlreturn linter (#1267)
* new nlreturn linter

* fix: import order

Co-authored-by: Sergey Vilgelm <sergey.vilgelm@ibm.com>
2020-08-02 15:16:45 -05:00
dependabot[bot]
4354a648ed
build(deps): bump github.com/securego/gosec/v2 from 2.3.0 to 2.4.0 (#1273)
* build(deps): bump github.com/securego/gosec/v2 from 2.3.0 to 2.4.0

Bumps [github.com/securego/gosec/v2](https://github.com/securego/gosec) from 2.3.0 to 2.4.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.3.0...v2.4.0)

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

* Rename Blacklisted -> Blocklisted

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sergey Vilgelm <sergey.vilgelm@ibm.com>
2020-08-02 14:48:26 -05:00
Xiang Dai
60613dc3eb
Introduce gci as new linter (#1266)
* Introduce gci as new linter

Signed-off-by: Xiang Dai <long0dai@foxmail.com>

* use goimports setting if not specified

Signed-off-by: Xiang Dai <long0dai@foxmail.com>
2020-07-28 13:55:02 +03:00
dependabot[bot]
ba48f30fdc
build(deps): bump github.com/tetafro/godot from 0.4.2 to 0.4.8 (#1261)
Bumps [github.com/tetafro/godot](https://github.com/tetafro/godot) from 0.4.2 to 0.4.8.
- [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.2...v0.4.8)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-23 15:42:56 +08:00
Sergey Vilgelm
6a689074bf
Update README and CHANGELOG files (#1253)
Some checks failed
Extra / Vulnerability scanner (push) Failing after 5m38s
CI / golangci-lint (push) Failing after 23m58s
Release a tag / release (push) Failing after 23m44s
CI / tests-on-windows (push) Has been cancelled
CI / tests-on-unix (1.13, ubuntu-latest) (push) Has been cancelled
CI / tests-on-unix (1.14, ubuntu-latest) (push) Has been cancelled
CI / check_generated (push) Has been cancelled
2020-07-19 08:46:07 -05:00
Sergey Vilgelm
c8bd9549a5
Support --fix for gofumpt (#1239) 2020-07-18 21:33:47 -05:00
Nishanth
6dd10ac1eb
upgrade github.com/nishanths/exhaustive (#1246)
This pulls in a fix for handling of blank identifiers by the exhaustive
package.

Patch obtained by running:

```
go get github.com/nishanths/exhaustive
```
2020-07-15 23:36:09 +10:00
dependabot-preview[bot]
cb3f67f88a
build(deps): bump github.com/valyala/quicktemplate from 1.5.0 to 1.5.1 (#1240)
Bumps [github.com/valyala/quicktemplate](https://github.com/valyala/quicktemplate) from 1.5.0 to 1.5.1.
- [Release notes](https://github.com/valyala/quicktemplate/releases)
- [Commits](https://github.com/valyala/quicktemplate/compare/v1.5.0...v1.5.1)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-13 17:10:02 -05:00
dependabot-preview[bot]
65e1b30ebd
build(deps): bump github.com/kyoh86/exportloopref from 0.1.4 to 0.1.7 (#1214)
* build(deps): bump github.com/kyoh86/exportloopref from 0.1.4 to 0.1.7

Bumps [github.com/kyoh86/exportloopref](https://github.com/kyoh86/exportloopref) from 0.1.4 to 0.1.7.
- [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.4...v0.1.7)

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

* Fix exportloopref linter

Change the WithLoadMode to use LoadModeTypesInfo isntead of LoadModeSyntax

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Sergey Vilgelm <sergey.vilgelm@ibm.com>
2020-07-12 21:41:06 +02:00
Melvin
ee86e0e893
gofumpt: Add extra-rules option + update linter (#1228)
Co-authored-by: Sergey Vilgelm <sergey.vilgelm@ibm.com>
2020-07-12 11:38:07 -05:00
Koichi Shiraishi
6ab3138e8b
go.sum: cleanup go.sum (#1231)
Some checks failed
CI / golangci-lint (push) Failing after 25m28s
Release a tag / release (push) Failing after 24m53s
CI / tests-on-windows (push) Has been cancelled
CI / tests-on-unix (1.13, ubuntu-latest) (push) Has been cancelled
CI / tests-on-unix (1.14, ubuntu-latest) (push) Has been cancelled
CI / check_generated (push) Has been cancelled
$ rm -f go.sum && go mod tidy
2020-07-11 16:30:37 +02:00
dependabot-preview[bot]
4fb9fe59f9
build(deps): bump github.com/mattn/go-colorable from 0.1.6 to 0.1.7 (#1213)
Some checks failed
CI / golangci-lint (push) Failing after 25m45s
Release a tag / release (push) Failing after 25m43s
CI / tests-on-windows (push) Has been cancelled
CI / tests-on-unix (1.13, ubuntu-latest) (push) Has been cancelled
CI / tests-on-unix (1.14, ubuntu-latest) (push) Has been cancelled
CI / check_generated (push) Has been cancelled
Bumps [github.com/mattn/go-colorable](https://github.com/mattn/go-colorable) from 0.1.6 to 0.1.7.
- [Release notes](https://github.com/mattn/go-colorable/releases)
- [Commits](https://github.com/mattn/go-colorable/compare/v0.1.6...v0.1.7)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-08 14:02:19 +02:00
iwankgb
306cbb0e6e
Upgrading to go-critic v0.5.0 (#1205)
Some checks failed
CI / golangci-lint (push) Failing after 3m54s
CI / tests-on-windows (push) Has been skipped
CI / tests-on-unix (1.13, ubuntu-latest) (push) Has been skipped
CI / tests-on-unix (1.14, ubuntu-latest) (push) Has been skipped
CI / check_generated (push) Has been skipped
Release a tag / release (push) Failing after 4m22s
2020-07-04 20:07:26 +00:00
Denis Tingaikin
01b566a646
Add go-header linter (#1181)
* add go-header linter
* apply review comments: add goheader example into .golangci.example.yml
* apply review comments: correctly handle multiline comments
2020-07-04 19:03:37 +00:00
Ryan Olds
b22e3f1874
Added sqlclosecheck to linters (#1203)
* Added sqlclosecheck to linters
* Addressed feedback
* Updated sqlclosecheck and tools
2020-07-04 14:30:16 +00:00
Teiva Harsanyi
38d298c2c8
Adding gofumpt (#1177) 2020-06-16 13:05:28 +03:00
dependabot-preview[bot]
36a5a4000a
build(deps): bump github.com/stretchr/testify from 1.6.0 to 1.6.1 (#1183)
Bumps github.com/stretchr/testify from 1.6.0 to 1.6.1.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-08 20:33:07 +00:00
sonata
f1a46f9861
Add Noctx (#1179)
Support for linter that enforces using context on each `http.Request`
https://github.com/sonatard/noctx
2020-06-08 20:21:58 +00:00
dependabot-preview[bot]
b784f4433c
build(deps): bump github.com/stretchr/testify from 1.5.1 to 1.6.0 (#1174)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.5.1 to 1.6.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.5.1...v1.6.0)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-07 16:07:22 +00:00
dependabot-preview[bot]
a393ef74cb
build(deps): bump github.com/sourcegraph/go-diff from 0.5.2 to 0.5.3 (#1173)
Bumps [github.com/sourcegraph/go-diff](https://github.com/sourcegraph/go-diff) from 0.5.2 to 0.5.3.
- [Release notes](https://github.com/sourcegraph/go-diff/releases)
- [Commits](https://github.com/sourcegraph/go-diff/compare/v0.5.2...v0.5.3)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-03 14:16:47 +03:00
Nishanth Shanmugham
f3376cab71
add exhaustive linter (#1166)
* wip

more

add new files

run command fixes

more

* go.mod

* order

* same package

* review comment

* enable linter in .golangci.yml

* add testcase for default-signifies-exhaustive: true

* adjust runGoErrchk instead

* disable the linter

* cleanup

* more cleanup

* cleanup
2020-05-29 16:31:46 +03:00
Tam Mach
dc260be693
Add exportloopref linter (#1163) 2020-05-24 10:31:32 +03:00
Denis Isaev
156eaaa963
dev: update github action config (#1158) 2020-05-23 02:05:52 +03:00
dependabot-preview[bot]
54f83ae521
build(deps): bump github.com/go-critic/go-critic from 0.4.1 to 0.4.3 (#1148)
* build(deps): bump github.com/go-critic/go-critic from 0.4.1 to 0.4.3

Bumps [github.com/go-critic/go-critic](https://github.com/go-critic/go-critic) from 0.4.1 to 0.4.3.
- [Release notes](https://github.com/go-critic/go-critic/releases)
- [Commits](https://github.com/go-critic/go-critic/compare/v0.4.1...v0.4.3)

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

* Disable unnecessaryDefer from go-critic due to false positive

* Disable by regex, not check

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Simon Sawert <simon@sawert.se>
2020-05-19 09:54:27 +03:00
dependabot-preview[bot]
cd34a1efc8
build(deps): bump github.com/spf13/viper from 1.6.1 to 1.7.0 (#1146)
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.6.1...v1.7.0)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-18 16:14:01 +03:00
Denis Krivak
7c2871c596
godot: add autofix mode 2020-05-18 15:49:58 +03:00
dependabot-preview[bot]
09df97a5bf
build(deps): bump github.com/mattn/go-colorable from 0.1.4 to 0.1.6 (#1147)
Bumps [github.com/mattn/go-colorable](https://github.com/mattn/go-colorable) from 0.1.4 to 0.1.6.
- [Release notes](https://github.com/mattn/go-colorable/releases)
- [Commits](https://github.com/mattn/go-colorable/compare/v0.1.4...v0.1.6)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-18 13:25:58 +03:00
dependabot-preview[bot]
514725578e
build(deps): bump honnef.co/go/tools (#1145)
Bumps [honnef.co/go/tools](https://github.com/dominikh/go-tools) from 0.0.1-2020.1.3 to 0.0.1-2020.1.4.
- [Release notes](https://github.com/dominikh/go-tools/releases)
- [Commits](https://github.com/dominikh/go-tools/compare/v0.0.1-2020.1.3...v0.0.1-2020.1.4)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-18 13:25:12 +03:00
Ryan Currah
778e08fda4
bump gomodguard version (#1140)
* bump gomodguard version which adds a new feature to allow blocking modules based on version constraints

* add description why you may want to use gomodguard over depguard, updated example config and add a section the contributor doc page to remind people to update the example config
2020-05-17 22:35:13 +03:00
dependabot-preview[bot]
f3380053af
build(deps): bump github.com/sourcegraph/go-diff from 0.5.1 to 0.5.2 (#1136)
Bumps [github.com/sourcegraph/go-diff](https://github.com/sourcegraph/go-diff) from 0.5.1 to 0.5.2.
- [Release notes](https://github.com/sourcegraph/go-diff/releases)
- [Commits](https://github.com/sourcegraph/go-diff/compare/v0.5.1...v0.5.2)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-17 16:32:34 +03:00
dependabot-preview[bot]
6bd04abfac
build(deps): bump github.com/valyala/quicktemplate from 1.2.0 to 1.5.0 (#1134)
Bumps [github.com/valyala/quicktemplate](https://github.com/valyala/quicktemplate) from 1.2.0 to 1.5.0.
- [Release notes](https://github.com/valyala/quicktemplate/releases)
- [Commits](https://github.com/valyala/quicktemplate/compare/v1.2.0...v1.5.0)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-17 16:31:44 +03:00
dependabot-preview[bot]
d7bf70a0c0
build(deps): bump github.com/bombsimon/wsl/v3 from 3.0.0 to 3.1.0 (#1137)
Bumps [github.com/bombsimon/wsl/v3](https://github.com/bombsimon/wsl) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/bombsimon/wsl/releases)
- [Commits](https://github.com/bombsimon/wsl/compare/v3.0.0...v3.1.0)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-17 16:20:59 +03:00
renovate[bot]
d01488eaae
chore(deps): update module gofrs/flock to v0.7.1 (#1114)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-17 16:01:03 +03:00
renovate[bot]
3aee873b7f
chore(deps): update module fatih/color to v1.9.0 (#1112)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-17 15:58:58 +03:00
renovate[bot]
5bdeb74d5b
chore(deps): update module pkg/errors to v0.9.1 (#1118)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-17 15:58:38 +03:00
renovate[bot]
6f45db7fbd
chore(deps): update module sirupsen/logrus to v1.6.0 (#1120)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-17 15:57:20 +03:00
renovate[bot]
55405f01a4
chore(deps): update module mitchellh/go-ps to v1 (#1127)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-17 13:41:27 +03:00
renovate[bot]
b1f294b8f5
chore(deps): update module yaml to v2.3.0 (#1126)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-17 13:40:51 +03:00