mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
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:
parent
ca6effbeec
commit
9ba730e989
59 changed files with 933 additions and 422 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue