Aleksandr Razumov
5999fb0b0a
Merge pull request #944 from ksoichiro/fix-failed_prerequisites-error
...
Fix failed_prerequisites error
2020-02-03 00:49:20 +03:00
Trevor Pounds
7a95e5ad30
Fix misspelled words. ( #952 )
2020-02-02 16:29:57 -05:00
Soichiro Kashima
796b4fffbe
Clear part of package fields before analysis
2020-01-28 17:02:00 +09:00
Soichiro Kashima
bb41e54b04
Fix failed_prerequisites error
2020-01-28 01:57:05 +09:00
Trevor Pounds
45f1e48f3d
Fix rowserrcheck URL.
...
Fixes #932
2020-01-21 21:39:11 -05:00
Isaev Denis
6237e59c97
dev: use goprintffuncname, gomnd and rowserrcheck ( #927 )
...
Order linters in config in alphabetical order.
Support gomnd configuration.
2020-01-19 19:55:29 +03:00
to6ka
d137c2e18c
make uniq by line configurable ( #920 )
2020-01-19 16:49:46 +03:00
Isaev Denis
5f1096cf80
add goprintffuncname linter ( #850 )
2020-01-19 16:46:51 +03:00
Denis Isaev
40d7bcd53e
Fix after #890 : don't propagate linter errors for golangci.com
2020-01-19 16:19:23 +03:00
gaojingyu
e93138f00f
Add rows.Err weather checked linter ( #849 )
...
Add rowserrcheck
Co-authored-by: Isaev Denis <idenx@yandex.com>
2020-01-08 14:08:16 +03:00
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
Hiroki Suezawa
7368dd3604
Update gosec and add column
...
Signed-off-by: Hiroki Suezawa <suezawa@gmail.com>
2020-01-04 17:08:51 -05:00
Trevor Pounds
c1673d2277
Add zsh completion command.
...
Fixes #862
2019-12-30 10:15:31 -05:00
Trevor Pounds
60c55133a6
Fix import order.
2019-12-30 09:05:39 -05:00
Chris Koch
7a58a86d38
unused: suggest deleting unused stuff
...
Signed-off-by: Chris Koch <chrisko@google.com>
2019-12-29 17:47:50 -05:00
Sascha Grunert
f3e349fb5c
Propagate error when linter cannot be run
...
We now return an error if any linter is unable to run to
not exit on 0 in that case.
Closes #451
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2019-12-29 16:52:01 -05:00
Tommy Mühle
d9363991ed
Update pkg/golinters/gomnd.go
...
Co-Authored-By: Simon Sawert <simon@sawert.se>
2019-12-05 07:55:04 -05:00
Tommy Mühle
704f9efede
Update gomnd.go
2019-12-05 07:55:04 -05:00
sayboras
ca432c464a
Addressed naming convention ( #859 )
2019-11-16 09:33:46 -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
Igor Zibarev
ecccb24cb7
Fix autogen exclude for comments under package ( #831 )
2019-10-22 09:49:47 +03:00
Denis Isaev
2346cd8e56
fix json report Enabled field
2019-10-21 22:57:53 +03:00
Denis Isaev
df279922f6
just hide --deadline, don't deprecate
2019-10-15 20:46:12 +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
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
Peter Štibraný
d47b6f5e48
Exposed modules-download-mode as a command line option ( #781 )
...
* Exposed modules-download-mode as a command line option
* Split line into two.
* Regenerated README.md file
2019-10-14 22:21:37 +03:00
Isaev Denis
fa69ddfc14
fix not cross-os file lock ( #818 )
2019-10-14 19:46:59 +03:00
Isaev Denis
48599c64ba
Make fine-grained hashing. ( #814 )
...
Speed up golint: don't typecheck packages twice.
Relates: #805
2019-10-14 09:50:57 +03:00
Isaev Denis
6e00f51fc1
Save issues into cache in parallel ( #813 )
...
Fix #810
2019-10-13 20:09:58 +03:00
Isaev Denis
64b62667c0
Lock by flock to prevent parallel runs ( #812 )
2019-10-13 18:10:22 +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
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
Denis Isaev
50cfc343c5
gocognit: fix default threshold from 0 to 30
2019-10-04 11:06:16 -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
Ian Howell
39d7929d61
Improve the error output from goimports
...
This causes goimports to provide additional information if the
"local-prefixes" option has been set.
2019-10-03 10:00:34 -04: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
M. Ángel
5e54b3334e
Add version command to print golangci-lint version
...
Fixes #675
2019-10-01 18:13:24 -04:00
Trevor Pounds
6d786b50ae
Group imports by package.
2019-10-01 18:09:47 -04:00
Isaev Denis
df4f6766ba
reduce 1.5x memory usage on large repos on repeated runs ( #764 )
...
Get rid of AST cache: load AST when needed. Optimize memory allocations
for go/analysis actions.
Relates: #337
2019-10-01 14:52:00 +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
Aleksandr Razumov
fe494af887
govet: skip internal analyzers ( #763 )
...
Some analyzers are not intended for direct usage and are
just build blocks for other analyzers.
Seems like we can distinguish them by ResultType nillness.
2019-09-30 16:04:06 +03:00
Aleksandr Razumov
7e09842e2b
govet: add more analyzers
2019-09-29 12:00:35 -04:00