Completed
Push — master ( 7f5a29...8ce298 )
by Scott
13s
created

PhpCsLoaderStrict   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 3
Bugs 1 Features 1
Metric Value
dl 0
loc 16
rs 10
c 3
b 1
f 1
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getDescription() 0 5 1
1
<?php
2
namespace exussum12\CoverageChecker;
3
4
use InvalidArgumentException;
5
6
/**
7
 * Class PhpCsLoaderStrict
8
 * Used to fail warnings too
9
 * @package exussum12\CoverageChecker
10
 */
11
class PhpCsLoaderStrict extends PhpCsLoader
12
{
13
    protected $failOnTypes = [
14
        'ERROR',
15
        'WARNING',
16
    ];
17
18
    /**
19
     * {@inheritdoc}
20
     */
21
    public static function getDescription()
22
    {
23
        return 'Parses the json report format of phpcs, this mode ' .
24
            'only reporst errors and warnings as violations';
25
    }
26
}
27