8 Commits

Author SHA1 Message Date
Luke Shumaker
d7a38bbdf2 go.mod: Roll back to golang/mock 1.0.0 2019-06-05 00:58:57 -04:00
Denis Isaev
f93c2e0ab2 Fix #164: update GAS to the latest gosec 2018-09-02 09:34:35 +03:00
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
golangci
5c074ddfc6 load program only once: big speedup 2018-05-06 19:08:34 +03:00
golangci
16a24dc92b fix govet: don't recurse into dirs 2018-05-06 09:53:37 +03:00
golangci
e65203921b support golint 2018-05-06 07:20:12 +03:00
golangci
0a5924afbc support go vet 2018-05-05 22:22:21 +03:00
golangci
815f505ed3 add vendor to repo 2018-05-05 17:00:56 +03:00