-
I'm working on this issue in which I've understood the check well along with examples to be provided. In the following documentation on JavDocMethod on which examples needs to be added (https://checkstyle.org/config_javadoc.html#JavadocMethod), the second line in the description says Violates parameters and type parameters for which no param tags are present can be suppressed by defining property Apart from adding examples to the example section, I found that it'd be much better if there could be a simple example that can be put inside the Description block to explain the 2nd and 3rd lines of the documentation. I tried adding some basic example as you can see below: After running I'm aware of the fact that there JavaDoc should match with .XML configuration (Here, JavadocMethod.xml). I'm not able to find out what is the change that needs to be done in JavadocMethod.xml:
JavaDoc in JavadocMethod.java
Changes I've done: (in JavadocMethod.java):
Please help me to know what are the next steps that I should be focusing upon in order to resolve this error? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
We do not add examples in description. |
Beta Was this translation helpful? Give feedback.
-
Would it be a good way if we can shift the line 2 and 3 in the examples section? |
Beta Was this translation helpful? Give feedback.
We do not add examples in description.
Description will be used as metadata content field. It will be used by numerous tool and services to render this content. This content should be simple.