1136 Commits

Author SHA1 Message Date
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
Kyoichiro Yamada
ae427c1eda chore: we can use a "console" for syntax 2019-12-29 16:49:13 -05:00
Aleksandr Razumov
cf1fbc590a
Merge pull request #891 from uudashr/master
Update the gocognit linter due to bug fix
2019-12-19 15:15:55 +03:00
Nuruddin Ashr
641cca8ed7 Update go.sum 2019-12-19 13:45:26 +07:00
Nuruddin Ashr
70abc4a01c Added the updated vendor 2019-12-19 11:06:03 +07:00
Nuruddin Ashr
9fd3138fd5 Update the gocognit linter 2019-12-18 15:33:25 +07:00
Tommy Muehle
e94e36d437 Add new generated README.md 2019-12-05 07:55:04 -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
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
sayboras
e4df56bd80 Use the release version for go-mnd (#871) 2019-11-28 09:46:19 -05:00
Agniva De Sarker
48b15f3295 Add mattermost to Trusted By (#863) 2019-11-22 18:50:05 -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
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
sayboras
93c0eebfa1 Fixed test deadline unit test 2019-11-07 17:22:13 -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
645e79404d
docs: update the latest release to v1.21.0 v1.21.0 2019-10-15 20:55:02 +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
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
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
Denis Isaev
f13436112d
dev: fix go1.12 compilation 2019-10-13 20:17:43 +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
Trevor Pounds
7004896cab Update to latest godownloader/goreleaser versions. (#801) 2019-10-09 21:20:39 +03:00
Trevor Pounds
cc98739c05 Fix docker builds. (#798) v1.20.0 2019-10-08 14:38:32 +03:00
Trevor Pounds
db20cd0ac8 Add s390x release. 2019-10-08 05:26:50 -04:00
Denis Titusov
0cc87df732 Rename deadline option to timeout and mark deadline as deprecated. (#793) 2019-10-08 09:37:54 +03:00
Trevor Pounds
ee2e17f7e9 Update to latest securego/gosec (#792)
* Update to latest securego/gosec.

* Fix gosec G204 warnings.

* Add gosec G204 test.
2019-10-08 09:36:21 +03:00
Trevor Pounds
2864c219ee Add ppc64le release. (#790)
Fixes #700
2019-10-08 09:31:21 +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
Trevor Pounds
7577d548a3 Update to mattn/go-colorable v0.1.4. 2019-10-06 12:45:44 -04:00
Trevor Pounds
8e0197ec9c Reduce cache directory permissions. (#788)
Fixes #782
2019-10-06 19:21:43 +03: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
Trevor Pounds
30864f8818 Add more gocognit tests. 2019-10-04 11:29:53 -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