215 Commits

Author SHA1 Message Date
David Braley
be3c688da4 I473 (#841)
Support custom linters integration by plugins

Co-authored-by: Isaev Denis <idenx@yandex.com>
2020-01-08 13:51:55 +03:00
Connor Adams
d3e36a97cd Fix typo in golangci-lint 2020-01-04 17:44:43 -05:00
Connor Adams
a73c6edf64 Update GoLand instructions in README.md 2020-01-04 17:44:43 -05:00
Trevor Pounds
cb2f8ba562 Update README to v1.22.2 release. 2019-12-30 12:18:05 -05:00
Trevor Pounds
da91430448 Update README to latest v1.22.1 release. 2019-12-30 10:34:53 -05:00
Trevor Pounds
ef4422572c Update README to latest v1.22.0 release. 2019-12-29 22:29:33 -05:00
Trevor Pounds
f6ced49dcc Simplify skipped dir rules. 2019-12-29 21:21:41 -05:00
Trevor Pounds
a236783627 Update to github.com/go-critic/go-critic v0.4.0. 2019-12-29 19:43:24 -05:00
Sijie Yang
4e9fb74250 Update Trusted By section in README 2019-12-29 17:19:26 -05:00
Patrick Zhang
06dddc3d67 Fix depguard config in yml 2019-12-29 17:12:11 -05:00
Tommy Muehle
e94e36d437 Add new generated README.md 2019-12-05 07:55:04 -05:00
Trevor Pounds
c8af5b0927 Update README.
* Add license, release, and docker badges.
* Fix install instructions/table of contents.
* Fix misc. typos.
2019-12-01 20:21:44 -05:00
Ondrej Fabry
4461816f67 Update README.tmpl.md (#868)
Update README.

* added -S flag to properly show errors for curl
* replaced -q flag with -nv to properly show errors for wget
* added github release badge from shields.io to display latest version next installation
2019-11-30 15:03:53 -05:00
Agniva De Sarker
48b15f3295 Add mattermost to Trusted By (#863) 2019-11-22 18:50:05 -05:00
sayboras
bd2921655a Added go-mnd linter (#842)
* Initial commit

* Fixed goimports

* Update pkg/golinters/mnd.go

Co-Authored-By: Bot from GolangCI <42910462+golangcibot@users.noreply.github.com>

* Run goimports

* Update pkg/golinters/mnd.go

Co-Authored-By: Bot from GolangCI <42910462+golangcibot@users.noreply.github.com>

* Add prefix for goimport local

* Run make README.md

* Incorporate review comments
Add test cases

* Update readme

* Update the description

* Removed subpath in local-prefixes

* Update readme
2019-11-15 19:08:43 -05:00
Simon Sawert
0e5b7a04d5 Bump wsl to v2.0.0 2019-11-15 18:55:54 -05:00
Simon Sawert
8c1e2f004e Revert "Bump wsl to v1.2.7"
This reverts commit 14ebae29060f7c7be67d31a559986aa8afe7cbb0.
2019-11-15 18:55:54 -05:00
Simon Sawert
14ebae2906 Bump wsl to v1.2.7 2019-11-10 19:07:16 -05:00
Kévin Dunglas
1248f098de Add Mercure in the list of projects using golangci-lint 2019-11-08 09:45:56 -05:00
wxdao
2d59694913 Fix typo
Signed-off-by: wxdao <waxiadao@gmail.com>
2019-11-07 18:01:11 -05:00
Denis Isaev
645e79404d
docs: update the latest release to v1.21.0 2019-10-15 20:55:02 +03:00
Daniel Caballero
98f60ebaa3 deadline is now deprecated, but should be taking its value from the configuration if set (#822)
* test that demostrates that deadline is not working if comes from the config

* overriding timeout with deadline when only deadline is different from its default value

* tests were not passing. default value for Deadline, that now only comes from config, is 0. Plus static check is going to fail because of deprecated cfg used

* golangci should use the latest golangci-lint version, that is the one deprecating deadline in favour of timeout

* README updated - looks the ci config in this project is used to generate usage instructions.. great!
2019-10-15 14:11:14 +03:00
Isaev Denis
f2c566b7e2
docs: add skip-dirs-use-default into .golangci.example.yml (#820) 2019-10-14 23:19:57 +03:00
Simon Sawert
22df2d739f Update WSL to v1.2.5 (#811)
* Update WSL to v1.2.4

* Fix false positive multiline case
* Fix false positive slice expression
* Fix false positive index expression
* Support to configure/allow cuddle declarations
* Support to configurre/allow case blocks to end with whitespace
* Support cuddle defer http body close

* Re-generate README.md

* Update WSL to v1.2.5

* Support output comments for example functions

* Fix bad field tag for config
2019-10-14 22:50:34 +03:00
Isaev Denis
9ba730e989
Make incremental analysis (#808)
Cache linting results. Reanalyze only changed packages
and packages tree depending on them.

Fixes #768, fixes #809
2019-10-13 17:40:51 +03:00
Isaev Denis
ca6effbeec
dev: discourage bad practices (#803) 2019-10-12 12:36:03 +03:00
Denis Titusov
0cc87df732 Rename deadline option to timeout and mark deadline as deprecated. (#793) 2019-10-08 09:37:54 +03:00
Simon Sawert
d4b4ad8dfe Update WSL to v1.2.1 (#794)
* Update WSL to v1.2.1

* Add new tests for fixed false positives, don't derive defaults from WSL
2019-10-07 21:22:44 -04:00
Marc Tuduri
a7a60390b1 README: Add SoundCloud to "Trusted By" section 2019-10-05 14:32:22 -04:00
Simon Sawert
3e09174bd2 Add WSL linter (#771)
* Add WSL linter

* Use v1.0.0 tag for wsl

* Don't add specific test file skip, use mutex to add errors

* Fix goimports error

* Add more tests for WSL, bump WSL version

* Fix bad go.sum (go mod tidy)
2019-10-04 16:03:40 -04:00
NiseVoid
fbbd24575f Update whitespace to v0.0.4 (#786) 2019-10-04 15:12:07 +03:00
Trevor Pounds
fd997edeeb Cleanup nolint directives. (#779) 2019-10-03 19:34:19 +03:00
Trevor Pounds
202e6f9546 Enable all gocritic tags. 2019-10-03 11:31:16 -04:00
Tom Payne
92b472e8bc Add twpayne/chezmoi to list of great projects 2019-10-03 09:58:19 -04:00
Tom Payne
470df15ff2 Sort great projects alphabetically 2019-10-03 09:58:19 -04:00
Trevor Pounds
c2447f0d8e Regenerate README. (#777) 2019-10-03 16:22:26 +03:00
Nuruddin Ashr
92ec1a1f4c Add gocognit linter (#756)
* Add gocognit linter

* Remove gocognit to the golangci config

* Make changes on README.md

* Remove gocognit from megacheck benchtest

* Remove command line flags

* Comply with new style
2019-10-03 16:22:06 +03:00
Trevor Pounds
ea417ffa0b Fix incorrect description. 2019-09-30 17:28:43 -04:00
Isaev Denis
95ec0cf21e
dramatically reduce memory usage (#758)
Run all linters per package. It allows unloading package data when it's
processed. It dramatically reduces memory (and CPU because of GC) usage.

Relates: #337
2019-09-30 16:19:41 +03:00
Robin Yue
7a93526db7 add cyclone to the list of great projects 2019-09-29 12:02:19 -04:00
Trevor Pounds
d63d23537d Fix broken dominikh/go-tools URLs. (#747)
Fixes #654
2019-09-25 18:25:58 +03:00
Isaev Denis
2cadaf5beb
dev: enable whitespace, dogsled, funlen on the repo (#746) 2019-09-25 18:08:28 +03:00
Trevor Pounds
27ac4c7884 Update minimum Go version to 1.12. 2019-09-23 15:41:57 -04:00
NiseVoid
9976bdcc5e Update whitespace 2019-09-23 12:16:06 -04:00
Denis Isaev
3aade55e05 Reduce memory usage of go/analysis 2019-09-23 09:52:54 +03:00
Trevor Pounds
92168d033d Add dogsled linter. (#705) 2019-09-17 08:44:53 +03:00
Isaev Denis
6a979fb40d
Update staticcheck and cache go/analysis facts (#699)
* update staticcheck

Don't fork staticcheck: use the upstream version.
Remove unneeded SSA loading.

* Cache go/analysis facts

Don't load unneeded packages for go/analysis.
Repeated run of go/analysis linters now 10x faster
(2s vs 20s on this repo) than before.
2019-09-17 08:42:16 +03:00
Aleksandr Razumov
f3f5dfc3eb govet: implement analyzers config (#697) 2019-09-16 00:15:08 +03:00
Will Dixon
9161de5b7d Upgrade depguard to fix performance issue with go modules (#698)
* Upgrade depguard to fix performance issue with go modules

* Fix linting error of unused function
2019-09-15 14:13:16 +03:00
Denis Isaev
4ffe85cae8
docs: update changelog 2019-09-14 14:15:27 +03:00