Add the simian plugin from Aslak

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113635 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
dion committed 2003-07-10 07:37:00 +00:00
1 parent fcf4518581
commit 760d65fd53
20 files changed
+1485

No files matched your search

+53
View File
@@ -0,0 +1,53 @@
<?xml version="1.0"?>
<document>
<properties>
<title>Changes</title>
<author email="rinkrank at codehaus.org">Aslak Hellesoy</author>
<author email="maurice@maguyane.net">Maurice Montgenie</author>
</properties>
<body>
<release version="1.1.1" date="2003-07-09 (In JIRA)">
<action dev="maurice" type="add">
New optional options introduced in Simian 1.9.1.
</action>
</release>
<release version="1.1" date="2003-07-08 (In JIRA)">
<action dev="rinkrank" type="add">
Now parses test sources too.
</action>
<action dev="rinkrank" type="add">
Report displays the similarity treshold.
</action>
<action dev="rinkrank" type="update">
Updated to use Simian 1.9.1
</action>
<action dev="rinkrank" type="update">
Removed the simian jar from the plugin.
</action>
<action dev="rinkrank" type="fix">
Reset site doc colour scheme to default.
</action>
</release>
<release version="1.0-alpha-1" date="2003-06-25 (In JIRA)">
<action dev="rinkrank" type="add">
First release.
</action>
</release>
</body>
</document>
+24
View File
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<document>
<properties>
<title>Simian Plugin Goals</title>
<author email="aslak@thoughtworks.net">Aslak Hellesoy</author>
</properties>
<body>
<section name="Goals">
<table>
<tr><th>Goal</th><th>Description</th></tr>
<a name="sim" />
<tr>
<td>maven-simian-plugin</td>
<td>
The default goal. This goal generates an xdoc document
containing a Simian report.
</td>
</tr>
</table>
</section>
</body>
</document>
+26
View File
@@ -0,0 +1,26 @@
<?xml version="1.0"?>
<document>
<properties>
<title>Simian Plugin</title>
<author email="aslak@thoughtworks.net">Aslak Hellesoy</author>
</properties>
<body>
<section name="Simian Plugin">
<p>
This plugin generates xdoc documentation containing a
<a href="http://www.redhillconsulting.com.au/mimeo.html">Simian</a>
(Similarity Analyser) report. Simian identifies duplicated lines in
Java and C# source code. Ie. lines of code that occur more than once
across an entire source tree.
</p>
<p>
Duplicate code should always be refactored. It is therefore recommended
that the maven.simian.failonduplication property be set to true and that the
maven.simian.linecount property be small. This will make it easier
to always have duplicates factored out in the codebase.
</p>
</section>
</body>
</document>
+40
View File
@@ -0,0 +1,40 @@
<?xml version="1.0"?>
<document>
<properties>
<title>Simian Plugin Installation</title>
<author email="aslak@thoughtworks.net">Aslak Hellesoy</author>
</properties>
<body>
<section name="Simian Plugin Installation">
<p>
As long as this plugin is not a standard Maven plugin, it must
be installed manually. This is very easy.
</p>
<p>
If you have a binary distribution of the plugin, just copy the plugin jar file
to your <code>$MAVEN_HOME/plugins</code> directory. and the simian
jar file to <code>$MAVEN_HOME/repository/simian/jars</code>.
</p>
<p>
If you have a source distribution of the plugin, installing the plugin is just as easy.
Just run
</p>
<source>maven plugin:install</source>
<p>
from the root directory of the unpacked distribution.
</p>
<p>
To enable the plugin add the following to your project.xml's
/project/reports node:
</p>
<source>&lt;report&gt;maven-simian-plugin&lt;/report&gt;</source>
<p>
For further details about how to use the plugin, see the
<a href="goals.html">Goals</a> and <a href="properties.html">Properties</a>
pages.
</p>
</section>
</body>
</document>
+16
View File
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="Maven Simian Plugin">
<title>Maven Simian Plugin</title>
<body>
<links>
<item name="Simian" href="http://www.redhillconsulting.com.au/products/simian/"/>
</links>
<menu name="Overview">
<item name="Installation" href="/installation.html" />
<item name="Goals" href="/goals.html" />
<item name="Properties" href="/properties.html" />
</menu>
</body>
</project>
+67
View File
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<document>
<properties>
<title>Simian Properties</title>
<author email="aslak@thoughtworks.net">Aslak Hellesoy</author>
<author email="maurice@maguyane.net">Maurice Montgénie</author>
</properties>
<body>
<section name="Simian Properties">
<table>
<tr><th>Property</th><th>Optional?</th><th>Description</th></tr>
<tr>
<td>maven.simian.linecount</td>
<td>Yes (default = 10)</td>
<td>
Specifies the minimum number of lines that is considered a match.
</td>
</tr>
<tr>
<td>maven.simian.failonduplication</td>
<td>Yes (default = false)</td>
<td>
Specifies whether the build should fail if a match is found.
</td>
</tr>
<tr>
<td>maven.simian.ignorestrings</td>
<td>Yes (default = false)</td>
<td>
Ignore strings (Java, C#, C, C++, JavaScript, COBOL): "one" and "two" would both match.
</td>
</tr>
<tr>
<td>maven.simian.ignorestringcase</td>
<td>Yes (default = false)</td>
<td>
Ignore string case (Java, C#, C, C++, JavaScript, COBOL): "Hello, World" and "HELLO, WORLD" would both match.
</td>
</tr>
<tr>
<td>maven.simian.ignorenumbers</td>
<td>Yes (default = false)</td>
<td>
Ignore numbers (Java, C#, C, C++, JavaScript, COBOL): int x = 1; and int x = 576; would both match.
</td>
</tr>
<tr>
<td>maven.simian.ignoresubtypenames</td>
<td>Yes (default = false)</td>
<td>
Ignore subtype names (Java): BufferedReader, StringReader and Reader would all match.
</td>
</tr>
<tr>
<td>maven.simian.ignoremodifiers</td>
<td>Yes (default = false)</td>
<td>
Ignore modifiers (Java, C#, C, C++, JavaScript): public, protected, static, etc.
</td>
</tr>
</table>
</section>
</body>
</document>