Skip to content

Commit

Permalink
Result cache - do not save with non-ignorable errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Mar 14, 2020
1 parent 7615022 commit 762277e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Analyser/ResultCache/ResultCacheManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,16 @@ public function process(AnalyserResult $analyserResult, ResultCache $resultCache
return;
}

foreach ($errorsByFile as $errors) {
foreach ($errors as $error) {
if ($error->canBeIgnored()) {
continue;
}

return;
}
}

$this->save($resultCache->getLastFullAnalysisTime(), $errorsByFile, $dependencies);
};

Expand Down

0 comments on commit 762277e

Please sign in to comment.