Repository navigation
Expand file tree
/
Copy pathcheckstyle.xml
More file actions
58 lines (58 loc) · 2.79 KB
/
Copy pathcheckstyle.xml
File metadata and controls
58 lines (58 loc) · 2.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?xml version="1.0" encoding="UTF-8"?>
<!--
###############################################################################
#
# Copyright IBM Corp. 2023, 2026
#
# This code is free software; you can redistribute it and/or modify it
# under the terms provided by IBM in the LICENSE file that accompanied
# this code, including the "Classpath" Exception described therein.
###############################################################################
-->
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "https://checkstyle.org/dtds/configuration_1_3.dtd">
<module name="Checker">
<module name="FileTabCharacter"/>
<module name="NewlineAtEndOfFile"/>
<module name="RegexpSingleline">
<property name="format" value="[^\x00-\x7F]"/>
<property name="message" value="Non-ASCII character found. Use ASCII equivalents in source files (e.g. use '-' instead of em-dash, '->' instead of arrow characters)."/>
<property name="fileExtensions" value="java"/>
</module>
<module name="RegexpHeader">
<property name="fileExtensions" value="java"/>
<property name="header" value="^\W.*\n^.*Copyright IBM Corp\. \d\d\d\d\n^\W.*\n^\W.*. This code is free software; you can redistribute it and/or modify it\n^\W.*. under the terms provided by IBM in the LICENSE file that accompanied\n^\W.*. this code, including the "Classpath" Exception described therein."/>
</module>
<module name="RegexpSingleline">
<property name="format" value="\s+$"/>
<property name="message" value="Trailing whitespace"/>
<property name="severity" value="error"/>
</module>
<module name="TreeWalker">
<property name="fileExtensions" value="java"/>
<module name="AvoidStarImport"/>
<module name="EmptyBlock"/>
<module name="EmptyLineSeparator">
<property name="allowMultipleEmptyLinesInsideClassMembers" value="false"/>
<property name="allowNoEmptyLineBetweenFields" value="true"/>
</module>
<module name="GenericWhitespace"/>
<module name="ImportOrder"/>
<module name="Indentation">
<property name="arrayInitIndent" value="8"/>
<property name="caseIndent" value="4"/>
</module>
<module name="LeftCurly"/>
<module name="NoWhitespaceAfter"/>
<module name="NoWhitespaceBefore"/>
<module name="RedundantImport"/>
<module name="RightCurly"/>
<module name="StringLiteralEquality"/>
<module name="StringLiteralEquality"/>
<module name="UnusedImports"/>
<module name="UnusedLocalVariable"/>
<module name="WhitespaceAfter"/>
<module name="WhitespaceAround">
<property name="allowEmptyConstructors" value="true"/>
</module>
</module>
</module>