2 Star 5 Fork 3

crossin/OpenRA

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
dupFinder.xslt 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
Matthias Mailänder 提交于 2015-06-07 22:01 . scan for duplicates
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" indent="yes" />
<xsl:template match="/">
<html>
<body>
<h1>Statistics</h1>
<p>Total codebase size: <xsl:value-of select="//CodebaseCost"/></p>
<p>Code to analyze: <xsl:value-of select="//TotalDuplicatesCost"/></p>
<p>Total size of duplicated fragments: <xsl:value-of select="//TotalFragmentsCost" /></p>
<h1>Detected Duplicates</h1>
<xsl:for-each select="//Duplicates/Duplicate">
<h2>Duplicated Code. Size: <xsl:value-of select="@Cost"/></h2>
<h3>Duplicated Fragments:</h3>
<xsl:for-each select="Fragment">
<xsl:variable name="i" select="position()"/>
<p>Fragment <xsl:value-of select="$i"/> in file <xsl:value-of select="FileName"/></p>
<pre><xsl:value-of select="Text"/></pre>
</xsl:for-each>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/crossin/OpenRA.git
git@gitee.com:crossin/OpenRA.git
crossin
OpenRA
OpenRA
bleed

搜索帮助

D67c1975 1850385 1daf7b77 1850385