You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by bi...@apache.org on 2010/03/22 14:22:41 UTC
svn commit: r926067 [2/2] - in /lucene/mahout/trunk: ./ eclipse/
eclipse/src/ eclipse/src/main/ eclipse/src/main/resources/ etc/
Added: lucene/mahout/trunk/etc/mahout-checkstyle.xml
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/etc/mahout-checkstyle.xml?rev=926067&view=auto
==============================================================================
--- lucene/mahout/trunk/etc/mahout-checkstyle.xml (added)
+++ lucene/mahout/trunk/etc/mahout-checkstyle.xml Mon Mar 22 13:22:40 2010
@@ -0,0 +1,280 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<!DOCTYPE module PUBLIC
+ "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
+ "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
+
+<!--
+ Checks to make sure the code meets the CXF coding guidelines which
+ are similar to the Sun guidelines at:
+ http://java.sun.com/docs/codeconv/index.html
+
+ It also enforces aa bunch of other "BestPractices like method
+ lengths, if/try depths, etc...
+-->
+
+<module name="Checker">
+ <!-- Checks whether files end with a new line. -->
+ <!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile -->
+ <!-- <module name="NewlineAtEndOfFile"/> -->
+
+ <!-- Checks that property files contain the same keys. -->
+ <!-- See http://checkstyle.sf.net/config_misc.html#Translation -->
+ <module name="Translation" />
+ <!--<module name="StrictDuplicateCode"/>-->
+
+ <module name="TreeWalker">
+ <!-- Enable FileContentsHolder to allow us to in turn turn on suppression comments -->
+ <module name="FileContentsHolder" />
+ <!-- Checks for Javadoc comments. -->
+ <!-- See http://checkstyle.sf.net/config_javadoc.html -->
+ <!-- <module name="PackageHtml"/> -->
+ <!--module name="JavadocMethod"/-->
+ <module name="JavadocType"/>
+ <!--module name="JavadocVariable"/-->
+ <!--module name="JavadocStyle"/-->
+
+
+ <!-- Checks for Naming Conventions. -->
+ <!-- See http://checkstyle.sf.net/config_naming.html -->
+ <module name="ConstantName">
+ <property name="format" value="^([A-Z][A-Z0-9]*(_[A-Z0-9]+)*|log)$"/>
+ </module>
+ <module name="LocalFinalVariableName" />
+ <module name="LocalVariableName" />
+ <module name="MemberName" />
+ <module name="MethodName" />
+ <module name="PackageName" />
+ <module name="ParameterName" />
+ <module name="StaticVariableName" />
+ <module name="TypeName" />
+
+ <!-- Header checks -->
+ <!--module name="Header">
+ <property name="header"
+ value="/**\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * "License"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n" />
+ </module-->
+ <!-- <module name="RegexpHeader"/> -->
+
+
+ <!-- Checks for imports -->
+ <!-- See http://checkstyle.sf.net/config_import.html -->
+ <module name="AvoidStarImport"/>
+ <module name="IllegalImport" /> <!-- defaults to sun.* packages -->
+ <module name="RedundantImport" />
+ <module name="UnusedImports" />
+ <module name="ImportOrder"/>
+
+ <!-- Checks for Size Violations. -->
+ <!-- See http://checkstyle.sf.net/config_sizes.html -->
+ <module name="AnonInnerLength">
+ <property name="max" value="40" />
+ </module>
+ <module name="ExecutableStatementCount">
+ <property name="max" value="75" />
+ </module>
+ <!--<module name="FileLength">
+ <property name="max" value="3000" />
+ </module>-->
+ <module name="LineLength">
+ <property name="max" value="120" />
+ </module>
+ <module name="MethodLength">
+ <property name="max" value="150" />
+ <property name="countEmpty" value="false" />
+ </module>
+ <module name="ParameterNumber">
+ <property name="max" value="7" />
+ </module>
+
+ <!-- Checks for whitespace -->
+ <!-- See http://checkstyle.sf.net/config_whitespace.html -->
+ <module name="EmptyForIteratorPad" />
+ <module name="EmptyForInitializerPad" />
+ <module name="MethodParamPad" />
+ <module name="NoWhitespaceAfter">
+ <property name="tokens"
+ value="ARRAY_INIT,BNOT,DEC,DOT,INC,LNOT,UNARY_MINUS,UNARY_PLUS,COMMA" />
+ </module>
+ <module name="NoWhitespaceBefore" />
+ <module name="OperatorWrap" />
+ <module name="ParenPad" />
+ <module name="TypecastParenPad" />
+ <!--module name="TabCharacter" /-->
+ <module name="WhitespaceAfter">
+ <property name="tokens" value="SEMI" />
+ </module>
+ <module name="WhitespaceAround">
+ <property name="tokens"
+ value="ASSIGN, BAND, 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,TYPE_EXTENSION_AND" />
+ </module>
+
+
+ <!-- Modifier Checks -->
+ <!-- See http://checkstyle.sf.net/config_modifiers.html -->
+ <module name="ModifierOrder" />
+ <module name="RedundantModifier" />
+
+
+ <!-- Checks for blocks. You know, those {}'s -->
+ <!-- See http://checkstyle.sf.net/config_blocks.html -->
+ <module name="AvoidNestedBlocks">
+ <property name="allowInSwitchCase" value="true" />
+ </module>
+ <module name="EmptyBlock">
+ <property name="option" value="text" />
+ </module>
+ <module name="LeftCurly" />
+ <!-- <module name="NeedBraces" />-->
+ <module name="RightCurly" />
+
+
+ <!-- Checks for common coding problems -->
+ <!-- See http://checkstyle.sf.net/config_coding.html -->
+ <!--<module name="ArrayTrailingComma"/>-->
+ <!--<module name="AvoidInlineConditionals"/>-->
+ <module name="CovariantEquals" />
+ <module name="DoubleCheckedLocking" />
+ <module name="EmptyStatement" />
+ <module name="EqualsHashCode" />
+ <!--<module name="FinalLocalVariable"/>-->
+ <module name="HiddenField">
+ <property name="ignoreConstructorParameter" value="true" />
+ <property name="ignoreSetter" value="true" />
+ </module>
+ <module name="IllegalInstantiation" />
+ <!--<module name="IllegalToken"/>-->
+ <!--<module name="IllegalTokenText"/>-->
+ <module name="InnerAssignment" />
+ <!--<module name="MagicNumber"/>-->
+ <module name="MissingSwitchDefault" />
+ <!--module name="ModifiedControlVariable"/-->
+ <!--<module name="SimplifyBooleanExpression" /> -->
+ <module name="SimplifyBooleanReturn" />
+ <module name="StringLiteralEquality" />
+ <module name="NestedIfDepth">
+ <property name="max" value="3" />
+ </module>
+ <module name="NestedTryDepth">
+ <property name="max" value="3" />
+ </module>
+ <module name="SuperClone" />
+ <module name="SuperFinalize" />
+ <!--<module name="IllegalCatch"/>-->
+ <module name="IllegalThrows">
+ <property name="illegalClassNames"
+ value="java.lang.Error,java.lang.RuntimeException" />
+ </module>
+ <!--<module name="RedundantThrows"/>-->
+ <module name="PackageDeclaration" />
+ <module name="JUnitTestCase" />
+ <module name="ReturnCount">
+ <property name="max" value="6" />
+ </module>
+
+ <module name="IllegalType">
+ <property name="format" value="^xxx$" />
+ <property name="illegalClassNames"
+ value="java.util.GregorianCalendar, java.util.Hashtable, java.util.HashSet, java.util.HashMap, java.util.ArrayList, java.util.LinkedList, java.util.LinkedHashMap, java.util.LinkedHashSet, java.util.TreeSet, java.util.TreeMap" />
+ </module>
+ <module name="DeclarationOrder" />
+ <!--<module name="ParameterAssignment"/>-->
+ <module name="ExplicitInitialization" />
+ <module name="DefaultComesLast" />
+ <!--<module name="MissingCtor"/>-->
+ <module name="FallThrough" />
+ <!--<module name="MultipleStringLiterals"/>-->
+ <module name="MultipleVariableDeclarations" />
+ <!--<module name="RequireThis"/>-->
+ <module name="UnnecessaryParentheses" />
+
+
+
+ <!-- Checks for class design -->
+ <!-- See http://checkstyle.sf.net/config_design.html -->
+ <!--<module name="DesignForExtension"/>-->
+ <module name="FinalClass" />
+ <module name="HideUtilityClassConstructor" />
+ <module name="InterfaceIsType" />
+ <!--<module name="MutableException"/>-->
+ <module name="ThrowsCount">
+ <property name="max" value="5" />
+ </module>
+ <module name="VisibilityModifier">
+ <property name="protectedAllowed" value="true" />
+ <property name="packageAllowed" value="true" />
+ <!-- this is needed for the resource injection unit tests. It will removed
+ when private member inject is supported.
+ -->
+ <property name="publicMemberPattern" value="resource[12].*" />
+ </module>
+
+
+
+ <!-- Metrics checks. -->
+ <!-- See http://checkstyle.sf.net/config_metrics.html -->
+ <module name="BooleanExpressionComplexity">
+ <property name="max" value="6" />
+ </module>
+ <!--<module name="ClassDataAbstractionCoupling"/>-->
+ <!--<module name="ClassFanOutComplexity"/>-->
+ <!--<module name="CyclomaticComplexity"/>-->
+ <!--<module name="NPathComplexity"/>-->
+ <module name="JavaNCSS">
+ <property name="methodMaximum" value="100" />
+ </module>
+
+
+ <!-- Miscellaneous other checks. -->
+ <!-- See http://checkstyle.sf.net/config_misc.html -->
+ <!--
+ <module name="ArrayTypeStyle"/>
+ <module name="FinalParameters"/>
+ -->
+ <!--
+ <module name="GenericIllegalRegexp">
+ <property name="format" value="\s+$"/>
+ <property name="message" value="Line has trailing spaces."/>
+ </module>
+ -->
+ <!--<module name="TodoComment">
+ <property name="format" value="WARNING" />
+ </module>-->
+
+ <module name="UpperEll" />
+
+ <!--Assert statement may have side effects:-->
+ <module name="DescendantToken">
+ <property name="tokens" value="LITERAL_ASSERT" />
+ <property name="limitedTokens"
+ value="ASSIGN,DEC,INC,POST_DEC,POST_INC,PLUS_ASSIGN,MINUS_ASSIGN,STAR_ASSIGN,DIV_ASSIGN,MOD_ASSIGN,BSR_ASSIGN,SR_ASSIGN,SL_ASSIGN,BAND_ASSIGN,BXOR_ASSIGN,BOR_ASSIGN" />
+ <property name="maximumNumber" value="0" />
+ </module>
+
+ <!--<module name="UncommentedMain"/>-->
+ <!--module name="TrailingComment"/-->
+ <module name="Indentation">
+ <property name="caseIndent" value="2" />
+ <property name="basicOffset" value="2" />
+ </module>
+ <!--<module name="RequiredRegexp">-->
+ </module>
+ <module name="SuppressionCommentFilter"/>
+</module>
Propchange: lucene/mahout/trunk/etc/mahout-checkstyle.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: lucene/mahout/trunk/etc/mahout-checkstyle.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: lucene/mahout/trunk/etc/mahout-pmd-ruleset.xml
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/etc/mahout-pmd-ruleset.xml?rev=926067&view=auto
==============================================================================
--- lucene/mahout/trunk/etc/mahout-pmd-ruleset.xml (added)
+++ lucene/mahout/trunk/etc/mahout-pmd-ruleset.xml Mon Mar 22 13:22:40 2010
@@ -0,0 +1,189 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<ruleset name="pmd-eclipse">
+ <description>PMD Plugin preferences rule set</description>
+
+
+ <rule ref="rulesets/basic.xml/BooleanInstantiation"/>
+ <rule ref="rulesets/basic.xml/CollapsibleIfStatements"/>
+ <rule ref="rulesets/basic.xml/DoubleCheckedLocking"/>
+ <rule ref="rulesets/basic.xml/EmptyCatchBlock"/>
+ <rule ref="rulesets/basic.xml/EmptyFinallyBlock"/>
+ <rule ref="rulesets/basic.xml/EmptyIfStmt"/>
+ <rule ref="rulesets/basic.xml/EmptyStatementNotInLoop"/>
+ <!--<rule ref="rulesets/basic.xml/EmptyStaticInitializer"/>-->
+ <!--<rule ref="rulesets/basic.xml/EmptySwitchStatements"/>-->
+ <rule ref="rulesets/basic.xml/EmptySynchronizedBlock"/>
+ <rule ref="rulesets/basic.xml/EmptyTryBlock"/>
+ <!--<rule ref="rulesets/basic.xml/EmptyWhileStmt"/>-->
+ <rule ref="rulesets/basic.xml/ForLoopShouldBeWhileLoop"/>
+ <rule ref="rulesets/basic.xml/JumbledIncrementer"/>
+ <rule ref="rulesets/basic.xml/OverrideBothEqualsAndHashcode"/>
+ <rule ref="rulesets/basic.xml/ReturnFromFinallyBlock"/>
+ <rule ref="rulesets/basic.xml/UnconditionalIfStatement"/>
+ <rule ref="rulesets/basic.xml/UnnecessaryConversionTemporary"/>
+ <rule ref="rulesets/basic.xml/UnnecessaryFinalModifier"/>
+ <rule ref="rulesets/basic.xml/UnnecessaryReturn"/>
+ <!--<rule ref="rulesets/basic.xml/UselessOverridingMethod"/>-->
+
+ <!--<rule ref="rulesets/braces.xml/ForLoopsMustUseBraces"/>-->
+ <!--<rule ref="rulesets/braces.xml/IfElseStmtsMustUseBraces"/>-->
+ <!--<rule ref="rulesets/braces.xml/IfStmtsMustUseBraces"/>-->
+ <!--<rule ref="rulesets/braces.xml/WhileLoopsMustUseBraces"/>-->
+
+ <!--<rule ref="rulesets/clone.xml/CloneMethodMustImplementCloneable"/>-->
+ <!--<rule ref="rulesets/clone.xml/CloneThrowsCloneNotSupportedException"/>-->
+ <!--<rule ref="rulesets/clone.xml/ProperCloneImplementation"/>-->
+
+ <rule ref="rulesets/codesize.xml/CyclomaticComplexity"/>
+ <rule ref="rulesets/codesize.xml/ExcessiveClassLength"/>
+ <rule ref="rulesets/codesize.xml/ExcessiveMethodLength"/>
+ <rule ref="rulesets/codesize.xml/ExcessiveParameterList"/>
+ <rule ref="rulesets/codesize.xml/ExcessivePublicCount"/>
+ <!--<rule ref="rulesets/codesize.xml/TooManyFields"/>-->
+
+ <!--<rule ref="rulesets/controversial.xml/AssignmentInOperand"/>-->
+ <!--<rule ref="rulesets/controversial.xml/AtLeastOneConstructor"/>-->
+ <!--<rule ref="rulesets/controversial.xml/CallSuperInConstructor"/>-->
+ <!--<rule ref="rulesets/controversial.xml/DontImportSun"/>-->
+ <!--<rule ref="rulesets/controversial.xml/NullAssignment"/>-->
+ <!--<rule ref="rulesets/controversial.xml/OnlyOneReturn"/>-->
+ <!--<rule ref="rulesets/controversial.xml/SingularField"/>-->
+ <!--<rule ref="rulesets/controversial.xml/SuspiciousOctalEscape"/>-->
+ <!--<rule ref="rulesets/controversial.xml/UnnecessaryConstructor"/>-->
+ <!--<rule ref="rulesets/controversial.xml/UnnecessaryParentheses"/>-->
+ <!--<rule ref="rulesets/controversial.xml/UnusedModifier"/>-->
+
+ <!--<rule ref="rulesets/coupling.xml/CouplingBetweenObjects"/>-->
+ <!--<rule ref="rulesets/coupling.xml/ExcessiveImports"/>-->
+ <!--<rule ref="rulesets/coupling.xml/LooseCoupling"/>-->
+
+ <!--<rule ref="rulesets/design.xml/AbstractClassWithoutAbstractMethod"/>-->
+ <!--<rule ref="rulesets/design.xml/AccessorClassGeneration"/>-->
+ <!--<rule ref="rulesets/design.xml/AssignmentToNonFinalStatic"/>-->
+ <rule ref="rulesets/design.xml/AvoidDeeplyNestedIfStmts"/>
+ <!--<rule ref="rulesets/design.xml/AvoidInstanceofChecksInCatchClause"/>-->
+ <rule ref="rulesets/design.xml/AvoidProtectedFieldInFinalClass"/>
+ <!--<rule ref="rulesets/design.xml/AvoidReassigningParameters"/>-->
+ <!--<rule ref="rulesets/design.xml/AvoidSynchronizedAtMethodLevel"/>-->
+ <!--<rule ref="rulesets/design.xml/BadComparison"/>-->
+ <!--<rule ref="rulesets/design.xml/CloseConnection"/>-->
+ <!--<rule ref="rulesets/design.xml/CompareObjectsWithEquals"/>-->
+ <!--<rule ref="rulesets/design.xml/ConfusingTernary"/>-->
+ <rule ref="rulesets/design.xml/ConstructorCallsOverridableMethod"/>
+ <!--<rule ref="rulesets/design.xml/DefaultLabelNotLastInSwitchStmt"/>-->
+ <!--<rule ref="rulesets/design.xml/FinalFieldCouldBeStatic"/>-->
+ <rule ref="rulesets/design.xml/IdempotentOperations"/>
+ <!--<rule ref="rulesets/design.xml/ImmutableField"/>-->
+ <!--<rule ref="rulesets/design.xml/InstantiationToGetClass"/>-->
+ <!--<rule ref="rulesets/design.xml/MissingBreakInSwitch"/>-->
+ <!--<rule ref="rulesets/design.xml/MissingStaticMethodInNonInstantiatableClass"/>-->
+ <!--<rule ref="rulesets/design.xml/NonCaseLabelInSwitchStatement"/>-->
+ <!--<rule ref="rulesets/design.xml/NonStaticInitializer"/>-->
+ <rule ref="rulesets/design.xml/OptimizableToArrayCall"/>
+ <rule ref="rulesets/design.xml/PositionLiteralsFirstInComparisons"/>
+ <!--rule ref="rulesets/design.xml/SimplifyBooleanExpressions"/-->
+ <rule ref="rulesets/design.xml/SimplifyBooleanReturns"/>
+ <rule ref="rulesets/design.xml/SimplifyConditional"/>
+ <!--<rule ref="rulesets/design.xml/SwitchDensity"/>-->
+ <!--<rule ref="rulesets/design.xml/SwitchStmtsShouldHaveDefault"/>-->
+ <rule ref="rulesets/design.xml/UnnecessaryLocalBeforeReturn"/>
+ <!--<rule ref="rulesets/design.xml/UseLocaleWithCaseConversions"/>-->
+ <!--<rule ref="rulesets/design.xml/UseNotifyAllInsteadOfNotify"/>-->
+ <!--<rule ref="rulesets/design.xml/UseSingleton"/>-->
+
+ <!--<rule ref="rulesets/finalizers.xml/EmptyFinalizer"/>-->
+ <!--<rule ref="rulesets/finalizers.xml/FinalizeOnlyCallsSuperFinalize"/>-->
+ <!--<rule ref="rulesets/finalizers.xml/FinalizeOverloaded"/>-->
+ <!--<rule ref="rulesets/finalizers.xml/FinalizeDoesNotCallSuperFinalize"/>-->
+ <!--<rule ref="rulesets/finalizers.xml/FinalizeShouldBeProtected"/>-->
+ <rule ref="rulesets/finalizers.xml/AvoidCallingFinalize"/>
+
+ <rule ref="rulesets/imports.xml/DuplicateImports"/>
+ <rule ref="rulesets/imports.xml/DontImportJavaLang"/>
+ <rule ref="rulesets/imports.xml/UnusedImports"/>
+ <rule ref="rulesets/imports.xml/ImportFromSamePackage"/>
+
+ <!--<rule ref="rulesets/javabeans.xml/BeanMembersShouldSerialize"/>-->
+ <!--<rule ref="rulesets/javabeans.xml/MissingSerialVersionUID"/>-->
+
+ <!--<rule ref="rulesets/junit.xml/JUnitStaticSuite"/>-->
+ <!--<rule ref="rulesets/junit.xml/JUnitSpelling"/>-->
+ <!--<rule ref="rulesets/junit.xml/JUnitAssertionsShouldIncludeMessage"/>-->
+ <rule ref="rulesets/junit.xml/JUnitTestsShouldIncludeAssert"/>
+ <!--<rule ref="rulesets/junit.xml/TestClassWithoutTestCases"/>-->
+ <!--<rule ref="rulesets/junit.xml/UnnecessaryBooleanAssertion"/>-->
+ <!--<rule ref="rulesets/junit.xml/UseAssertEqualsInsteadOfAssertTrue"/>-->
+ <!--<rule ref="rulesets/junit.xml/UseAssertSameInsteadOfAssertTrue"/>-->
+
+ <rule ref="rulesets/logging-java.xml/AvoidPrintStackTrace"/>
+ <rule ref="rulesets/logging-java.xml/LoggerIsNotStaticFinal"/>
+ <!--<rule ref="rulesets/logging-java.xml/MoreThanOneLogger"/>-->
+ <!--<rule ref="rulesets/logging-java.xml/LoggerIsNotStaticFinal"/>-->
+ <!--<rule ref="rulesets/logging-java.xml/LogBlockWithoutIf"/>-->
+ <!--<rule ref="rulesets/logging-java.xml/SystemPrintln"/>-->
+ <!--<rule ref="rulesets/logging-jakarta-commons.xml/UseCorrectExceptionLogging"/>-->
+ <!--<rule ref="rulesets/logging-jakarta-commons.xml/ProperLogger"/>-->
+
+ <!--<rule ref="rulesets/naming.xml/ShortVariable"/>-->
+ <!--<rule ref="rulesets/naming.xml/LongVariable"/>-->
+ <!--<rule ref="rulesets/naming.xml/ShortMethodName"/>-->
+ <rule ref="rulesets/naming.xml/VariableNamingConventions"/>
+ <rule ref="rulesets/naming.xml/MethodNamingConventions"/>
+ <rule ref="rulesets/naming.xml/ClassNamingConventions"/>
+ <rule ref="rulesets/naming.xml/AbstractNaming"/>
+ <!--<rule ref="rulesets/naming.xml/AvoidDollarSigns"/>-->
+ <!--<rule ref="rulesets/naming.xml/MethodWithSameNameAsEnclosingClass"/>-->
+ <!--<rule ref="rulesets/naming.xml/SuspiciousHashcodeMethodName"/>-->
+ <!--<rule ref="rulesets/naming.xml/SuspiciousConstantFieldName"/>-->
+ <rule ref="rulesets/naming.xml/AvoidFieldNameMatchingTypeName"/>
+ <rule ref="rulesets/naming.xml/AvoidFieldNameMatchingMethodName"/>
+ <!-- <rule ref="rulesets/naming.xml/AvoidNonConstructorMethodsWithClassName"/> -->
+ <rule ref="rulesets/naming.xml/NoPackage"/>
+ <rule ref="rulesets/naming.xml/PackageCase"/>
+
+ <!--<rule ref="rulesets/optimizations.xml/LocalVariableCouldBeFinal"/>-->
+ <!--<rule ref="rulesets/optimizations.xml/MethodArgumentCouldBeFinal"/>-->
+ <!--<rule ref="rulesets/optimizations.xml/AvoidInstantiatingObjectsInLoops"/>-->
+ <!--<rule ref="rulesets/optimizations.xml/UseArrayListInsteadOfVector"/>-->
+ <rule ref="rulesets/optimizations.xml/SimplifyStartsWith"/>
+ <rule ref="rulesets/optimizations.xml/UseStringBufferForStringAppends"/>
+
+ <!--<rule ref="rulesets/strictexception.xml/AvoidCatchingThrowable"/>-->
+ <!--<rule ref="rulesets/strictexception.xml/SignatureDeclareThrowsException"/>-->
+ <rule ref="rulesets/strictexception.xml/ExceptionAsFlowControl"/>
+ <!--<rule ref="rulesets/strictexception.xml/AvoidCatchingNPE"/>-->
+ <!--<rule ref="rulesets/strictexception.xml/AvoidThrowingRawExceptionTypes"/>-->
+ <!--<rule ref="rulesets/strictexception.xml/AvoidThrowingNullPointerException"/>-->
+
+ <rule ref="rulesets/strings.xml/AvoidDuplicateLiterals"/>
+ <rule ref="rulesets/strings.xml/StringInstantiation"/>
+ <rule ref="rulesets/strings.xml/StringToString"/>
+ <!-- <rule ref="rulesets/strings.xml/AvoidConcatenatingNonLiteralsInStringBuffer"/>-->
+ <rule ref="rulesets/strings.xml/UnnecessaryCaseChange"/>
+
+ <rule ref="rulesets/sunsecure.xml/MethodReturnsInternalArray"/>
+ <rule ref="rulesets/sunsecure.xml/ArrayIsStoredDirectly"/>
+
+ <rule ref="rulesets/unusedcode.xml/UnusedLocalVariable"/>
+ <rule ref="rulesets/unusedcode.xml/UnusedPrivateField"/>
+ <rule ref="rulesets/unusedcode.xml/UnusedPrivateMethod"/>
+ <rule ref="rulesets/unusedcode.xml/UnusedFormalParameter"/>
+</ruleset>
Propchange: lucene/mahout/trunk/etc/mahout-pmd-ruleset.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: lucene/mahout/trunk/etc/mahout-pmd-ruleset.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: lucene/mahout/trunk/etc/mahout.importorder
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/etc/mahout.importorder?rev=926067&view=auto
==============================================================================
--- lucene/mahout/trunk/etc/mahout.importorder (added)
+++ lucene/mahout/trunk/etc/mahout.importorder Mon Mar 22 13:22:40 2010
@@ -0,0 +1,27 @@
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#
+#Organize Import Order
+#Thu Aug 11 12:37:29 EDT 2005
+4=junit
+3=org.xml
+2=org.w3c
+1=javax
+0=java
Modified: lucene/mahout/trunk/pom.xml
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/pom.xml?rev=926067&r1=926066&r2=926067&view=diff
==============================================================================
--- lucene/mahout/trunk/pom.xml (original)
+++ lucene/mahout/trunk/pom.xml Mon Mar 22 13:22:40 2010
@@ -1,4 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
@@ -222,6 +239,46 @@
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-eclipse-plugin</artifactId>
+ <version>2.8</version>
+ <configuration>
+ <outputDirectory>${eclipse.outputDirectory}</outputDirectory>
+ <buildcommands>
+ <java.lang.String>org.eclipse.jdt.core.javabuilder</java.lang.String>
+ <java.lang.String>com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder</java.lang.String>
+ <java.lang.String>net.sourceforge.pmd.eclipse.plugin.pmdBuilder</java.lang.String>
+ </buildcommands>
+ <projectnatures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>com.atlassw.tools.eclipse.checkstyle.CheckstyleNature</nature>
+ <nature>net.sourceforge.pmd.eclipse.plugin.pmdNature</nature>
+ </projectnatures>
+ <additionalConfig>
+ <file>
+ <name>.checkstyle</name>
+ <location>/mahout-eclipse-checkstyle</location>
+ </file>
+ <file>
+ <name>.pmd</name>
+ <location>/mahout-eclipse-pmd</location>
+ </file>
+ <file>
+ <name>.ruleset</name>
+ <location>/mahout-pmd-ruleset.xml</location>
+ </file>
+ </additionalConfig>
+ </configuration>
+ <!-- the 'location' elements above refer to classpath -->
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.mahout</groupId>
+ <artifactId>mahout-eclipse-support</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.0-beta-9</version>
<configuration>
@@ -364,25 +421,10 @@
</supplementalModels>
</configuration>
</plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-eclipse-plugin</artifactId>
- <!-- until I sort this out further -->
- <inherited>false</inherited>
- <configuration>
- <downloadJavadocs>true</downloadJavadocs>
- <downloadSources>true</downloadSources>
- <additionalConfig>
- <file>
- <name>.checkstyle</name>
- <location>maven/src/main/resources/mahout-eclipse-checkstyle</location>
- </file>
- </additionalConfig>
- </configuration>
- </plugin>
</plugins>
</build>
<modules>
+ <module>eclipse</module>
<module>collections-codegen-plugin</module>
<module>collections</module>
<module>math</module>
@@ -513,6 +555,35 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>set.eclipse.output</id>
+ <properties>
+ <eclipse.outputDirectory>${basedir}/eclipse-classes</eclipse.outputDirectory>
+ </properties>
+ </profile>
+
+ <profile>
+ <id>setup.eclipse</id>
+ <build>
+ <defaultGoal>process-test-sources</defaultGoal>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-eclipse-plugin</artifactId>
+ <version>2.8</version>
+ <executions>
+ <execution>
+ <id>setup.eclipse.project</id>
+ <phase>process-test-sources</phase>
+ <goals>
+ <goal>eclipse</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
<scm>
<connection>scm:svn:https://svn.apache.org/repos/asf/lucene/mahout/trunk</connection>