~ancarda/coverage-enforcer

ref: 688299fd17c9fb53cbdac871d2f67de3e5398720 coverage-enforcer/composer.json -rw-r--r-- 1.1 KiB
688299fdMark Dain Add unit tests and code quality tools 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
    "name": "ancarda/coverage-enforcer",
    "description": "Enforces a minimum Code Coverage using a Coverage Clover XML file",
    "type": "library",
    "license": "MIT",
    "config": {
        "sort-packages": true
    },
    "autoload": {
        "psr-4": {
            "Ancarda\\CodeCoverage\\": "src"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests"
        }
    },
    "require": {
        "php": "^7.3|^8.0",
        "ext-simplexml": "*",
        "symfony/console": "^5.2"
    },
    "require-dev": {
        "infection/infection": "^0.21.4",
        "phpstan/phpstan": "^0.12.82",
        "phpstan/phpstan-phpunit": "^0.12.18",
        "phpstan/phpstan-strict-rules": "^0.12.9",
        "phpunit/phpunit": "^9.5",
        "squizlabs/php_codesniffer": "^3.5"
    },
    "scripts": {
        "analyze": "phpstan",
        "check-coverage": "bin/enforce-coverage --minStmtCov 100 var/coverage/coverage.clover.xml",
        "check-style": "phpcs",
        "check-tests": "infection",
        "fix-style": "phpcbf",
        "test": "phpunit"
    },
    "bin": [
        "bin/enforce-coverage"
    ]
}