golangci-lint/vendor/github.com/golangci
Denis Isaev 2b587b63d6
Load AST for fast linters in different way.
Use build.Import instead of manual parser.ParseFile and paths traversal. It allows:
1. support build tags for all linters.
2. analyze files only for current GOOS/GOARCH: less false-positives.
3. analyze xtest packages (*_test) by golint: upstream golint and
gometalinter can't do it! And don't break analysis on the first xtest
package like it was before.
4. proper handling of xtest packages for linters like goconst where
package boundary is important: less false-positives is expected.

Also:
1. reuse AST parsing for golint and goconst: minor speedup.
2. allow to specify path (not only name) regexp for --skip-files and
--skip-dirs
3. add more default exclude filters for golint about commits:
`(comment on exported (method|function)|should have( a package)?
    comment|comment should be of the form)`
4. print skipped dir in verbose (-v) mode
5. refactor per-linter tests: declare arguments in comments, run only
one linter and in combination with slow linter
2018-06-10 23:46:24 +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 group of fixes after running on golang source code 2018-05-08 17:13:16 +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