Skip to content

Commit 8576275

Browse files
author
SAIVARDHAN15
committed
style: enable TypeName in checkstyle.xml
1 parent 44ce6e7 commit 8576275

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

checkstyle.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,10 @@
117117
<!-- TODO <module name="ParameterName"/> -->
118118
<module name="StaticVariableName"/>
119119
<!-- TODO <module name="TypeName"/> -->
120-
120+
<module name="TypeName">
121+
<property name="format" value="^[A-Z][a-zA-Z0-9]*$"/>
122+
<property name="severity" value="warning"/>
123+
</module>
121124
<!-- Checks for imports -->
122125
<!-- See https://checkstyle.org/checks/imports/index.html -->
123126
<module name="AvoidStarImport"/>

exampleClass.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
public class exampleClass {
2+
public static void main(String[] args) {
3+
System.out.println("Hello, Checkstyle!");
4+
}
5+
}

0 commit comments

Comments
 (0)