Skip to content
Snippets Groups Projects
Commit 39dbf950 authored by Joas Schilling's avatar Joas Schilling
Browse files

Merge pull request #15224 from owncloud/issue/15191-app-code-checker-error-list

Correctly only send the errors of the current file to the event
parents e66dda83 db763027
No related branches found
No related tags found
No related merge requests found
......@@ -103,8 +103,9 @@ class CodeChecker extends BasicEmitter {
foreach ($iterator as $file) {
/** @var SplFileInfo $file */
$this->emit('CodeChecker', 'analyseFileBegin', [$file->getPathname()]);
$errors = array_merge($this->analyseFile($file), $errors);
$this->emit('CodeChecker', 'analyseFileFinished', [$errors]);
$fileErrors = $this->analyseFile($file);
$this->emit('CodeChecker', 'analyseFileFinished', [$fileErrors]);
$errors = array_merge($fileErrors, $errors);
}
return $errors;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment