-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcheckstyle.xml
More file actions
52 lines (46 loc) · 2.23 KB
/
checkstyle.xml
File metadata and controls
52 lines (46 loc) · 2.23 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
<!DOCTYPE module PUBLIC
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
"https://checkstyle.org/dtds/configuration_1_3.dtd">
<!--
Checkstyle configuration for GitHub Copilot SDK for Java.
Focuses on ensuring core public API classes have proper Javadoc documentation.
Excludes JSON DTOs and event data classes which are self-documenting.
-->
<module name="Checker">
<property name="charset" value="UTF-8"/>
<property name="severity" value="error"/>
<!-- Exclude json package and events package (self-documenting DTOs) -->
<module name="BeforeExecutionExclusionFileFilter">
<property name="fileNamePattern" value=".*[\\/](json|events)[\\/].*\.java$"/>
</module>
<module name="TreeWalker">
<!-- Require Javadoc on public types (classes, interfaces, enums) -->
<module name="MissingJavadocType">
<property name="scope" value="public"/>
<property name="excludeScope" value="nothing"/>
<property name="skipAnnotations" value="Generated"/>
<!-- Exclude nested/inner classes -->
<property name="tokens" value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, ANNOTATION_DEF"/>
</module>
<!-- Require Javadoc on public methods, but allow missing on getters/setters -->
<module name="MissingJavadocMethod">
<property name="scope" value="public"/>
<property name="minLineCount" value="-1"/>
<property name="allowedAnnotations" value="Override, Deprecated, Generated"/>
<property name="allowMissingPropertyJavadoc" value="true"/>
</module>
<!-- Validate Javadoc format on types -->
<module name="JavadocType">
<property name="scope" value="public"/>
<property name="allowMissingParamTags" value="true"/>
<property name="allowUnknownTags" value="true"/>
</module>
<!-- Ensure Javadoc has proper structure -->
<module name="JavadocStyle">
<property name="scope" value="public"/>
<property name="checkFirstSentence" value="false"/>
<property name="checkEmptyJavadoc" value="true"/>
<property name="checkHtml" value="false"/>
</module>
</module>
</module>