858 Commits

Author SHA1 Message Date
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
Denis Isaev
810c194dc7
dev: disable mac os build because of timeouts 2020-05-17 21:47:30 +03:00
Denis Isaev
2c672912ea
dev: don't duplicate greeting 2020-05-17 18:27:05 +03:00
Denis Isaev
d093a22c28
dev: fix peril 2020-05-17 18:14:43 +03:00
Denis Isaev
86fff57bc0
docs: update changelog (#1139) 2020-05-17 17:53:35 +03:00
Denis Isaev
4c94e3400e
dev: add peril to invite contributors
Invite a contributor to GolangCI
organization after a first pull request
get merged.
2020-05-17 17:44:43 +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
Denis Isaev
530b809cf4 dev: use dependabot instead of renovate
Renovate lacks of commits diff: it's difficult
to ensure that update is safe.
2020-05-17 16:18:46 +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]
7c33433923
chore(deps): update module goreleaser/goreleaser to v0.134.0 (#1116)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-17 15:57:55 +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
renovate[bot]
73a9aadce8
chore(deps): update module spf13/cobra to v1 (#1129)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-17 13:40:16 +03:00
Isaev Denis
83332f6c07
dev: remove TODO (#1131) 2020-05-17 13:07:51 +03:00
Denis Isaev
97c4ed29ec docs: fix contributing.md 2020-05-17 12:44:17 +03:00
Denis Isaev
ae028ee981 dev: fix welcome text 2020-05-17 12:37:33 +03:00
Denis Isaev
429176412b dev: replace actions/first-interaction with app 2020-05-17 12:31:03 +03:00
Denis Isaev
84892fc15f docs: add contributing quick start 2020-05-17 10:49:51 +03:00
Isaev Denis
b49d2df623
dev: use fast_check_generated in CI (#1104) 2020-05-17 00:08:16 +03:00
Denis Isaev
be8ec2787b dev: add 'delepndency' label for renovate 2020-05-17 00:07:17 +03:00
renovate[bot]
3be4269042
chore(deps): update github.com/golangci/gocyclo commit hash to 0a533e8 (#1101)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-16 23:58:21 +03:00
Denis Isaev
bc24805f9d dev: welcome first-time contributors 2020-05-16 23:57:14 +03:00
renovate[bot]
8959cdc3a6
chore(deps): update github.com/djarvur/go-err113 commit hash to 5174e21 (#1099)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-16 23:40:45 +03:00
Denis Isaev
32f431c5f4 docs: configure google analytics 2020-05-16 23:36:11 +03:00
Denis Isaev
e3227ec340 docs: add articles about contributing 2020-05-16 23:09:06 +03:00