Skip to content

Commit

Permalink
first code migration iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
seninp committed Feb 23, 2015
1 parent c199125 commit 83eee75
Show file tree
Hide file tree
Showing 80 changed files with 16,506 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,11 @@
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
<classpathentry kind="lib" path="lib/time/joda-time-2.1.jar"/>
<classpathentry kind="lib" path="lib/logger/logback-classic-1.1.2.jar"/>
<classpathentry kind="lib" path="lib/logger/logback-core-1.1.2.jar"/>
<classpathentry kind="lib" path="lib/logger/slf4j-api-1.7.7.jar"/>
<classpathentry kind="lib" path="lib/junit/junit-4.10.jar"/>
<classpathentry kind="lib" path="lib/commons/commons-lang3-3.1.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
37 changes: 37 additions & 0 deletions lib/checkstyle/configuration_1_0.dtd
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- Add the following to any file that is to be validated against this DTD:
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.1//EN"
"http://www.puppycrawl.com/dtds/configuration_1_1.dtd">
-->

<!ELEMENT module (module|property|metadata)*>
<!ATTLIST module name NMTOKEN #REQUIRED>

<!ELEMENT property EMPTY>
<!ATTLIST property
name NMTOKEN #REQUIRED
value CDATA #REQUIRED
>

<!--
Used to sort metadata in the Checkstyle configuration file. This
information is ignored by Checkstyle. This may be useful if you want to
store plug-in specific information.
To avoid name clashes between different tools/plug-ins you are *strongly*
encouraged to prefix all names with your domain name. For example, use the
name "com.mycompany.parameter" instead of "parameter".
The prefix "com.puppycrawl." is reserved for Checkstyle.
-->

<!ELEMENT metadata EMPTY>
<!ATTLIST metadata
name NMTOKEN #REQUIRED
value CDATA #REQUIRED
>
87 changes: 87 additions & 0 deletions lib/checkstyle/hackystat.checkstyle.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.1//EN" "http://www.puppycrawl.com/dtds/configuration_1_1.dtd">

<!-- For info on these checks, see http://checkstyle.sourceforge.net/config.html -->
<!-- Uppercase comments indicate the 'section' in the checkstyle documentation. -->

<module name="Checker">
<property name="charset" value="UTF-8" />
<property name="localeCountry" value="US" />
<property name="localeLanguage" value="en" />
<module name="FileTabCharacter" />


<module name="JavadocPackage">
<property name="allowLegacy" value="true" />
</module>

<module name="TreeWalker">
<!-- JAVADOC COMMENTS -->
<module name="JavadocType">
<property name="authorFormat" value="\S" />
</module>

<!-- Suppress violations when can't find ServletException class etc. -->
<module name="JavadocMethod">
<property name="allowUndeclaredRTE" value="true" />
</module>

<module name="JavadocVariable">
<property name="scope" value="public" />
</module>

<module name="JavadocStyle" />

<!-- IMPORTS -->
<module name="AvoidStarImport" />
<module name="RedundantImport" />
<module name="UnusedImports" />

<!-- NAMING CONVENTIONS -->
<module name="ConstantName">
<property name="format" value="^[a-zA-Z0-9]*(_[a-zA-Z0-9]+)*$" />
</module>
<module name="MethodName" />
<module name="ParameterName" />
<module name="TypeName" />

<!-- SIZE VIOLATIONS -->
<module name="LineLength">
<property name="max" value="100" />
</module>

<!-- WHITESPACE -->
<module name="WhitespaceAround">
<!-- Don't require whitespace around generic tokens like '<', '>', and '?' -->
<property name="tokens"
value="ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BAND_ASSIGN,
BOR,BOR_ASSIGN, BSR, BSR_ASSIGN, BXOR, BXOR_ASSIGN, COLON,
DIV, DIV_ASSIGN, EQUAL, GE, GT, LAND, LCURLY, LE, LITERAL_ASSERT,
LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY,
LITERAL_FOR, LITERAL_IF, LITERAL_RETURN, LITERAL_SYNCHRONIZED,
LITERAL_TRY, LITERAL_WHILE, LOR, LT, MINUS, MINUS_ASSIGN,
MOD, MOD_ASSIGN, NOT_EQUAL, PLUS, PLUS_ASSIGN, QUESTION,
RCURLY, SL, SLIST, SL_ASSIGN, SR, SR_ASSIGN, STAR, STAR_ASSIGN" />
</module>


<!-- MODIFIERS -->
<module name="ModifierOrder" />

<!-- BLOCK CHECKS -->
<module name="EmptyBlock">
<property name="option" value="text" />
</module>

<!-- CODING -->
<module name="EqualsHashCode" />
<module name="LeftCurly" />
<module name="NeedBraces" />
<module name="RightCurly">
<property name="option" value="alone" />
</module>
<module name="AvoidNestedBlocks" />
<module name="SimplifyBooleanExpression" />
<module name="SimplifyBooleanReturn" />
</module>
</module>
Binary file added lib/commons/commons-lang3-3.1.jar
Binary file not shown.
18 changes: 18 additions & 0 deletions lib/emma/hackystat.emma.xsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" indent="yes"/>

<xsl:template match="/">
<xmldata>
<xsl:apply-templates select="report/data/all/coverage"/>
</xmldata>
</xsl:template>

<xsl:template match="coverage">
<xsl:value-of select="@type"/>
<xsl:text> </xsl:text>
<xsl:value-of select="@value"/>
<xsl:text>&#10;</xsl:text>
</xsl:template>

</xsl:stylesheet>
36 changes: 36 additions & 0 deletions lib/findbugs/hackystat.findbugs.exclude.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<FindBugsFilter>
<Match>
<Class name="~.*\.Test.*" />
</Match>
<Match>
<!-- <Bug category="DLS_DEAD_LOCAL_STORE" /> -->
<Bug code="DLS" />
</Match>
<Match>
<!-- <Bug category="NP_ALWAYS_NULL" /> -->
<Bug code="NP" />
</Match>
<Match>
<!-- <Bug category="EI_EXPOSE_REP" /> -->
<Class name="edu.hawaii.jmotif.sax.alphabet.NormalAlphabet" />
<Bug code="EI" />
</Match>
<Match>
<!-- <Bug category="EI_EXPOSE_REP" /> -->
<Class name="edu.hawaii.jmotif.gi.repair.RePairRule" />
<Method name="getRules" />
<Bug code="EI" />
</Match>
<Match>
<!-- <Bug category="EI_EXPOSE_REP" /> -->
<Class name="edu.hawaii.jmotif.sax.datastructures.MotifRecord" />
<Method name="getPayload" />
<Bug code="EI" />
</Match>
<Match>
<!-- <Bug category="EI_EXPOSE_REP" /> -->
<Class name="edu.hawaii.jmotif.sax.datastructures.SaxRecord" />
<Method name="getPayload" />
<Bug code="EI" />
</Match>
</FindBugsFilter>

0 comments on commit 83eee75

Please sign in to comment.