370 Commits

Author SHA1 Message Date
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
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
sivchari
bbf0450265
add nilassign linter (#2131)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2021-07-28 20:27:26 +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
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
dependabot[bot]
b5d847f07f
build(deps): bump github.com/mgechev/revive from 1.0.6 to 1.0.7 (#2027) 2021-05-31 09:31:49 +02:00
Ludovic Fernandez
6172338bd4
nolintlint: fix false positive. (#2013) 2021-05-31 09:04:37 +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
Ludovic Fernandez
fcef82475c
docs: improve linters page (#1995)
* TOC level 3
* drop `.golangci.yaml` from the Configuration page
* generate a dedicated configuration section for each linters.
* fix changelog heading
2021-05-17 23:56:46 +02:00
Ludovic Fernandez
f95b1ed39f
golint: deprecation (#1965) 2021-05-11 00:50:50 +02:00
Chris Bandy
5c6adb63c9
importas: allow repeated aliases (#1960)
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-05-08 18:18:50 +02:00
Stephen Brown II
07a0568df1
importas: add message if settings contain no aliases (#1956) 2021-05-07 00:58:10 +02:00
Kensei Nakada
c213e4ed71
Bump wastedassign to v1.0.0 (#1955) 2021-05-05 13:22:48 +02:00
Ludovic Fernandez
ffe80615b0
Update importas to HEAD (#1934) 2021-05-01 18:41:42 +02:00
Ludovic Fernandez
a7865d2430
Update errorlint to HEAD (#1933) 2021-05-01 18:41:26 +02:00
Ludovic Fernandez
34ffdc243f
revive: convert hard coded excludes into default exclude patterns (#1938) 2021-05-01 18:40:56 +02:00
Ludovic Fernandez
8f3ad45e1c
gosec: add configuration (#1930) 2021-04-24 23:20:12 +02:00
Ludovic Fernandez
93df6f75f5
Add tagliatelle linter (#1906) 2021-04-12 17:59:50 +02:00
Ben Ye
6844f6abf8
Add promlinter to lint metrics name (#1265) 2021-03-30 14:56:42 +02:00
Ludovic Fernandez
9aea4aee1c
typecheck: display compilation errors as report instead of error (#1861)
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.14) (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-03-25 23:52:55 +01:00
Ludovic Fernandez
809be02635
fix: linters load mode (#1862) 2021-03-21 23:06:40 +01:00
Ludovic Fernandez
cd6644d47b
revive: the default configuration is only applied when no dedicated configuration. (#1831) 2021-03-15 12:39:04 +01:00
Andrew Shannon Brown
e1a734e559
nolintlint: allow to fix //nolint lines (#1583) 2021-03-13 05:11:05 +01:00
Ludovic Fernandez
9838a57941
dev: remove old TODO and remove assert import alias on require. (#1838) 2021-03-13 04:45:32 +01:00
Ludovic Fernandez
2ebc9d7202
dev: clean configuration and code (#1830) 2021-03-09 19:46:18 +01:00
Ludovic Fernandez
fce3949d5b
Deprecate 'scopelint' linter (#1819)
* Deprecate scopelint linter

* clean code base.
2021-03-09 10:19:22 -08:00
Kensei Nakada
351f57b174
bump wastedassign to v0.2.0 (#1815) 2021-03-09 18:38:47 +01:00
Ludovic Fernandez
5698d46e1f
Add ForceTypeAssert linter (#1789) 2021-02-26 22:34:12 +01:00
Ludovic Fernandez
66fc779795
Add nilerr linter. (#1788) 2021-02-26 22:12:32 +01:00
Sergey Vilgelm
05836e489b
Integrate ImportAs linter (#1783)
* Integrate ImportAs linter

* review: don't panic :)

Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2021-02-26 13:08:49 -06:00
Sergey Vilgelm
eefb97438c
ineffassign: use upstrea instead of golangci fork (#1780) 2021-02-26 00:36:43 +01:00
Sergey Vilgelm
b77118fdac
Use errcheck from main repo instead of golangci-lint fork (#1319)
Co-authored-by: Roman Leventov <leventov@ya.ru>
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2021-02-25 13:16:48 +01:00
Ludovic Fernandez
b407bb8fd0
revive: add rule name in message. (#1772) 2021-02-24 09:07:54 +01:00
Ludovic Fernandez
42ff682f7f
Deprecate maligned, add govet fieldalignment as replacement (#1765) 2021-02-22 17:46:27 +01:00
Kensei Nakada
012559c506
Add linter wastedassign (#1651) 2021-02-21 22:01:51 +01:00
Patrick Kuca
a3c2ed0206
test: Remove comparison to gometalinter in benchmarks (#1732) 2021-02-21 20:24:01 +01:00
Ludovic Fernandez
2e7c389deb
Update staticcheck to v0.1.2 (2020.2.2) (#1756) 2021-02-21 16:27:32 +01:00
Ludovic Fernandez
a1e3749ac2
Bump github.com/Djarvur/go-err113 to HEAD (#1760) 2021-02-21 14:48:54 +01:00
Ludovic Fernandez
9e9a814052
test: Bump github.com/shirou/gopsutil to v3.21.1 (#1759) 2021-02-21 14:42:49 +01:00
Sergey Vilgelm
251b205f54
Deprecate Interfacer linter (#1755) 2021-02-20 18:55:11 -06:00
Andrew Shannon Brown
eace6a11a9
test: Allow fix tests to run concurrently (#1576) 2021-02-20 16:38:39 +01:00
Sergey Vilgelm
f00da2c0b7
Add stringintconv and ifaceassert to govet (#1360) 2021-02-20 16:37:05 +01:00
Simon Sawert
b7aac3b1ad
Bump wsl to v3.2.0 (#1750) 2021-02-20 15:16:10 +01:00
Ludovic Fernandez
b39dbcd694
durationcheck: False positive when multiplying with int type struct field (#1744)
Some checks failed
Extra / Vulnerability scanner (push) Failing after 33s
CI / go-mod (push) Failing after 43s
CI / golangci-lint (push) Failing after 1m0s
CI / tests-on-windows (push) Has been skipped
CI / tests-on-macos (push) Has been skipped
CI / tests-on-unix (1.14) (push) Has been skipped
CI / tests-on-unix (1.15) (push) Has been skipped
CI / tests-on-unix (1.16) (push) Has been skipped
CI / check_generated (push) Has been skipped
Release a tag / release (push) Failing after 1m10s
Release a tag / docker-release (map[Dockerfile:build/Dockerfile.alpine]) (push) Has been skipped
Release a tag / docker-release (map[Dockerfile:build/Dockerfile]) (push) Has been skipped
2021-02-20 12:43:21 +01:00
Ludovic Fernandez
ea5f479087
exhaustivestruct: add missing settings (#1746) 2021-02-19 19:20:47 +01:00
Ludovic Fernandez
4b3fb4c64f
revive: fix types and default configuration. (#1747) 2021-02-19 01:40:40 +01:00