Passed
Pull Request — master (#75)
by Dave
02:17
created

GitNotCleanException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 12
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
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