Revision: 96 http://mvn-infix.svn.sourceforge.net/mvn-infix/?rev=96&view=rev Author: bindul Date: 2010-12-18 23:53:17 +0000 (Sat, 18 Dec 2010)
Log Message: ----------- Custom checkstyle module Modified Paths: -------------- shared/infix-plugins-common/trunk/pom.xml Added Paths: ----------- shared/infix-plugins-common/trunk/infix-build-configs/ shared/infix-plugins-common/trunk/infix-build-configs/pom.xml shared/infix-plugins-common/trunk/infix-build-configs/src/ shared/infix-plugins-common/trunk/infix-build-configs/src/main/ shared/infix-plugins-common/trunk/infix-build-configs/src/main/resources/ shared/infix-plugins-common/trunk/infix-build-configs/src/main/resources/infix/ shared/infix-plugins-common/trunk/infix-build-configs/src/main/resources/infix/checkstyle/ shared/infix-plugins-common/trunk/infix-build-configs/src/main/resources/infix/checkstyle/infix-checks.xml Property changes on: shared/infix-plugins-common/trunk/infix-build-configs ___________________________________________________________________ Added: svn:ignore + target Added: shared/infix-plugins-common/trunk/infix-build-configs/pom.xml =================================================================== --- shared/infix-plugins-common/trunk/infix-build-configs/pom.xml (rev 0) +++ shared/infix-plugins-common/trunk/infix-build-configs/pom.xml 2010-12-18 23:53:17 UTC (rev 96) @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + | + | Copyright (c) 2010 MindTree Ltd. + | + | This file is part of Infix. + | + | Infix is free software: you can redistribute it + | and/or modify it under the terms of the GNU General Public License as + | published by the Free Software Foundation, either version 3 of the License, + | or (at your option) any later version. + | + | Infix is distributed in the hope that it will be + | useful, but WITHOUT ANY WARRANTY; without even the implied warranty of + | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General + | Public License for more details. + | + | You should have received a copy of the GNU General Public License along with + | Infix. If not, see <http://www.gnu.org/licenses/>. + | +--> +<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/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>com.mindtree.techworks.infix.plugins-common</groupId> + <artifactId>infix-plugins-common</artifactId> + <version>0.1.0-SNAPSHOT</version> + </parent> + <artifactId>infix-build-configs</artifactId> + <packaging>jar</packaging> + <name>Infix Plugins Common Build Configurations</name> + <description>Shared Checkstyle, PMD, etc., configurations</description> +</project> \ No newline at end of file Property changes on: shared/infix-plugins-common/trunk/infix-build-configs/pom.xml ___________________________________________________________________ Added: svn:mime-type + text/xml Added: svn:keywords + Date Author Id Revision HeadURL Added: svn:eol-style + native Added: shared/infix-plugins-common/trunk/infix-build-configs/src/main/resources/infix/checkstyle/infix-checks.xml =================================================================== --- shared/infix-plugins-common/trunk/infix-build-configs/src/main/resources/infix/checkstyle/infix-checks.xml (rev 0) +++ shared/infix-plugins-common/trunk/infix-build-configs/src/main/resources/infix/checkstyle/infix-checks.xml 2010-12-18 23:53:17 UTC (rev 96) @@ -0,0 +1,179 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE module SYSTEM "http://users.tpg.com.au/ojburn/dtds/configuration_1_3.dtd"> +<!-- + | + | Copyright (c) 2010 MindTree Ltd. + | + | This file is part of Infix. + | + | Infix is free software: you can redistribute it + | and/or modify it under the terms of the GNU General Public License as + | published by the Free Software Foundation, either version 3 of the License, + | or (at your option) any later version. + | + | Infix is distributed in the hope that it will be + | useful, but WITHOUT ANY WARRANTY; without even the implied warranty of + | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General + | Public License for more details. + | + | You should have received a copy of the GNU General Public License along with + | Infix. If not, see <http://www.gnu.org/licenses/>. + | +--> +<module name="Checker"> + <!-- + If you set the basedir property below, then all reported file + names will be relative to the specified directory. See + http://checkstyle.sourceforge.net/5.x/config.html#Checker + + <property name="basedir" value="${basedir}"/> + --> + + <!-- Checks that each Java package has a Javadoc file used for commenting. --> + <!-- See http://checkstyle.sf.net/config_javadoc.html#JavadocPackage --> + <module name="JavadocPackage"> + <property name="allowLegacy" value="true"/> + </module> + + <!-- 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="FileLength"/> + + <!-- Following interprets the header file as regular expressions. --> + <!-- <module name="RegexpHeader"/> --> + + <module name="FileTabCharacter"> + <property name="eachLine" value="true"/> + </module> + + <module name="RegexpSingleline"> + <!-- \s matches whitespace character, $ matches end of line. --> + <property name="format" value="\s+$"/> + <property name="message" value="Line has trailing spaces."/> + </module> + + <module name="TreeWalker"> + + <property name="cacheFile" value="${checkstyle.cache.file}"/> + + <!-- Checks for Javadoc comments. --> + <!-- See http://checkstyle.sf.net/config_javadoc.html --> + <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"/> + <module name="LocalFinalVariableName"/> + <module name="LocalVariableName"/> + <module name="MemberName"/> + <module name="MethodName"/> + <module name="PackageName"/> + <module name="ParameterName"/> + <module name="StaticVariableName"/> + <module name="TypeName"/> + + + <!-- Checks for Headers --> + <!-- See http://checkstyle.sf.net/config_header.html --> + <!-- <module name="Header"> --> + <!-- The follow property value demonstrates the ability --> + <!-- to have access to ANT properties. In this case it uses --> + <!-- the ${basedir} property to allow Checkstyle to be run --> + <!-- from any directory within a project. See property --> + <!-- expansion, --> + <!-- http://checkstyle.sf.net/config.html#properties --> + <!-- <property --> + <!-- name="headerFile" --> + <!-- value="${basedir}/java.header"/> --> + <!-- </module> --> + + + <!-- 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"/> + + + <!-- Checks for Size Violations. --> + <!-- See http://checkstyle.sf.net/config_sizes.html --> + <module name="LineLength"> + <property name="max" value="120"/> + <property name="ignorePattern" value="^ *\* *+$"/> + </module> + <module name="MethodLength"/> + <module name="ParameterNumber"/> + + + <!-- Checks for whitespace --> + <!-- See http://checkstyle.sf.net/config_whitespace.html --> + <module name="EmptyForIteratorPad"/> + <module name="MethodParamPad"/> + <module name="NoWhitespaceAfter"/> + <module name="NoWhitespaceBefore"/> + <module name="OperatorWrap"/> + <module name="ParenPad"/> + <module name="TypecastParenPad"/> + <module name="WhitespaceAfter"/> + <module name="WhitespaceAround"/> + + + <!-- 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"/> + <module name="EmptyBlock"/> + <module name="LeftCurly"/> + <module name="NeedBraces"/> + <module name="RightCurly"/> + + + <!-- Checks for common coding problems --> + <!-- See http://checkstyle.sf.net/config_coding.html --> + <module name="AvoidInlineConditionals"/> + <module name="DoubleCheckedLocking"/> <!-- MY FAVOURITE --> + <module name="EmptyStatement"/> + <module name="EqualsHashCode"/> + <module name="HiddenField"/> + <module name="IllegalInstantiation"/> + <module name="InnerAssignment"/> + <module name="MagicNumber"/> + <module name="MissingSwitchDefault"/> + <module name="RedundantThrows"/> + <module name="SimplifyBooleanExpression"/> + <module name="SimplifyBooleanReturn"/> + + <!-- 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="VisibilityModifier"/> + + + <!-- Miscellaneous other checks. --> + <!-- See http://checkstyle.sf.net/config_misc.html --> + <module name="ArrayTypeStyle"/> + <module name="FinalParameters"/> + <module name="TodoComment"/> + <module name="UpperEll"/> + + </module> +</module> \ No newline at end of file Property changes on: shared/infix-plugins-common/trunk/infix-build-configs/src/main/resources/infix/checkstyle/infix-checks.xml ___________________________________________________________________ Added: svn:mime-type + text/xml Added: svn:keywords + Date Author Id Revision HeadURL Added: svn:eol-style + native Modified: shared/infix-plugins-common/trunk/pom.xml =================================================================== --- shared/infix-plugins-common/trunk/pom.xml 2010-12-18 23:52:16 UTC (rev 95) +++ shared/infix-plugins-common/trunk/pom.xml 2010-12-18 23:53:17 UTC (rev 96) @@ -42,6 +42,7 @@ <url>http://sourceforge.net/apps/mantisbt/mvn-infix/search.php?project_id=5&hide_status_id=-2</url> </issueManagement> <modules> + <module>infix-build-configs</module> <module>infix-mojo-utils</module> <module>infix-velocity-utils</module> <module>infix-test-utils</module> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ mvn-Infix-commits mailing list mvn-Infix-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mvn-infix-commits