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:
Ed .d
2023-03-08 16:13:29 +03:00
committed by Sam Brannen
parent 9b50c0d590
commit 268e3fec99
2 changed files with 14 additions and 0 deletions

View File

@@ -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>