Skip to content

Commit 4de2e8c

Browse files
committed
🔧 更新checkstyle配置
1 parent 49af881 commit 4de2e8c

File tree

1 file changed

+9
-21
lines changed

1 file changed

+9
-21
lines changed

quality-checks/google_checks.xml

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,10 @@
33
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
44
"http://checkstyle.sourceforge.net/dtds/configuration_1_3.dtd">
55

6-
<!--
7-
Checkstyle configuration that checks the Google coding conventions from Google Java Style
8-
that can be found at https://google.github.io/styleguide/javaguide.html.
9-
10-
Checkstyle is very configurable. Be sure to read the documentation at
11-
http://checkstyle.sf.net (or in your downloaded distribution).
12-
13-
To completely disable a check, just comment it out or delete it from the file.
14-
15-
Authors: Max Vetrenko, Ruslan Diachenko, Roman Ivanov.
16-
-->
17-
18-
<module name = "Checker">
6+
<module name="Checker">
197
<property name="charset" value="UTF-8"/>
20-
218
<property name="severity" value="warning"/>
22-
239
<property name="fileExtensions" value="java, properties, xml"/>
24-
<!-- Checks for whitespace -->
25-
<!-- See http://checkstyle.sf.net/config_whitespace.html -->
2610
<module name="FileTabCharacter">
2711
<property name="eachLine" value="true"/>
2812
</module>
@@ -56,12 +40,14 @@
5640
</module>
5741
<module name="RightCurly">
5842
<property name="id" value="RightCurlySame"/>
59-
<property name="tokens" value="LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_DO"/>
43+
<property name="tokens"
44+
value="LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_DO"/>
6045
</module>
6146
<module name="RightCurly">
6247
<property name="id" value="RightCurlyAlone"/>
6348
<property name="option" value="alone"/>
64-
<property name="tokens" value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, STATIC_INIT, INSTANCE_INIT"/>
49+
<property name="tokens"
50+
value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, STATIC_INIT, INSTANCE_INIT"/>
6551
</module>
6652
<module name="WhitespaceAround">
6753
<property name="allowEmptyConstructors" value="true"/>
@@ -144,7 +130,8 @@
144130
<module name="ParenPad"/>
145131
<module name="OperatorWrap">
146132
<property name="option" value="NL"/>
147-
<property name="tokens" value="BAND, BOR, BSR, BXOR, DIV, EQUAL, GE, GT, LAND, LE, LITERAL_INSTANCEOF, LOR, LT, MINUS, MOD, NOT_EQUAL, PLUS, QUESTION, SL, SR, STAR "/>
133+
<property name="tokens"
134+
value="BAND, BOR, BSR, BXOR, DIV, EQUAL, GE, GT, LAND, LE, LITERAL_INSTANCEOF, LOR, LT, MINUS, MOD, NOT_EQUAL, PLUS, QUESTION, SL, SR, STAR "/>
148135
</module>
149136
<module name="AnnotationLocation">
150137
<property name="id" value="AnnotationLocationMostCases"/>
@@ -157,7 +144,8 @@
157144
</module>
158145
<module name="NonEmptyAtclauseDescription"/>
159146
<module name="SummaryJavadoc">
160-
<property name="forbiddenSummaryFragments" value="^@return the *|^This method returns |^A [{]@code [a-zA-Z0-9]+[}]( is a )"/>
147+
<property name="forbiddenSummaryFragments"
148+
value="^@return the *|^This method returns |^A [{]@code [a-zA-Z0-9]+[}]( is a )"/>
161149
</module>
162150
<module name="JavadocParagraph"/>
163151
<module name="AtclauseOrder">

0 commit comments

Comments
 (0)