Skip to content

Commit dc5c570

Browse files
committed
Enforce stricter javadoc @SInCE rules
See gh-17360
1 parent 9433ad2 commit dc5c570

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

spring-boot-parent/src/checkstyle/checkstyle-suppressions.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@
2828
<suppress files="Rating\.java" checks="JavadocVariable" />
2929
<suppress files="Direction\.java" checks="JavadocVariable" />
3030
<suppress files="JooqExamples\.java" checks="AvoidStaticImport"/>
31+
<suppress files="[\\/]spring-boot-docs[\\/]" checks="SpringJavadoc" message="\@since" />
3132
</suppressions>

spring-boot-parent/src/checkstyle/checkstyle.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,9 @@
77
<property name="illegalPkgs" value="sun, org.apache.commons.(?!codec|dbcp|dbcp2|logging|pool|pool2).*, com.google.common.(?!cache).*, org.flywaydb.core.internal"/>
88
<property name="regexp" value="true"/>
99
</module>
10+
<module name="io.spring.javaformat.checkstyle.check.SpringJavadocCheck">
11+
<property name="publicOnlySinceTags" value="true" />
12+
<property name="requireSinceTag" value="true" />
13+
</module>
1014
</module>
1115
</module>

0 commit comments

Comments
 (0)