556 Commits

Author SHA1 Message Date
Tim Kral
a5f0a4d861
wrapcheck: update configuration to include ignoreSignRegexps () 2021-11-26 23:26:31 +01:00
Lucas Bremgartner
55358972d6
Add errchkjson linter () 2021-11-26 23:25:59 +01:00
dependabot[bot]
fc888cf0cb
build(deps): bump github.com/nishanths/exhaustive from 0.6.0 to 0.7.11 ()
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2021-11-20 18:53:51 +01:00
Maik Schreiber
7f25fee16b
bump varnamelen from v0.4.0 to v0.5.0 () 2021-11-20 16:36:07 +01:00
Alexander Melentyev
b67af9afb9
dev: clean up and used iota for exit codes () 2021-11-18 19:52:21 +01:00
Alexander Melentyev
ef928947b5
dev: reused exit codes () 2021-11-18 19:46:44 +01:00
Danil Ovchinnikov
ec58c48180
Show deprecated mark in the CLI linters help ()
* Show deprecated mark in linters list

* fix output deprecated mark in linters list
2021-11-14 14:33:46 -08:00
Rafik Draoui
e788757b32
Ensure that the Issues key in JSON format is a list ()
This makes the data more consistent and easier to use with other tools.
For example, a third-party tool can iterate over `Issues` without having
to make a preliminary null check.
2021-11-14 14:33:19 -08:00
Ludovic Fernandez
aa3550ab83
fix: reduce flaky in the CI and clean the .golangci.yml of the project ()
* fix: clean linter configuration
* fix: minor changes
* fix: increase timeout
2021-11-14 16:03:40 +01:00
Oleksandr Redko
99c6516c6b
docs: fix grammar issues in comments () 2021-11-11 05:56:36 +01:00
dependabot[bot]
ecbb9c475f
build(deps): bump github.com/nishanths/exhaustive from 0.3.6 to 0.6.0 ()
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2021-11-09 01:50:02 +01:00
Lucas Bremgartner
4950169191
bump bidichk from v0.1.1 to v0.2.0 2021-11-06 15:24:04 +01:00
Maik Schreiber
1b53520405
bump varnamelen to v0.4.0 () 2021-11-06 01:12:29 +01:00
Nishanth Shanmugham
054fc3ff50
exhaustive: upgrade to v0.3.6; add new flags and deprecate old ones () 2021-11-04 23:08:37 +01:00
Lucas Bremgartner
861262b71f
Add github.com/breml/bidichk linter () 2021-11-02 21:54:42 +01:00
Sebastien Rosset
2c01ea7ff2
gocritic: add support for variable substitution in ruleguard path settings ()
* Add  variable for ruleguard config directory

* Add  variable for ruleguard config directory

* Add  variable for ruleguard config directory

* Add  variable for ruleguard config directory

* Add unit tests

* Add unit tests for ruleguard

* Add unit tests for ruleguard

* Add unit tests for ruleguard

