somme date build
parent
108e5d7641
commit
f8bcc15874
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
# PHP METRICS
|
||||
./bin/phpmetrics --report-html=./data/phpmetrics ../ --exclude="vendor","build","tests","data","console/skel","application/modules","application/include/vues/cache"
|
||||
./bin/phpmetrics --report-html=./data/phpmetrics ../ --exclude="vendor","build","tests","data","skel","modules","cache"
|
||||
|
||||
# PHP DOCUMENTOR
|
||||
php ./bin/phpDocumentor.phar -d ../application -d ../console -d ../domain --ignore "vendor/*,build/*,data/*,tests/*,console/skel/*,application/modules/*,application/inculde/vues/cache/*" -t ./data/api-docs/
|
||||
|
@ -14,7 +14,7 @@ php ./bin/phpmd.phar ../ xml codesize,naming,unusedcode --exclude '*vendor*' --e
|
|||
./bin/phpcs -p --extensions=php --ignore=*/vendor/*,*/build/*,*/data/*,*/test/*,*/skel/*,*/modules/*,*/cache/*,*/public/* --report-xml=./logs/checkstyle.xml ../
|
||||
|
||||
# CHARTS OF PROJECTS
|
||||
./bin/pdepend --jdepend-chart=data/jdepend-chart.svg --overview-pyramid=data/jdepend-overview.svg --summary-xml=data/jdepend-summary.xml --ignore=vendor,tests,build,data,console/skel,application/modules,application/inculde/vues/cache ../
|
||||
./bin/pdepend --jdepend-chart=data/jdepend-chart.svg --overview-pyramid=data/jdepend-overview.svg --summary-xml=data/jdepend-summary.xml --ignore=vendor,tests,build,data,skel,modules,cache ../
|
||||
|
||||
# TEXT METRIC OF PROJECT
|
||||
php ./bin/phploc-7.0.2.phar ../ --exclude ../vendor --exclude ../build --exclude ../tests --exclude ../data --exclude ../console/skel --exclude ../application/modules --exclude ../application/include/vues/cache --log-xml logs/phploc.xml > data/phploc.txt
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
*
|
||||
!.gitignore
|
|
@ -1,99 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:template match="/metrics">
|
||||
<html>
|
||||
<body>
|
||||
<style>
|
||||
body { font-family: consolas; }
|
||||
ul.methods { -webkit-column-count: 3; }
|
||||
sup { margin: 0 0.2em; font-weight: normal; padding: 0.4em 0.3em; background: gainsboro; color: gray; }
|
||||
.position-top-20 { color: red; }
|
||||
.position-top-10 { font-weight: bold; }
|
||||
.ccn-is-low { color: gray; font-size: 80%; }
|
||||
.ccn-is-low sup { display: none; }
|
||||
p { margin: 0; padding: 0; margin-bottom: 0.2em; }
|
||||
</style>
|
||||
<h1>
|
||||
Project
|
||||
|
||||
<sup title="Cyclomatic Complexity Number">
|
||||
cyclo: <xsl:value-of select="@ccn"/>
|
||||
</sup>
|
||||
<sup title="Number of Method or Function Calls">calls:
|
||||
<xsl:value-of select="@calls"/>
|
||||
</sup>
|
||||
<sup title="classes">abstract: <xsl:value-of select="@clsa"/></sup>
|
||||
<sup title="classes">concrete: <xsl:value-of select="@clsc"/></sup>
|
||||
<sup>interfaces: <xsl:value-of select="@noi"/></sup>
|
||||
<sup>methods: <xsl:value-of select="@nom"/></sup>
|
||||
|
||||
</h1>
|
||||
<xsl:for-each select="package">
|
||||
<h2>
|
||||
<xsl:value-of select="@name"/>
|
||||
<sup title="Google PageRank applied on Packages and Classes.
|
||||
Classes with a high value should be tested frequently.">code rank:
|
||||
<xsl:value-of select="@cr"/></sup>
|
||||
</h2>
|
||||
<ul class="classes">
|
||||
<xsl:apply-templates select="class">
|
||||
<xsl:sort
|
||||
select="@wmc"
|
||||
data-type="number"
|
||||
order="descending"
|
||||
/>
|
||||
</xsl:apply-templates>
|
||||
</ul>
|
||||
</xsl:for-each>
|
||||
</body>
|
||||
</html>
|
||||
</xsl:template>
|
||||
<xsl:template match="class">
|
||||
<h3>
|
||||
<xsl:attribute name="class">
|
||||
<xsl:if test="0.1 > position() div count(../class)">
|
||||
position-top-10
|
||||
</xsl:if>
|
||||
<xsl:if test="0.2 > position() div count(../class)">
|
||||
position-top-20
|
||||
</xsl:if>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="@name"/>
|
||||
<sup title="Sum of the complexities of all declared
|
||||
methods and constructors of class.">weighted method count: <xsl:value-of select="@wmc"/>
|
||||
</sup>
|
||||
<sup title="Number of unique outgoing
|
||||
dependencies to other artifacts of the same type">outgoing coupling: <xsl:value-of select="@cbo"/>
|
||||
</sup>
|
||||
</h3>
|
||||
<ul class="methods">
|
||||
<xsl:apply-templates select="method">
|
||||
<xsl:sort
|
||||
select="@npath"
|
||||
data-type="number"
|
||||
order="descending"
|
||||
/>
|
||||
</xsl:apply-templates>
|
||||
</ul>
|
||||
</xsl:template>
|
||||
<xsl:template match="method">
|
||||
<p>
|
||||
<xsl:attribute name="class">
|
||||
<xsl:if test="0.1 > position() div count(../method)">
|
||||
position-top-10
|
||||
</xsl:if>
|
||||
<xsl:if test="0.2 > position() div count(../method)">
|
||||
position-top-20
|
||||
</xsl:if>
|
||||
<xsl:if test="1 >= @ccn">
|
||||
ccn-is-low
|
||||
</xsl:if>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="@name"/>
|
||||
<sup title="Cyclomatic Complexity Number">cyclo: <xsl:value-of select="@ccn"/>
|
||||
</sup>
|
||||
<sup title="NPath Complexity">npath: <xsl:value-of select="@npath"/>
|
||||
</sup>
|
||||
</p>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
Loading…
Reference in New Issue