Completed
Push — master ( c299ad...293d26 )
by Dave
15s queued 11s
created

GitNotCleanException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace DaveLiddament\StaticAnalysisResultsBaseliner\Plugins\GitDiffHistoryAnalyser;
6
7
use DaveLiddament\StaticAnalysisResultsBaseliner\Domain\HistoryAnalyser\HistoryAnalyserException;
8
9
class GitNotCleanException extends HistoryAnalyserException
10
{
11
    private const MESSAGE = <<<TEXT
12
There are modified or new files (to see them run: git status).
13
Either commit these or if the modified/new files have no impact the static analysers output rerun this command with -f flag.
14
15
SARB pins the baseline current git SHA, as files are some modified/new files the current SHA it not representative of the current state of the codebase.
16
TEXT;
17
18
    public function __construct()
19
    {
20
        parent::__construct(self::MESSAGE);
21
    }
22
}
23