* Add unit tests for ruleguard, fix package name
2021-11-02 11:34:19 -07:00
Oleksandr Redko
f9f6486e15
docs: change Github to GitHub in comments and docs () 2021-11-02 19:25:21 +01:00
Oleksandr Redko
1be9570abf
Refactor: preallocate slices () 2021-11-02 09:27:06 -07:00
Ludovic Fernandez
a8887d5655
fix: don't hide enable-all option () 2021-11-02 14:02:23 +01:00
Kirill Danshin
8cb9c769ff
fix: Add missing space in "disabled by config" warning ()
Before this change, the message said "However, as this checkis disabled by default".
2021-11-01 20:32:39 -07:00
Benjamin
e5cd59a607
dev: replace ioutil with io and os () 2021-11-01 20:21:26 +01:00
Ryan Leung
cc262bbac9
gosec: filter issues according to the severity and confidence () 2021-10-28 00:49:02 +02:00
Maik Schreiber
f500e4cb87
add varnamelen linter () 2021-10-28 00:37:13 +02:00
Ludovic Fernandez
413bec6a4d
errcheck: empty selector name. () 2021-10-25 15:04:13 +02:00
Sebastien Rosset
bdc2f96de9
Add code comments to document source code () 2021-10-25 00:06:58 +02:00
dependabot[bot]
4ce9a19e7d
build(deps): bump github.com/go-critic/go-critic from 0.5.6 to 0.6.0 ()
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2021-10-23 00:51:11 +02:00
dependabot[bot]
6edca924d3
build(deps): bump github.com/securego/gosec/v2 from 2.8.1 to 2.9.1 ()
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2021-10-19 00:20:49 +02:00
sylvia
7fc2fe81f1
feat: add contextcheck linter () 2021-10-04 23:21:50 +02:00
Nate Finch
9b577fcb80
new-from-rev: add support for finding issues in entire files in a diff () 2021-09-30 18:43:31 +02:00
sivchari
20699a7213
Add tenv linter () 2021-09-26 19:50:47 +02:00
Oleg Butuzov
17d24ebd67
nlreturn: add block-size option () 2021-09-18 14:29:45 +02:00
Anton Telyshev
32292622f8
Add nilnil linter () 2021-09-17 10:25:37 +02:00
Oleg Butuzov
2ea496f22b
new-linter: ireturn (checks for function return type) () 2021-09-16 11:47:56 +02:00
Luke Shumaker
54f4301ddf
gci: Parse the settings more similarly to the cli () 2021-09-04 16:39:09 +02:00
Ludovic Fernandez
ee30b44e4e
go-critic: fix invalid type conversions. () 2021-08-20 09:30:05 +02:00
Tyler Beverley
a07b1fa26b
docs: suggest golangci-lint help linters () 2021-08-05 08:12:22 +02:00
Anton Telyshev
652bd912af
Add errname linter ()
* Add errname linter

* bump errname version
2021-08-04 15:19:58 -07:00
Ludovic Fernandez
15963edb57
Revert "add nilassign linter" ()
This reverts commit bbf045026561868378d730fdefebe0f0f62c2087.
2021-08-03 17:30:42 +02:00
hn8
6c295e4042
deps: Update Wrapcheck to v2.3.0 ()
* Update Wrapcheck to v2.3

Updat ignoreSigs default, add ignorePackageGlobs

* Update .golangci.example.yml

Co-authored-by: Ludovic Fernandez <ldez@users.noreply.github.com>

Co-authored-by: Ludovic Fernandez <ldez@users.noreply.github.com>
2021-08-02 14:17:39 +02:00
sivchari
bbf0450265
add nilassign linter ()
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2021-07-28 20:27:26 +02:00
Ludovic Fernandez
245257b8fb
docs: improve goconst documentation. () 2021-07-27 11:13:33 +02:00
Robert Liebowitz
b3f9763246
errcheck: allow exclude config without extra file ()
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2021-07-13 02:23:12 +02:00
dependabot[bot]
f285d2c570
build(deps): bump github.com/nishanths/exhaustive from 0.1.0 to 0.2.3 () 2021-07-13 02:22:21 +02:00
dependabot[bot]
d913078be8
build(deps): bump github.com/mgechev/revive from 1.0.8 to 1.0.9 () 2021-07-13 02:07:23 +02:00
Ludovic Fernandez
36aa12425c
docs: Improve goimports description () 2021-07-07 22:14:02 +02:00
Tam Mach
a6fcf6f001
cleanup: Remove completion subcommand () 2021-07-07 13:07:49 +02:00
dependabot[bot]
879821e7ff
build(deps): bump github.com/daixiang0/gci from 0.2.8 to 0.2.9 ()
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2021-06-29 12:47:17 +02:00
subham sarkar
f08d330cbd
dev: fix interface implement check for "SkipDirs" () 2021-06-26 00:04:04 +02:00
Kailun Qin
678ae9fcaf
gofumpt: Add lang-version option () 2021-06-23 05:56:20 +02:00
Ludovic Fernandez
9ce20f91d5
revive: add enable-all-rules. () 2021-06-23 01:06:43 +02:00