Issue #19827: Remove chapter numbers from Doc Comments Coverage Page#19828
Conversation
|
GitHub, generate website |
| } | ||
|
|
||
| private static void removeCommonUndocumentedModules(Set<String> styleChecks) { | ||
| // these modules aren't documented, but are added to the config |
| 1.1.1.1 Separate Specification Documents | ||
| Java Platform API Specification is defined | ||
| by the documentation comments in the source code |
There was a problem hiding this comment.
this isn't required. It is just a bullet point.
Similarly following are also not required:
There was a problem hiding this comment.
It was me , I asked to make all bold items to be links.
| 2.1 Format of a Doc Comment | ||
| Format of a Doc Comment |
There was a problem hiding this comment.
Making a some simple table of content will be awesome
There was a problem hiding this comment.
@gianmarcoschifone I think you misunderstood what I meant here. You made the sub-section bold + italic in the cached page but I meant to do it in the Coverage Table.
| 2.1.1 Notes | ||
| Notes |
| 2.1.2 getImage | ||
| getImage |
There was a problem hiding this comment.
Remove this, it is an example not a rule/section:
Here is what the previous example would look like after running the Javadoc tool
| 2.5.4.1 @author | ||
| @author |
There was a problem hiding this comment.
remove @author, @version, @param, @return, and all the other tags.
If we're not able to follow some tag then we will explicitly mention it in the coverage table with blue/red tick.
There was a problem hiding this comment.
I asked to make them as link. As it looks like paragraph, and have wording on what is good .
Fact that we can not make any such words a rule, is our decision
There was a problem hiding this comment.
As in Google style we slice and dice all text, and do not hesitate to mark section as "no rules".
It will be very clear for all that we read it attentively, and still think there is no rules.
There was a problem hiding this comment.
They were just tags, we don't have different checks for tags, mostly all of these tags will be using same check.
It'll make the table longer.
The google style guide on the other hand is very well documented and have numberings too. So skipping some rules/sections doesn't make sense, we should include all of them. But that is not the case with this documentation.
Anyways, let's keep this for now. If we're able to follow rules for all tags then I think we should remove it, otherwise we can keep it to inform user that a particular tag rule is not able to be followed by us.
There was a problem hiding this comment.
They were just tags, we don't have different checks for tags, mostly all of these tags will be using same check.
We do not know for sure, and you might noticed recent trend in Google style coverage that we create Google special Checks for very special requests. If general Check is not able to cover special request, we do special Check.
It'll make the table longer.
I am completely ok to rethink on this at the end of summer.
done: https://github.com/orgs/checkstyle/projects/19?pane=issue&itemId=190014508
|
@Zopsss , how can we make guide page to look good in mobile browser? |
485efb5 to
0eb9c0b
Compare
|
GitHub, generate website |
|
Changed TOC style and added javadoc to the private method |
|
reasoning why we have links to all blocks of text in style guide: |
|
Okay, let's keep the bullet points. And I've already replied regarding the tags documentation part. |
Sorry I'm not able to understand, are you asking to improve the UI and Table design? this will include improving CSS, might also require JS too. Or just formatting of it? This will include only improving wording and HTML of the table. |
|
@Zopsss , I a little not sure on review status from you. Are you ok to merge or some items should be done? |
This can be fixed via CSS. We can tackle this in different issue. @gianmarcoschifone please open an issue regarding this. |
Last change is required: #19828 (comment) |
|
@gianmarcoschifone , please do this last point. |
0eb9c0b to
8c24aed
Compare
|
GitHub, generate website |
Zopsss
left a comment
There was a problem hiding this comment.
LGTM. It's a very good start for our project!! @gianmarcoschifone



Issue #19827
doc_comments_style.xml.doc_commentsfromtestAllStyleRules, since that validation depends on numbered rule names and anchors.testDocCommentsStyleRulesto validate doc-comments style coverage without relying on numbering.