4 Star 47 Fork 7

coderjn/easyjson

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
checkstyle.xml 5.86 KB
一键复制 编辑 原始数据 按行查看 历史
coderjn 提交于 2019-07-05 15:39 . * update check style rules
<?xml version="1.0" encoding="UTF-8" ?>
<!--
~ Copyright 2019 the original author or authors.
~
~ Licensed under the LGPL, Version 3.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.gnu.org/licenses/lgpl-3.0.html
~
~ 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 "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" "http://checkstyle.org/dtds/configuration_1_3.dtd">
<module name="Checker">
<property name="severity" value="warning"/>
<property name="charset" value="UTF-8"/>
<property name="tabWidth" value="4"/>
<property name="fileExtensions" value="java"/>
<property name="haltOnException" value="false"/>
<!-- file filters-->
<module name="BeforeExecutionExclusionFileFilter">
<property name="fileNamePattern" value="module\-info\.java$"/>
</module>
<module name="BeforeExecutionExclusionFileFilter">
<property name="fileNamePattern" value="package\-info\.java$"/>
</module>
<module name="BeforeExecutionExclusionFileFilter">
<property name="fileNamePattern" value=".*androidjson-to-easyjson.*.java$"/>
</module>
<module name="BeforeExecutionExclusionFileFilter">
<property name="fileNamePattern" value=".*easyjson-examples.*.java$"/>
</module>
<module name="BeforeExecutionExclusionFileFilter">
<property name="fileNamePattern" value=".*fastjson-to-easyjson.*.java$"/>
</module>
<module name="BeforeExecutionExclusionFileFilter">
<property name="fileNamePattern" value=".*jsonlib-to-easyjson.*.java$"/>
</module>
<module name="BeforeExecutionExclusionFileFilter">
<property name="fileNamePattern" value=".*jsonsmart-to-easyjson.*.java$"/>
</module>
<module name="BeforeExecutionExclusionFileFilter">
<property name="fileNamePattern" value=".*minimaljson-to-easyjson.*.java$"/>
</module>
<module name="BeforeExecutionExclusionFileFilter">
<property name="fileNamePattern" value=".*orgjson-to-easyjson.*.java$"/>
</module>
<module name="BeforeExecutionExclusionFileFilter">
<property name="fileNamePattern" value=".*progsbase-to-easyjson.*.java$"/>
</module>
<module name="BeforeExecutionExclusionFileFilter">
<property name="fileNamePattern" value=".*simplejson-to-easyjson.*.java$"/>
</module>
<module name="TreeWalker">
<property name="tabWidth" value="4"/>
<!--
<module name="JavadocMethod">
<property name="allowMissingPropertyJavadoc" value="true"/>
<property name="tokens" value="METHOD_DEF"/>
</module>
<module name="JavadocType">
<property name="authorFormat" value=".+"/>
</module>
-->
<module name="ConstantName">
<property name="format" value="^[A-Z][A-Z0-9]+(_[A-Z0-9]+)*$"/>
</module>
<module name="LocalFinalVariableName"/>
<module name="LocalVariableName"/>
<module name="MemberName">
<property name="format" value="^[a-z]([a-zA-Z0-9]+)?$"/>
</module>
<module name="MethodName">
<property name="format" value="^[a-z]([a-zA-Z0-9]+)?$"/>
</module>
<module name="ParameterName">
<property name="format" value="^[a-z]([a-zA-Z0-9]+)?$"/>
</module>
<module name="PackageName">
<property name="format" value="^[a-zA-Z0-9]+(\.[a-zA-Z_0-9]+)*$"/>
</module>
<module name="TypeName">
<property name="format" value="^[A-Z]([a-zA-Z0-9]+)?$"/>
</module>
<module name="StaticVariableName">
<property name="format" value="^[a-zA-Z_]([a-z_A-Z0-9]+)?$"/>
</module>
<module name="LineLength">
<property name="max" value="400"/>
<property name="tabWidth" value="4"/>
</module>
<module name="EmptyForIteratorPad"/>
<module name="MethodParamPad"/>
<module name="NoWhitespaceAfter"/>
<module name="NoWhitespaceBefore">
<property name="tokens" value="SEMI,DOT,POST_DEC,POST_INC"/>
</module>
<module name="OperatorWrap"/>
<module name="ParenPad"/>
<module name="TypecastParenPad">
<property name="tokens" value="RPAREN, TYPECAST"/>
</module>
<module name="WhitespaceAfter">
<property name="tokens" value="COMMA,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,LE,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"/>
</module>
<module name="LeftCurly" />
<module name="BooleanExpressionComplexity">
<property name="max" value="7"/>
</module>
<module name="CyclomaticComplexity">
<property name="max" value="50"/>
</module>
<module name="JavaNCSS">
<property name="methodMaximum" value="500"/>
<property name="classMaximum" value="3000"/>
<property name="fileMaximum" value="3100" />
</module>
<module name="NPathComplexity">
<property name="max" value="1000"/>
</module>
</module>
</module>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/coderjn/easyjson.git
git@gitee.com:coderjn/easyjson.git
coderjn
easyjson
easyjson
dev

搜索帮助

0d507c66 1850385 C8b1a773 1850385