17 Commits

Author SHA1 Message Date
Denis Isaev
70193b9b4d
docs: improve shell installation info 2018-06-30 09:24:50 +03:00
Denis Isaev
78d39711f0
docs: s/.golangci.yml/.golangci.example.yml 2018-06-19 09:30:55 +03:00
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
Iskander Sharipov
7495c4d13a readme: fix invalid link to issues-options
issues-options heading does not exist anymore.
Closes thing is command-line-options.
2018-06-15 22:41:20 +03:00
Denis Isaev
7f1779d706
docs: remove extra backtick from README.md.tmpl
Fix stale template after #103
2018-06-15 00:06:30 +03:00
Denis Isaev
b4bf038095
docs: improve FAQ and remove -i from go install command 2018-06-12 14:20:36 +03:00
Denis Isaev
6e12ea5734
docs: add FAQ entry about go install 2018-06-12 10:07:10 +03:00
Denis Isaev
9ed7dad894
#77: move changes from README.md to README.md.tmpl 2018-06-09 00:01:54 +03:00
Denis Isaev
1fad9ea1d7
add information about GoLand support into README.md 2018-06-07 23:42:52 +03:00
Denis Isaev
c144a3c731
update information about editor integration and nolint in README.md 2018-06-07 23:17:24 +03:00
Denis Isaev
ad3bf1eb58
fix --version option and improve installation section of docs 2018-06-03 09:25:53 +03:00
Denis Isaev
e8fb3a5166
docs: update contact info 2018-06-03 00:37:22 +03:00
Denis Isaev
0f6213dbc2
#60: search config file in directories from file path up to root 2018-06-02 20:28:53 +03:00
Denis Isaev
4fd5ebe7c7
#49: don't fill string slice 2 times because of double parsing of options 2018-06-02 17:50:38 +03:00
golangci
9133ef4271 generate command line options section of README 2018-06-02 16:01:20 +03:00
golangci
d4d2697f8a add svg demo 2018-06-02 14:10:34 +03:00
golangci
034728ec94 generate parts of README automatically 2018-06-02 11:37:17 +03:00