problem as $problem) {
if ($problem->description == 'File is too complex to perform context-sensitive data-flow analysis') {
continue;
}
$problemsCount++;
$html .= '
| '.$problemsCount.' | '.$problem->file.' | '.$problem->line.' | '.$problem->description.' |
';
}
}
if ($problemsCount > 0) {
$html = ''
.'| Num | '
.'File | '
.'Line | '
.'Problem |
'.$html.'
';
echo 'Found inspection problems: '.$problemsCount.PHP_EOL;
} else {
$html = 'No inspection problems found
';
}
$html = ''.$html.'';
file_put_contents($reportsPath.DIRECTORY_SEPARATOR.'appcode_inspections.html', $html);
?>