744 Commits

Author SHA1 Message Date
Maik Schreiber
1b53520405
bump varnamelen to v0.4.0 (#2348) 2021-11-06 01:12:29 +01:00
Nishanth Shanmugham
054fc3ff50
exhaustive: upgrade to v0.3.6; add new flags and deprecate old ones (#2344) 2021-11-04 23:08:37 +01:00
Lucas Bremgartner
861262b71f
Add github.com/breml/bidichk linter (#2330)
Some checks failed
Extra / Vulnerability scanner (push) Has been cancelled
CI / go-mod (push) Has been cancelled
CI / golangci-lint (push) Has been cancelled
Release a tag / release (push) Has been cancelled
CI / tests-on-windows (push) Has been cancelled
CI / tests-on-macos (push) Has been cancelled
CI / tests-on-unix (1.16) (push) Has been cancelled
CI / tests-on-unix (1.17) (push) Has been cancelled
CI / check_generated (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/Dockerfile.alpine]) (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/Dockerfile]) (push) Has been cancelled
2021-11-02 21:54:42 +01:00
Sebastien Rosset
2c01ea7ff2
gocritic: add support for variable substitution in ruleguard path settings (#2308)
* 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 (#2341) 2021-11-02 19:25:21 +01:00
Oleksandr Redko
1be9570abf
Refactor: preallocate slices (#2340) 2021-11-02 09:27:06 -07:00
Ludovic Fernandez
a8887d5655
fix: don't hide enable-all option (#2338) 2021-11-02 14:02:23 +01:00
Kirill Danshin
8cb9c769ff
fix: Add missing space in "disabled by config" warning (#2310)
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 (#2318) 2021-11-01 20:21:26 +01:00
Ryan Leung
cc262bbac9
gosec: filter issues according to the severity and confidence (#2295) 2021-10-28 00:49:02 +02:00
Maik Schreiber
f500e4cb87
add varnamelen linter (#2240) 2021-10-28 00:37:13 +02:00
Ludovic Fernandez
413bec6a4d
errcheck: empty selector name. (#2309) 2021-10-25 15:04:13 +02:00
Sebastien Rosset
bdc2f96de9
Add code comments to document source code (#2306) 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 (#2041)
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 (#2299)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2021-10-19 00:20:49 +02:00
sylvia
7fc2fe81f1
feat: add contextcheck linter (#2216) 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 (#2264) 2021-09-30 18:43:31 +02:00
sivchari
20699a7213
Add tenv linter (#2221) 2021-09-26 19:50:47 +02:00
Oleg Butuzov
17d24ebd67
nlreturn: add block-size option (#2237) 2021-09-18 14:29:45 +02:00
Anton Telyshev
32292622f8
Add nilnil linter (#2236) 2021-09-17 10:25:37 +02:00
Oleg Butuzov
2ea496f22b
new-linter: ireturn (checks for function return type) (#2219) 2021-09-16 11:47:56 +02:00
Luke Shumaker
54f4301ddf
gci: Parse the settings more similarly to the cli (#2217)
Some checks failed
Extra / Vulnerability scanner (push) Has been cancelled
CI / go-mod (push) Has been cancelled
CI / golangci-lint (push) Has been cancelled
Release a tag / release (push) Has been cancelled
CI / tests-on-windows (push) Has been cancelled
CI / tests-on-macos (push) Has been cancelled
CI / tests-on-unix (1.15) (push) Has been cancelled
CI / tests-on-unix (1.16) (push) Has been cancelled
CI / tests-on-unix (1.17) (push) Has been cancelled
CI / check_generated (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/Dockerfile.alpine]) (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/Dockerfile]) (push) Has been cancelled
2021-09-04 16:39:09 +02:00
Ludovic Fernandez
ee30b44e4e
go-critic: fix invalid type conversions. (#2186) 2021-08-20 09:30:05 +02:00
Tyler Beverley
a07b1fa26b
docs: suggest golangci-lint help linters (#2117) 2021-08-05 08:12:22 +02:00
Anton Telyshev
652bd912af
Add errname linter (#2129)
* Add errname linter

* bump errname version
2021-08-04 15:19:58 -07:00
Ludovic Fernandez
15963edb57
Revert "add nilassign linter" (#2154)
This reverts commit bbf045026561868378d730fdefebe0f0f62c2087.
2021-08-03 17:30:42 +02:00
hn8
6c295e4042
deps: Update Wrapcheck to v2.3.0 (#2145)
* 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 (#2131)
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. (#2128) 2021-07-27 11:13:33 +02:00
Robert Liebowitz
b3f9763246
errcheck: allow exclude config without extra file (#2110)
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 (#2112) 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 (#2113) 2021-07-13 02:07:23 +02:00
Ludovic Fernandez
36aa12425c
docs: Improve goimports description (#2109) 2021-07-07 22:14:02 +02:00
Tam Mach
a6fcf6f001
cleanup: Remove completion subcommand (#2107) 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 (#2085)
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" (#2078) 2021-06-26 00:04:04 +02:00
Kailun Qin
678ae9fcaf
gofumpt: Add lang-version option (#2069) 2021-06-23 05:56:20 +02:00
Ludovic Fernandez
9ce20f91d5
revive: add enable-all-rules. (#2075) 2021-06-23 01:06:43 +02:00
Ludovic Fernandez
a20748098f
revive: fix exclude comment rule for const block. (#2064)
Some checks failed
Extra / Vulnerability scanner (push) Has been cancelled
CI / go-mod (push) Has been cancelled
CI / golangci-lint (push) Has been cancelled
Release a tag / release (push) Has been cancelled
CI / tests-on-windows (push) Has been cancelled
CI / tests-on-macos (push) Has been cancelled
CI / tests-on-unix (1.15) (push) Has been cancelled
CI / tests-on-unix (1.16) (push) Has been cancelled
CI / check_generated (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/Dockerfile.alpine]) (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/Dockerfile]) (push) Has been cancelled
2021-06-19 17:59:57 +02:00
ofw
eed344f619
revive: allow to disable rule (#2055)
Some checks failed
Extra / Vulnerability scanner (push) Has been cancelled
CI / go-mod (push) Has been cancelled
CI / golangci-lint (push) Has been cancelled
Release a tag / release (push) Has been cancelled
CI / tests-on-windows (push) Has been cancelled
CI / tests-on-macos (push) Has been cancelled
CI / tests-on-unix (1.15) (push) Has been cancelled
CI / tests-on-unix (1.16) (push) Has been cancelled
CI / check_generated (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/Dockerfile.alpine]) (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/Dockerfile]) (push) Has been cancelled
2021-06-15 14:28:07 +02:00
paul fisher
52b55141c4
Bump github.com/jgautheron/goconst from 0.5.6 to 0.5.7(#2044) 2021-06-09 22:20:13 +02:00
Matthew Cobbing
2862ca630c
output: generate HTML report (#2043) 2021-06-08 01:33:40 +02:00
Ludovic Fernandez
505ed3c0f7
doc: Un-deprecate enable-all option. (#2039) 2021-06-02 17:04:48 +02:00
Ludovic Fernandez
6172338bd4
nolintlint: fix false positive. (#2013) 2021-05-31 09:04:37 +02:00
Mitsuo Heijo
a68a88ee02
build(deps): bump honnef.co/go/tools from v0.1.4 to v0.2.0 (#2019) 2021-05-29 20:44:40 +02:00
Kensei Nakada
2dcc761d21
Update wastedassign to v2.0.6 (#2020)
* Update: wastedassign to v2.0.5

* Update: wastedassign to v2.0.6
2021-05-29 14:26:26 +03:00
Ryan Currah
7776b546b8
gomodguard: fix problem where duplicate issues were being reported (#2018) 2021-05-27 22:21:23 +02:00
Ludovic Fernandez
b916c9318b
staticcheck: configuration for staticcheck, gosimple, stylecheck (#2017) 2021-05-27 20:11:30 +02:00
Ludovic Fernandez
fb7c90d6ee
revive: fix excludes (#2005) 2021-05-23 19:05:38 +02:00
Ludovic Fernandez
62668d41d0
revive: improve 'exported' rule output. (#1994) 2021-05-20 01:17:02 +02:00