559 Commits

Author SHA1 Message Date
Simon Sawert
22df2d739f Update WSL to v1.2.5 ()
* 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 ()
* 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 () 2019-10-14 19:46:59 +03:00
Isaev Denis
48599c64ba
Make fine-grained hashing. ()
Speed up golint: don't typecheck packages twice.
Relates: 
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 ()
Fix 
2019-10-13 20:09:58 +03:00
Isaev Denis
64b62667c0
Lock by flock to prevent parallel runs () 2019-10-13 18:10:22 +03:00
Isaev Denis
9ba730e989
Make incremental analysis ()
Cache linting results. Reanalyze only changed packages
and packages tree depending on them.

Fixes , fixes 
2019-10-13 17:40:51 +03:00
Isaev Denis
ca6effbeec
dev: discourage bad practices () 2019-10-12 12:36:03 +03:00
Trevor Pounds
7004896cab Update to latest godownloader/goreleaser versions. () 2019-10-09 21:20:39 +03:00
Trevor Pounds
cc98739c05 Fix docker builds. () 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. () 2019-10-08 09:37:54 +03:00
Trevor Pounds
ee2e17f7e9 Update to latest securego/gosec ()
* 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. ()
Fixes 
2019-10-08 09:31:21 +03:00
Simon Sawert
d4b4ad8dfe Update WSL to v1.2.1 ()
* 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. ()
Fixes 
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 ()
* 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 () 2019-10-04 15:12:07 +03:00
Denis Isaev
00069129a6 automatically stale issues 2019-10-04 11:22:26 +03:00
Trevor Pounds
fd997edeeb Cleanup nolint directives. () 2019-10-03 19:34:19 +03:00
Trevor Pounds
202e6f9546 Enable all gocritic tags. 2019-10-03 11:31:16 -04: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
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. () 2019-10-03 16:22:26 +03:00
Nuruddin Ashr
92ec1a1f4c Add gocognit linter ()
* 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
Chris Nesbitt-Smith
dbf0231f74 fix misplaced backtick in example config in readme
sorry, I'm a pedant 😄
2019-10-03 09:08:53 -04:00
Trevor Pounds
13e3a1a375 Update to latest godownloader/goreleaser versions.
Fixes 
2019-10-02 14:01:03 -04:00
M. Ángel
5e54b3334e Add version command to print golangci-lint version
Fixes 
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 ()
Get rid of AST cache: load AST when needed. Optimize memory allocations
for go/analysis actions.

Relates: 
2019-10-01 14:52:00 +03:00
Trevor Pounds
ea417ffa0b Fix incorrect description. 2019-09-30 17:28:43 -04:00
Denis Isaev
bbb0e6b208 update bodyclose 2019-09-30 16:45:45 -04:00
Isaev Denis
95ec0cf21e
dramatically reduce memory usage ()
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: 
2019-09-30 16:19:41 +03:00
Aleksandr Razumov
fe494af887 govet: skip internal analyzers ()
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
Trevor Pounds
605c9c2954 Add Alpine Linux images ()
* Add Alpine Linux images.

Fixes 
Fixes 

* Move Dockerfiles to build directory.
2019-09-30 12:51:57 +03:00
Trevor Pounds
baff4ab35b Update to matoous/godox v1.0.
Dependency has to be pinned to commit hash since
tag is not a compatible semver supported by go.mod.
2019-09-29 12:47:53 -04:00
Robin Yue
7a93526db7 add cyclone to the list of great projects 2019-09-29 12:02:19 -04:00
Aleksandr Razumov
7e09842e2b govet: add more analyzers 2019-09-29 12:00:35 -04:00
Trevor Pounds
6cc10f0615 Update to latest timakin/bodyclose. ()
Fixes 733
Fixes https://github.com/timakin/bodyclose/pull/20
2019-09-27 13:43:56 +03:00
Trevor Pounds
d63d23537d Fix broken dominikh/go-tools URLs. ()
Fixes 
2019-09-25 18:25:58 +03:00
Isaev Denis
2cadaf5beb
dev: enable whitespace, dogsled, funlen on the repo () 2019-09-25 18:08:28 +03:00
Trevor Pounds
86d7c05c6b Build godownloader/goreleaser tools before use. () 2019-09-25 17:26:46 +03:00
Trevor Pounds
c427c61253 Use separate go.mod/go.sum to manage tool deps. ()
Fixes downstream `go get` issues due to broken/invalid
transitive goreleaser dependencies.

Fixes 
v1.19.1
2019-09-24 21:44:57 +03:00
Trevor Pounds
a16b4d872b Use stretchr/testify to mock log.
Simplifies test log usage and removes additional
targets and dependencies to go:generate mocks.
2019-09-24 11:58:40 -04:00