-
Notifications
You must be signed in to change notification settings - Fork 1
/
composer.json
60 lines (60 loc) · 2.07 KB
/
composer.json
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"name": "shrink0r/monatic",
"license": "MIT",
"description": "Fiddling with the monad concept in php",
"keywords": [ "monad" ],
"require": {
"php": "^7.0",
"symfony/property-access": "^4.0 || ^5.0"
},
"require-dev": {
"roave/security-advisories": "dev-master",
"phploc/phploc": "^5.0 || ^6.0",
"phpmd/phpmd": "^2.8",
"phpunit/phpunit": "^5.5 || ^6.0 || ^7.0",
"php-coveralls/php-coveralls": "^2.2",
"squizlabs/php_codesniffer": "^2.7"
},
"autoload": {
"psr-4": {
"Shrink0r\\Monatic\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Shrink0r\\Monatic\\Tests\\": "tests/"
}
},
"archive": {
"exclude": [
"/tests",
"/build",
"/vendor"
]
},
"scripts": {
"test": [
"@php-test",
"@code-sniffer",
"@validate-json"
],
"sniff": [
"@code-sniffer-autofix",
"@code-sniffer",
"@mess-detector"
],
"code-sniffer": "phpcs -p -s --extensions=php --standard='PSR1,PSR2' src/ tests/",
"code-sniffer-autofix": "phpcbf --standard=PSR2 -d tabWidth=4 src/ tests/",
"mess-detector": "phpmd src,tests text codesize,unusedcode,naming,design",
"php-loc": "phploc src",
"php-test": "phpunit",
"reports": [
"phpmd src xml codesize,unusedcode,naming,cleancode,design --reportfile ./build/coverage/logs/phpmd.xml || echo",
"phpmd src html codesize,unusedcode,naming,cleancode,design --reportfile ./build/coverage/logs/phpmd.html || echo",
"phploc --log-xml ./build/coverage/logs/phploc.xml src || echo",
"phpcs -p -s --extensions=php --report=checkstyle --report-file=./build/coverage/logs/checkstyle.xml --standard='PSR1,PSR2' src/ tests/ || echo"
],
"validate-json": "composer validate --no-check-all --no-check-lock",
"validate-deps": "composer validate --with-dependencies --strict"
}
}