typecheck: display compilation errors as report instead of error (#1861)

This commit is contained in:
Ludovic Fernandez 2021-03-25 23:52:55 +01:00 committed by GitHub
parent ccb5bd03d1
commit 9aea4aee1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 1509 additions and 1423 deletions

View file

@ -16,9 +16,8 @@ type MaxPerFileFromLinter struct {
var _ Processor = &MaxPerFileFromLinter{}
func NewMaxPerFileFromLinter(cfg *config.Config) *MaxPerFileFromLinter {
maxPerFileFromLinterConfig := map[string]int{
"typecheck": 3,
}
maxPerFileFromLinterConfig := map[string]int{}
if !cfg.Issues.NeedFix {
// if we don't fix we do this limiting to not annoy user;
// otherwise we need to fix all issues in the file at once