-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
77 lines (77 loc) · 2.8 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"name": "shrink0r/suffix-tree",
"type": "library",
"description": "Suffix-tree (Ukkonen) for PHP.",
"keywords": [ "suffix-tree", "ukkonen" ],
"homepage": "https://github.com/shrink0r/suffix-tree",
"license": "MIT",
"autoload": {
"psr-4": {
"Shrink0r\\SuffixTree\\": "src/"
}
},
"require": {
"php": "^7.0"
},
"require-dev": {
"sami/sami": "^3.3.0",
"jakub-onderka/php-console-highlighter": "^0.3",
"jakub-onderka/php-parallel-lint": "^0.9",
"phploc/phploc": "^3.0",
"phpmd/phpmd": "^2.4",
"phpunit/phpunit": "^5.5",
"satooshi/php-coveralls": "master@dev",
"sebastian/phpcpd": "^2.0",
"squizlabs/php_codesniffer": "^2.6"
},
"autoload-dev": {
"psr-4": {
"Shrink0r\\SuffixTree\\Tests\\": "tests/"
}
},
"archive": {
"exclude": [
"/tests",
"/build",
"/vendor"
]
},
"scripts": {
"test": [
"@php-lint",
"@php-test",
"@code-sniffer",
"@validate-json"
],
"sniff": [
"@php-lint",
"@code-sniffer-autofix",
"@code-sniffer",
"@copy-paste-detector",
"@mess-detector"
],
"docs": [
"vendor/sami/sami/sami.php --ansi update sami.cfg.php"
],
"code-sniffer": "phpcs -p -s --extensions=php --standard='PSR1,PSR2' src/ tests/",
"code-sniffer-autofix": "phpcbf --standard=PSR2 -d tabWidth=4 src/ tests/",
"copy-paste-detector": "phpcpd src/ tests/",
"mess-detector": "phpmd src,tests text codesize,unusedcode,naming,cleancode,design",
"php-lint": "parallel-lint --blame --exclude vendor src/ tests/",
"php-lint2": [
"find src/ -name '*.php' -print0 | xargs -0 -L 1 php -l",
"find tests/ -name '*.php' -print0 | xargs -0 -L 1 php -l"
],
"php-loc": "phploc src",
"php-test": "phpunit",
"reports": [
"phploc --log-xml ./build/coverage/logs/phploc.xml --progress src || echo",
"phpcs -p -s --extensions=php --report=checkstyle --report-file=./build/coverage/logs/checkstyle.xml --standard='PSR1,PSR2' src/ tests/ || echo",
"phpcpd --log-pmd ./build/coverage/logs/phpcpd.xml --progress src/ tests/ || echo",
"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"
],
"validate-json": "composer validate --no-check-all --no-check-lock",
"validate-deps": "composer validate --with-dependencies --strict"
}
}