Skip to content

Commit 5136660

Browse files
Merge pull request #162 from PandaHugMonster/dev
Preparation of 1.1.5 release
2 parents 2fdbde2 + e3046be commit 5136660

File tree

92 files changed

+6779
-1445
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+6779
-1445
lines changed

README.md

Lines changed: 989 additions & 176 deletions
Large diffs are not rendered by default.

composer.json

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"authors": [
1616
{
1717
"name": "Ivan Ponomarev",
18-
"email": "pi@spaf.dev"
18+
"email": "i.ponomarev@pandev.tech"
1919
}
2020
],
2121
"type": "library",
@@ -25,8 +25,8 @@
2525
"ext-mbstring": "*"
2626
},
2727
"require-dev": {
28-
"squizlabs/php_codesniffer": "^3",
29-
"phpunit/phpunit": "^9"
28+
"phpunit/phpunit": "^9",
29+
"phpmd/phpmd": "^2.13"
3030
},
3131
"suggest": {
3232
"ext-gmp": "GMP Extension (BigNumbers calculation functionality, without fractions support but much quicker)",
@@ -39,17 +39,28 @@
3939
"files": ["src/basic.php"]
4040
},
4141
"scripts": {
42-
"tests": [
42+
"test": [
4343
"phpunit tests"
4444
],
45-
"tests-clover": [
46-
"XDEBUG_MODE=coverage phpunit tests --coverage-clover clover.xml"
45+
"coverage": [
46+
"XDEBUG_MODE=coverage phpunit tests --coverage-html docs/reports/coverage/html"
4747
],
48-
"tests-html": [
49-
"XDEBUG_MODE=coverage phpunit tests --coverage-html html-coverage/"
48+
"coverage-clover": [
49+
"XDEBUG_MODE=coverage phpunit tests --coverage-clover docs/reports/coverage/clover.xml"
5050
],
51-
"code-sniff": [
52-
"phpcs src/"
51+
"mess": [
52+
"phpmd --ignore-violations-on-exit src/ html codesize,unusedcode,naming > docs/reports/quality/mess-analysis-codesize-report.html"
53+
],
54+
"pipeline-mess": [
55+
"phpmd src/ text codesize,unusedcode,naming"
5356
]
57+
},
58+
"scripts-descriptions": {
59+
"test": "Run the whole PHPUnit test suit",
60+
"coverage": "Run the whole PHPUnit test with Coverage suit. Output in HTML at \"docs/coverage/html\"",
61+
"coverage-clover": "Run the whole PHPUnit test with Coverage suit. Output in clover xml at \"docs/coverage/\"",
62+
"mess": "Runs phpmd Mess Analysis on scopes of \"codesize,unusedcode,naming\". Output in HTML at \"docs/quality/mess-analysis-codesize-report.html\"",
63+
64+
"pipeline-mess": "Runs phpmd Mess Analysis on scopes of \"codesize,unusedcode,naming\" and return non 0 exit status if rules are violated. Reasonable for CI/CD pipelines."
5465
}
5566
}

0 commit comments

Comments
 (0)