887 Commits

Author SHA1 Message Date
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
Andrew Shannon Brown
90a8cd41bd
Fix up nolintlint comments and urls (#1164) 2020-05-24 10:08:14 +03:00
Denis Isaev
57e4203661 dev: update contributors list
Take into account contributions in golancgi-lint-action.
Run `cd .github/contributors && npm run all`
2020-05-23 13:06:55 +03:00
Aleksandr Razumov
922071f6f7
dev: fix Windows asset name (#1160)
dev: goreleaser: use ProjectName in name template

This is correct way to generate file names.

Fix #1157
2020-05-23 11:55:06 +03:00
Denis Isaev
9119ca7e78
docs: recommend binary installation for windows and linux (#1159)
Relates: #1087
2020-05-23 02:06:20 +03:00
Denis Isaev
156eaaa963
dev: update github action config (#1158) 2020-05-23 02:05:52 +03:00
Denis Isaev
fc0a898a6a
docs: update contributors listing 2020-05-19 15:04:40 +03:00
Denis Isaev
a1e1226977
docs: list contributors 2020-05-19 14:41:16 +03:00
Isaev Denis
3c46e160de
fix invalid error message "no go files to analyze" (#1154)
In case of timeouts of go/packages loading
we could return such error.

Relates: #825
2020-05-19 09:55:25 +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
Julia Ogris
ba6476a608
Fix syntax highlighting for bash scripts (#1151)
Fix syntax highlighting for bash scripts by changing language from
bash to sh in triple-backtick blocks: ```bash -> ```sh.

Some of these blocks had command output or prompt as part of the
listening which formatted in odd ways, e.g. colouring every occurrence
of the word "for" or "help" in purple.

With the sh language specification these wrong colours are gone, so use
it.
2020-05-18 15:53:20 +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
Isaev Denis
2c45244db8
docs: add /robots.txt (#1143) 2020-05-18 10:56:57 +03:00
Denis Isaev
f0c0f06f3d
docs: add link to good issues for contributing 2020-05-17 23:08:39 +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
Denis Isaev
046be12ec7
docs: add versioning policy and releases 2020-05-17 22:01:59 +03:00