955 Commits

Author SHA1 Message Date
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
cb2f12e7e1
Update the gen_github_action_config to add latest to assets (#1260) 2020-07-23 14:22:04 +08:00
Sergey Vilgelm
63249d6e78
Trigger Netlify to rebuild the docs (#1256) 2020-07-21 19:50:08 +07:00
Sergey Vilgelm
15d97e9fab
Update assets/github-action-config.json (#1254) 2020-07-21 21:02:20 +10: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
v1.29.0
2020-07-19 08:46:07 -05:00
Sergey Vilgelm
c8bd9549a5
Support --fix for gofumpt (#1239) 2020-07-18 21:33:47 -05:00
dependabot[bot]
90bce10fcf
build(deps): bump lodash from 4.17.15 to 4.17.19 in /tools (#1250)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-18 13:53:29 -05:00
Denis Tingaikin
21ee78cf62
Improve 'no such linter' error message (#1244) 2020-07-17 06:48:05 +00:00
Sergey Vilgelm
862ed88cf0
Run nancy validation for all dependencies (#1243)
* Run nancy validation for all dependencies

* Update pr-extra.yml

Use `-json` flag
2020-07-16 17:14:12 -05:00
dependabot[bot]
4f26f11ea3
build(deps): bump golangci/golangci-lint-action from v1.2.2 to v2 (#1247)
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from v1.2.2 to v2.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v1.2.2...c238b72278d97934fd2cb007b97162d5b44757df)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-15 14:08:51 -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
Sergey Vilgelm
203bab67a5
Move dependabot config to .github folder (#1242) 2020-07-13 23:18:30 -05: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
Oleg Butuzov
6e7c317610
Sorting result.Issues implementation (golangci/golangci-lint#1217) (#1218) 2020-07-12 16:35:08 -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
Sergey Vilgelm
27a97ae49a
Update golangci-lint-action to use v1.2.2 (#1238) 2020-07-12 12:39:44 -05: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
Tam Mach
a52e5ede26
Update the steps to make sure only template_date.state file is updated. (#1236)
Related to https://github.com/golangci/golangci-lint/pull/1234

Signed-off-by: sayboras <sayboras@yahoo.com>
2020-07-12 16:35:43 +10:00
Sergey Vilgelm
4ea3adc621
Update assets and README (#1234) 2020-07-11 19:22:01 -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
v1.28.3
2020-07-11 16:30:37 +02:00
Joe Wilner
60abe4ab6a
Use lowercase directories (#1229) 2020-07-10 22:09:01 -05:00
Joe Wilner
6550984878
Configure path prefix via processor abstraction (#1226) 2020-07-11 09:14:52 +10:00
Sergey Vilgelm
916213c596
Fix deprecation warning in goreleaser (#1224)
DEPRECATED: `brews.github` should not be used anymore, check https://goreleaser.com/deprecations#brewsgithub for more info.
2020-07-09 23:45:31 -05:00
sonata
b98fda6f34
Enable linters for golangci-lint (#1221)
* Enable linters for golangci-lint

* Remove unused nolint

* Fix lint
2020-07-10 10:50:06 +09:00
Tam Mach
45db4bd567
Bump gihub-action-config after patch release (#1223)
Signed-off-by: Tam Mach <sayboras@yahoo.com>
2020-07-10 11:22:11 +10: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>
v1.28.2
2020-07-08 14:02:19 +02:00
Sergey Vilgelm
d287af010a
Explicitly pass GITHUB_TOKEN env to goreleaser action (#1215)
* Explicitly pass GITHUB_TOKEN env to goreleaser action
* Update the goreleaser-action and setup-go actions to v2
2020-07-08 11:02:59 +10:00
Denis Tingaikin
761038782a
make assets/github-action-config.json (#1216)
make update_contributors_list

Signed-off-by: denis-tingajkin <denis.tingajkin@xored.com>
2020-07-07 07:20:09 +10:00
iwankgb
d24bff534c
Fixed docs link: points at contributing section (#1212)
Some checks failed
CI / golangci-lint (push) Failing after 4m50s
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 5m18s
/lgtm
/approve
v1.28.1
2020-07-06 09:59:53 +08:00
Denis Tingaikin
dfa0013583
Fix: goheader linter can throw nil pointer exception in case of a source file has not issues (#1209)
* fix potential nil pointer exception

Signed-off-by: denis-tingajkin <denis.tingajkin@xored.com>

* add test to cover

Signed-off-by: denis-tingajkin <denis.tingajkin@xored.com>
2020-07-05 15:32:00 +07:00
Tam Mach
afa9be632b
Use latest golangci-lint to lint golangci-lint (#1206)
Signed-off-by: Tam Mach <sayboras@yahoo.com>
2020-07-05 18:21:44 +10:00
Tam Mach
fbce520dd8
To enable v1.28 in github action (#1207) 2020-07-05 18:07:39 +10: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
v1.28.0
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
Simon Sawert
954127e56d
Build rpm and deb packages with goreleaser (#1196)
* Build rpm and deb packages with goreleaser

* Remove faulty single quote
2020-07-02 13:55:33 +02:00
Tam Mach
184bbf8eca
Bump goreleaser to v0.136.0 (#1198) 2020-06-27 00:24:08 +10:00
Duco van Amstel
5f0de2982b
Protect NewFilenameUnadjuster from concurrent map writes (#1192) 2020-06-25 14:57:49 +02: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
Shintaro Ikeda
b8216ca2aa
Update not found url in new-linters.mdx (#1171) 2020-05-30 00:23:47 -04: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
Soichiro Kashima
71b2f04e88
handle some block comment to detect generated files (#1161) 2020-05-25 19:36:46 +03:00
Nishanth Shanmugham
6684c8b25c
update new-linters doc (#1167) 2020-05-25 19:09:16 +03:00
Ryan Currah
fa7adcbda9
add ability to set issue severity (#1155)
* add ability to set issue severity for out formats that support it based on severity rules

* fix lint issues

* change log child name

* code climate omit severity if empty

* add tests for severity rules, add support for case sensitive rules, fix lint issues, better doc comments, share processor test

* deduplicated rule logic into a base rule that can be used by multiple rule types, moved severity config to it's own parent key named severity, reduced size of NewRunner function to make it easier to read

* put validate function under base rule struct

* better validation error wording

* add Fingerprint and Description methods to Issue struct, made codeclimate reporter easier to read, checkstyle output is now pretty printed
2020-05-25 08:21:42 -04:00
Tam Mach
dc260be693
Add exportloopref linter (#1163) 2020-05-24 10:31:32 +03:00
Denis Isaev
fd0524f535
cache: fix warning (#1162)
Fix warning about not existing cache file.

Fixes: #925
2020-05-24 10:19:00 +03:00