for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace DaveLiddament\StaticAnalysisResultsBaseliner\Plugins\GitDiffHistoryAnalyser;
use DaveLiddament\StaticAnalysisResultsBaseliner\Domain\HistoryAnalyser\HistoryAnalyserException;
final class GitNotCleanException extends HistoryAnalyserException
{
private const MESSAGE = <<<TEXT
There are modified or new files. To see them run:
git status
SARB pins the baseline current git SHA. As some files are modified/new the current SHA it not representative of the current state of the codebase.
To fix there are 2 choices:
1. Commit these modified/new files
2. If the modified/new files have no impact on the static analyser's output rerun this command with the -f flag.
TEXT;
public function __construct()
parent::__construct(self::MESSAGE);
}