-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.static-analysis.xml
More file actions
41 lines (34 loc) · 1.54 KB
/
Copy pathbuild.static-analysis.xml
File metadata and controls
41 lines (34 loc) · 1.54 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<project name="randock.phpqa" default="static-analysis">
<!-- We define the paths to the executables here, for easier
modification -->
<property name="phpqa.binary" value="phpqa"/>
<!-- The static analyser we use (phpqa) included tools to do static analysis
and generate HTML reports. See https://github.com/EdgedesignCZ/phpqa -->
<target name="static-analysis"
depends="phpqa"
description="Performs static analysis" />
<!-- Executes QA tools: phpmetrics, phpmd and phpcpd -->
<target name="phpqa"
unless="phpqa.done"
description="Execute quality assurance commands.">
<!-- Disable xdebug -->
<antcall target = "xdebug-disable" />
<exec executable="${phpqa.binary}" resultproperty="result.phpqa" taskname="phpqa">
<arg value="--tools" />
<arg value="phpmetrics,phpmd,phpcpd,phpstan:0,parallel-lint:0" />
<arg value="--report" />
<arg value="--ignoredDirs" />
<arg value="public,templates,translations,etc,config,vendor,bin,var,web,app,tests" />
<arg value="--analyzedDirs" />
<arg value="src" />
<arg value="--buildDir" />
<arg path="${basedir}/build" />
<arg value="--config" />
<arg path="${phpqa.config_dir}" />
</exec>
<!-- Enable xdebug -->
<antcall target = "xdebug-enable" />
<property name="phpqa.done" value="true"/>
</target>
</project>