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
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
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
f95b1ed39f
golint: deprecation ( #1965 )
2021-05-11 00:50:50 +02:00
Tom Arrell
92fda268b2
Update Wrapcheck to v2, add configuration ( #1947 )
2021-05-01 00:13:51 +02:00
Ludovic Fernandez
12ed5facc9
staticcheck: configurable Go version. ( #1946 )
2021-04-30 22:28:50 +02:00
Ludovic Fernandez
8f3ad45e1c
gosec: add configuration ( #1930 )
2021-04-24 23:20:12 +02:00
Ludovic Fernandez
5d10450bc9
dev: clean configuration, documentation, and code ( #1911 )
...
* Remove dead code related to golangci.com
* remove old build tags
* stale bot: remove bug label from `exemptLabels`
* order `gitignore` entries alphabetically
* doc: order `linters-settings` alphabetically
* remove obsolete exclude rule
* release: add docs prefix to skip the commit in the changelog
2021-04-14 12:48:48 +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 )
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
8db518cee0
Add versions, improve deprecation system, improve linters page ( #1854 )
2021-03-17 16:17:33 +01:00
Ludovic Fernandez
b6a6faa982
Add new presets ( #1847 )
2021-03-16 13:33:28 +01:00
Ludovic Fernandez
87d37c6cf5
Restore fast linters meaning ( #1844 )
...
* fix: remove useless conditions.
* feat: considere revive as slow.
* feat: considere linters with go analysis as slow.
2021-03-15 10:13:54 +03:00
Ludovic Fernandez
92adaa4497
docs: improve linters page ( #1842 )
2021-03-14 14:15:52 +01:00
Ludovic Fernandez
fce3949d5b
Deprecate 'scopelint' linter ( #1819 )
...
* Deprecate scopelint linter
* clean code base.
2021-03-09 10:19:22 -08:00
Ludovic Fernandez
94d2d803d2
Add gomoddirectives linter. ( #1817 )
2021-03-09 18:59:06 +01:00
Kamil Samigullin
c2b813325f
docs: update url of gocyclo linter ( #1794 )
2021-02-28 12:31:14 +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
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
Sergey Vilgelm
251b205f54
Deprecate Interfacer
linter ( #1755 )
2021-02-20 18:55:11 -06:00
Ludovic Fernandez
ea5f479087
exhaustivestruct: add missing settings ( #1746 )
2021-02-19 19:20:47 +01:00
Ludovic Fernandez
32e8517a34
cyclop: add missing settings ( #1743 )
2021-02-18 21:17:04 +01:00
Bartłomiej Klimczak
2121370f81
add 'cyclop' linter ( #1738 )
2021-02-17 09:48:29 +01:00
Ludovic Fernandez
1b30a171ce
fix: wrong load mode ( #1733 )
...
* fix: asciicheck
* fix: exportloopref
* fix: exhaustivestruct
* fix: makezero
2021-02-14 12:11:38 -06:00
Ludovic Fernandez
b0b2dc6b36
feat: add durationcheck linter. ( #1734 )
...
Co-authored-by: Sergey Vilgelm <sergey.vilgelm@ibm.com>
2021-02-14 11:47:06 -06:00
Sebastian Spaink
35b6f35476
Add "revive" linter ( #1729 )
2021-02-14 14:36:37 +01:00
Ludovic Fernandez
60455b502b
fix: add missing ifshort configuration. ( #1672 )
2021-02-01 23:13:53 +01:00
Eugene Simonov
750309d157
Add ifshort linter ( #1587 )
2021-01-20 23:07:43 +01:00
Nishanth Shanmugham
76c452197b
add 'predeclared' linter ( #1606 )
2021-01-07 17:58:04 +01:00
Dudás Ádám
df9278efd2
resolve custom linters' path relative to config file directory ( #1572 )
...
Resolves golangci/golangci-lint#1085
2020-12-27 02:02:25 +03:00
Andrew Shannon Brown
222076fdc6
Add forbidigo linter ( #1569 )
2020-12-24 17:19:32 +01:00
Aleksey Bakin
0370d3adea
Add thelper linter ( #1541 )
2020-12-13 14:54:26 +01:00
Andrew Shannon Brown
cf32a7b706
Add makezero linter ( #1520 )
...
makezero ensures that objects recognized as slices are initialized with length 0. By default, this is only required when we find a subsequent append to the object, but can also be enabled at all times as a way of discouraging the use of integer variables (i.e. "i") to index slices.
2020-12-05 07:37:37 -08:00
Kunwardeep
b90551cdf9
add new paralleltest linter ( #1503 )
Extra / Vulnerability scanner (push) Failing after 15m24s
CI / go-mod (push) Failing after 15m22s
CI / golangci-lint (push) Failing after 15m20s
Release a tag / release (push) Failing after 15m18s
CI / tests-on-windows (push) Has been cancelled
CI / tests-on-macos (push) Has been cancelled
CI / tests-on-unix (1.13) (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 / 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
2020-11-22 22:28:38 +03:00
Mateusz Gozdek
9ff0f31ed7
pkg/lint/lintersdb: report all unknown linters at once ( #1477 )
...
Otherwise, if one configures multiple invalid linters, or jumps between
the versions, it is annoying to get same error with different value N
times.
Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com>
2020-11-01 20:31:15 +00:00
Mateusz Bilski
c57627b18c
Add exhaustivestruct linter ( #1411 )
...
* Add exhaustivestruct linter
* CHange load mode to types info
* Fix go.mod
2020-10-12 08:35:02 +02:00
Vladimir Evgrafov
796a958805
Add go-errorlint ( #1420 )
...
* Add errorlint
* Add errorlint config example
2020-10-09 15:42:48 +03:00
Tom Arrell
247b6c2796
Add wrapcheck linter ( #1407 )
...
* Add failing test
* Add wrapcheck linter
2020-10-06 13:40:00 +02:00
Melvin
926e76dcf2
Add tparallel linter ( #1380 )
2020-10-02 13:00:46 -07:00
Grigory Zubankov
6b60cb8a30
new nlreturn linter ( #1267 )
...
* new nlreturn linter
* fix: import order
Co-authored-by: Sergey Vilgelm <sergey.vilgelm@ibm.com>
2020-08-02 15:16:45 -05:00
Sergey Vilgelm
3aa04f5b62
Add WithAutofix flag for gofumpt linter config ( #1281 )
2020-08-02 15:09:50 -05:00