Skip to content

Instantly share code, notes, and snippets.

@romani
Created March 21, 2024 16:00
Show Gist options
  • Save romani/4307acd749004f6169da7e0c03d59338 to your computer and use it in GitHub Desktop.
Save romani/4307acd749004f6169da7e0c03d59338 to your computer and use it in GitHub Desktop.
Discord discussion
</module>
<!-- https://github.com/checkstyle/checkstyle/blob/master/src/xdocs-examples/resources/com/puppycrawl/tools/checkstyle/checks/annotation/annotationlocation/Example3.java -->
<module id="config3" name="AnnotationLocation">
<property name="allowSamelineMultipleAnnotations" value="false"/>
<property name="allowSamelineSingleParameterlessAnnotation"
value="false"/>
<property name="allowSamelineParameterizedAnnotation" value="true"/>
</module>
<!-- https://github.com/checkstyle/checkstyle/blob/master/src/xdocs-examples/resources/com/puppycrawl/tools/checkstyle/checks/annotation/annotationlocation/Example4.java -->
<module id="config4" name="AnnotationLocation">
<property name="tokens" value="METHOD_DEF"/>
<property name="allowSamelineMultipleAnnotations" value="false"/>
<property name="allowSamelineSingleParameterlessAnnotation"
value="true"/>
<property name="allowSamelineParameterizedAnnotation" value="false"/>
</module>
<!-- no more examples, but why to limit us ??? -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment