Phing > remove old and unused tools

This commit is contained in:
Meritoo
2019-04-03 11:18:11 +02:00
parent a93355f2c8
commit 312e721dc3
5 changed files with 6 additions and 36 deletions

View File

@@ -2,6 +2,10 @@
Common and useful classes, methods, exceptions etc.
# 1.0.2
1. Phing > remove old and unused tools
# 1.0.1
1. Regex > make compatible with PHP 7.3 Tests > Regex > fix "preg_match(): Compilation failed: invalid range in

View File

@@ -1 +1 @@
1.0.1
1.0.2

View File

@@ -22,9 +22,6 @@
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.14",
"pdepend/pdepend": "^2.5",
"phploc/phploc": "^5.0",
"phpmd/phpmd": "^2.6",
"phpunit/phpunit": "^8.0",
"sebastian/phpcpd": "^4.1",
"squizlabs/php_codesniffer": " ^2.9"

View File

@@ -50,7 +50,6 @@ dir.tests = ${project.basedir}/tests
#
dir.build = ${project.basedir}/build
dir.reports = ${dir.build}/reports
dir.reports.pdepend = ${dir.reports}/pdepend
dir.reports.coverage = ${dir.reports}/phpunit_coverage
# Data directories

View File

@@ -43,10 +43,7 @@
<!-- Check target -->
<target name="build:check"
depends="check:cs,
check:md,
check:cpd,
check:depend,
check:loc"
check:cpd"
/>
<!-- Test target -->
@@ -72,32 +69,6 @@
</phpcpd>
</target>
<!-- Mess detector -->
<target name="check:md" depends="build:prepare">
<phpmd rulesets="codesize,controversial,design,naming,unusedcode">
<fileset refid="sourcecode"/>
<formatter type="html" outfile="${dir.reports}/phpmd.html"/>
<formatter type="text" outfile="${dir.reports}/phpmd.txt"/>
</phpmd>
</target>
<!-- Code dependency -->
<target name="check:depend" depends="build:prepare">
<phpdepend>
<fileset refid="sourcecode"/>
<logger type="jdepend-xml" outfile="${dir.reports.pdepend}/jdepend.xml"/>
<logger type="jdepend-chart" outfile="${dir.reports.pdepend}/dependencies.svg"/>
<logger type="overview-pyramid" outfile="${dir.reports.pdepend}/overview-pyramid.svg"/>
</phpdepend>
</target>
<!-- Measure the size and analyzing the structure of a project -->
<target name="check:loc" depends="build:prepare">
<phploc reportType="txt" reportName="phploc" reportDirectory="${dir.reports}">
<fileset refid="sourcecode"/>
</phploc>
</target>
<!-- PHPUnit tests -->
<target name="test:phpunit" depends="build:prepare">
<exec command="${tests.phpunit.command}" passthru="true"/>
@@ -116,7 +87,6 @@
<!-- Project build prepare -->
<target name="build:prepare" depends="build:clean">
<mkdir dir="${dir.reports}"/>
<mkdir dir="${dir.reports.pdepend}"/>
<mkdir dir="${dir.reports.coverage}"/>
</target>