checkstyle-rules.xml.svn-base

来自「cqME :java framework for TCK test.」· SVN-BASE 代码 · 共 226 行

SVN-BASE
226
字号
<?xml version="1.0"?><!DOCTYPE module PUBLIC    "-//Puppy Crawl//DTD Check Configuration 1.2//EN"    "http://www.puppycrawl.com/dtds/configuration_1_2.dtd"><!--  $Id$  Copyright 1996-2007 Sun Microsystems, Inc. All Rights Reserved.  DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER  This program is free software; you can redistribute it and/or  modify it under the terms of the GNU General Public License version  2 only, as published by the Free Software Foundation.  This program 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 version 2 for more details (a copy is  included at /legal/license.txt).  You should have received a copy of the GNU General Public License  version 2 along with this work; if not, write to the Free Software  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA  Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa  Clara, CA 95054 or visit www.sun.com if you need additional  information or have any questions.--><!-- J2ME TCK Framework Coding Conventions.     The rules are from:    - the Java Language Specification at      http://java.sun.com/docs/books/jls/second_edition/html/index.html    - the Sun Code Conventions at http://java.sun.com/docs/codeconv/    - the Javadoc guidelines at      http://java.sun.com/j2se/javadoc/writingdoccomments/index.html    - the JDK Api documentation http://java.sun.com/j2se/docs/api/index.html    - some best practices--><module name="Checker">    <!-- default severity is "warning" -->    <property name="severity" value="warning"/>    <!-- Checks that a package.html file exists for each package.     -->    <!-- See http://checkstyle.sf.net/config_javadoc.html#PackageHtml -->    <module name="PackageHtml"/>    <!-- Checks that property files contain the same keys.         -->    <!-- See http://checkstyle.sf.net/config_misc.html#Translation -->    <module name="Translation"/>    <!-- Checks for copy-pasted code :) -->    <module name="StrictDuplicateCode">        <property name="min" value="15"/>        <property name="charset" value="UTF-8"/>    </module>    <module name="TreeWalker">        <!-- Checks for Javadoc comments.                     -->        <!-- See http://checkstyle.sf.net/config_javadoc.html -->                <!-- This check requires properly configured class path,               otherwise there will be errors reported. So we exclude it.               Javadocs should are also checked by other tools anyways.            <module name="JavadocMethod">                <property name="scope" value="protected"/>            </module> -->        <module name="JavadocType">            <property name="scope" value="protected"/>        </module>        <module name="JavadocVariable">            <property name="scope" value="protected"/>        </module>        <module name="JavadocStyle"/>        <!-- Checks for Naming Conventions.                  -->        <!-- See http://checkstyle.sf.net/config_naming.html -->        <module name="ConstantName">            <!-- Customized to allow "i18n" and "log" that we often use -->            <property name="format"                value="^([A-Z][A-Z0-9]*(_[A-Z0-9]+)*)|(i18n)|(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"/>        <!-- Following interprets the header file as regular expressions. -->        <!-- <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"/>        <!-- Checks for Size Violations.                    -->        <!-- See http://checkstyle.sf.net/config_sizes.html -->        <module name="AnonInnerLength">            <property name="max" value="60"/>        </module>        <module name="FileLength"/>        <module name="LineLength"/>        <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="TabCharacter"/>        <module name="WhitespaceAfter"/>        <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,LITERAL_ASSERT,TYPE_EXTENSION_AND,WILDCARD_TYPE"/>        </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"/>        <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="CovariantEquals"/>        <module name="DefaultComesLast"/>        <module name="EmptyStatement"/>        <module name="EqualsHashCode"/>        <module name="HiddenField">            <property name="ignoreConstructorParameter" value="true"/>            <property name="ignoreSetter" value="true"/>        </module>        <module name="IllegalCatch"/>        <module name="IllegalInstantiation"/>        <module name="InnerAssignment"/>        <module name="FallThrough"/>        <module name="MagicNumber"/>        <module name="MissingSwitchDefault"/>        <module name="MissingCtor"/>        <module name="MultipleStringLiterals">            <property name="allowedDuplicates" value="2"/>        </module>        <module name="ParameterAssignment"/>        <module name="SimplifyBooleanExpression"/>        <module name="SimplifyBooleanReturn"/>        <module name="StringLiteralEquality"/>        <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="VisibilityModifier"/>        <module name="InterfaceIsType"/>        <module name="ThrowsCount">            <property name="max" value="2"/>        </module>        <!-- Checks for complexity -->        <!-- See http://checkstyle.sourceforge.net/config_metrics.html -->        <module name="BooleanExpressionComplexity"/>        <module name="ClassDataAbstractionCoupling"/>        <module name="ClassFanOutComplexity"/>        <module name="CyclomaticComplexity"/>        <module name="NPathComplexity"/>        <!-- 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"/>        <module name="UncommentedMain"/>        <module name="UpperEll"/>    </module>    <module name="SeverityMatchFilter">        <property name="severity" value="ignore"/>        <property name="acceptOnMatch" value="false"/>    </module></module>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?