detected at #17329 (comment)
We did not make macro for since of Check
that results in copy-paste of version at
|
<p>Since Checkstyle 6.0</p> |
this is annoying mostly during PR to create new Check, as this always requies updates, and not easy to spot that template is not updated.
TODO:
we need just another macro for xdoc, to take this value from file.
in stead of
<section xmlns="http://maven.apache.org/XDOC/2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="AnnotationLocation">
<p>Since Checkstyle 6.0</p>
<subsection name="Description" id="AnnotationLocation_Description">
we can have:
<section xmlns="http://maven.apache.org/XDOC/2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="AnnotationLocation">
<macro name="since">
<param name="modulePath"
value="src/main/java/com/puppycrawl/tools/checkstyle/checks/annotation/AnnotationLocationCheck.java"/>
</macro>
<subsection name="Description" id="AnnotationLocation_Description">
Example of macro creation is at #18217 , but there are macros in project as examples.
detected at #17329 (comment)
We did not make macro for
sinceof Checkthat results in copy-paste of version at
checkstyle/src/site/xdoc/checks/annotation/annotationlocation.xml.template
Line 11 in 578d206
this is annoying mostly during PR to create new Check, as this always requies updates, and not easy to spot that template is not updated.
TODO:
we need just another macro for xdoc, to take this value from file.
in stead of
we can have:
Example of macro creation is at #18217 , but there are macros in project as examples.