Configure Checkstyle to require package-info.java files
This commit updates the project's checkstyle configuration to require the existence of a package-info.java file for all packages within the src/main directory while excluding the framework-docs module and certain packages inside the spring-core module. A missing package-info.java file will result in emitting a warning. See gh-30069
This commit is contained in:
@@ -240,4 +240,9 @@
|
||||
<module name="io.spring.javaformat.checkstyle.check.SpringJavadocCheck"/>
|
||||
<module name="io.spring.javaformat.checkstyle.check.SpringJUnit5Check"/>
|
||||
</module>
|
||||
|
||||
<!--package-info checker -->
|
||||
<module name="JavadocPackage">
|
||||
<property name="severity" value="warning"/>
|
||||
</module>
|
||||
</module>
|
||||
|
||||
Reference in New Issue
Block a user