golangci-lint/vendor/github.com/golangci
Denis Isaev 5514c4393e Fix #17, #87: govet becomes SLOW linter by default
1. Allow govet to work in 2 modes: fast and slow. Default is slow.
In fast mode golangci-lint runs `go install -i` and `go test -i`
for analyzed packages. But it's fast only when:
  - go >= 1.10
  - it's repeated run or $GOPATH/pkg or `go env GOCACHE` is cached
  between CI builds
In slow mode we load program from source code like for another linters
and do it only once for all linters.

3. Patch govet code to warn about any troubles with the type
information. Default behaviour of govet was to hide such warnings.
Fail analysis if there are any troubles with type loading: it will
prevent false-positives and false-negatives from govet.

4. Describe almost all options in .golangci.example.yml and
include it into README. Describe when to use slow or fast mode of govet.

5. Speed up govet: reuse AST parsing: it's already parsed once by
golangci-lint.
For "slow" runs (when we run at least one slow linter) speedup by
not loading type information second time.

6. Improve logging, debug logging

7. Fix crash in logging of AST cache warnings (#118)
2018-06-18 09:47:15 +03:00
..
check support varcheck and structcheck 2018-05-06 20:28:59 +03:00
go-misc load program only once: big speedup 2018-05-06 19:08:34 +03:00
go-tools fix config validation 2018-05-19 13:07:55 +03:00
goconst Load AST for fast linters in different way. 2018-06-10 23:46:24 +03:00
gocyclo use gocyclo with changes for upstreaming, also speedup it 10x when program is loaded 2018-05-28 17:36:16 +03:00
gofmt support gofmt and goimports 2018-05-06 09:41:48 +03:00
govet Fix #17, #87: govet becomes SLOW linter by default 2018-06-18 09:47:15 +03:00
ineffassign support ineffassign 2018-05-07 09:25:00 +03:00
lint fix vendoring and log concurrency 2018-05-27 11:27:21 +03:00
lint-1 Load AST for fast linters in different way. 2018-06-10 23:46:24 +03:00
maligned support maligned 2018-05-06 21:08:53 +03:00
revgrep update revgrep 2018-05-26 20:02:06 +03:00
unconvert support unconvert 2018-05-07 12:00:17 +03:00