Make incremental analysis (#808)

Cache linting results. Reanalyze only changed packages
and packages tree depending on them.

Fixes #768, fixes #809
This commit is contained in:
Isaev Denis 2019-10-13 17:40:51 +03:00 committed by GitHub
parent ca6effbeec
commit 9ba730e989
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
59 changed files with 933 additions and 422 deletions

View file

@ -14,18 +14,18 @@ type Log interface {
type LogLevel int
const (
// debug message, write to debug logs only by logutils.Debug
// Debug messages, write to debug logs only by logutils.Debug.
LogLevelDebug LogLevel = 0
// information messages, don't write too much messages,
// only useful ones: they are shown when running with -v
// Information messages, don't write too much messages,
// only useful ones: they are shown when running with -v.
LogLevelInfo LogLevel = 1
// hidden errors: non critical errors: work can be continued, no need to fail whole program;
// Hidden errors: non critical errors: work can be continued, no need to fail whole program;
// tests will crash if any warning occurred.
LogLevelWarn LogLevel = 2
// only not hidden from user errors: whole program failing, usually
// Only not hidden from user errors: whole program failing, usually
// error logging happens in 1-2 places: in the "main" function.
LogLevelError LogLevel = 3
)