Skip to content

Commit

Permalink
[feature] update-checkstyle limit the java file header (#1799)
Browse files Browse the repository at this point in the history
Co-authored-by: tomsun28 <tomsun28@outlook.com>
  • Loading branch information
YxYL6125 and tomsun28 committed Apr 20, 2024
1 parent 12e45a7 commit 38fb151
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion script/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
<property name="offset" value="0"/>
</module>
<module name="AtclauseOrder">
<property name="tagOrder" value="@param, @return, @throws, @deprecated, @author"/>
<property name="tagOrder" value="@param, @return, @throws, @deprecated"/>
<property name="target"
value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"/>
</module>
Expand Down Expand Up @@ -276,5 +276,11 @@
<property name="checkFormat" value="$1"/>
<property name="influenceFormat" value="1"/>
</module>
<module name="RegexpSinglelineJava">
<property name="format"
value="^.*(@author|@date).*" />
<property name="message"
value="Java file header cannot contain @author or @date" />
</module>
</module>
</module>

0 comments on commit 38fb151

Please sign in to comment.