Issue #17691 : Website Generation doesn't automatically reflect new c…#18217
Conversation
c7d0139 to
82b2eea
Compare
82b2eea to
6f2c1b4
Compare
Can be done will explore this option as well |
3375c5e to
4e6b9ea
Compare
|
github, generate site |
Done |
|
@stoyanK7 , please help to review this PR |
stoyanK7
left a comment
There was a problem hiding this comment.
Looks good overall 👍 , three minor things (apart from the indentation that is already commented on)
| if (isHolder && "SuppressWarningsHolder".equals(simpleName)) { | ||
| packageName = ANNOTATION_PACKAGE; | ||
| } | ||
| else if (isHolder && "SuppressXpathWarningsHolder".equals(simpleName)) { | ||
| packageName = ANNOTATION_PACKAGE; | ||
| } |
There was a problem hiding this comment.
This could be simplified to
| if (isHolder && "SuppressWarningsHolder".equals(simpleName)) { | |
| packageName = ANNOTATION_PACKAGE; | |
| } | |
| else if (isHolder && "SuppressXpathWarningsHolder".equals(simpleName)) { | |
| packageName = ANNOTATION_PACKAGE; | |
| } | |
| if (isHolder) { | |
| packageName = ANNOTATION_PACKAGE; | |
| } |
There was a problem hiding this comment.
Can't resolve thread but it's done.
bfa9d8f to
ac8fed0
Compare
|
GitHub, generate website |
7caae3b to
1027983
Compare
|
@stoyanK7, please do comment and approval as you finish. @smita1078 , please reply "done" to all addressed items. Let's not keep rooms for misunderstanding in this PR. |
|
github, generate site |
|
Did one final pass and everything looks good. Nice work, @smita1078 ! Approved 👍 |
dd40d2c to
9ba4e93
Compare
|
github, generate site |
| <!-- no since in module by design --> | ||
| <suppress id="sinceMacroMustExist" | ||
| files="src[\\/]site[\\/]xdoc[\\/]checks\.xml\.template"/> | ||
| files="src[\\/]site[\\/]xdoc[\\/]checks([\\/][a-z]+)?[\\/]index\.xml\.template|src[\\/]site[\\/]xdoc[\\/]checks\.xml\.template|src[\\/]site[\\/]xdoc[\\/]checks[\\/][a-z]+\.xml"/> |
There was a problem hiding this comment.
Instead of complicated to read single suppression tag, let's have few tags with simple content for "files" attribute.
It will be a way easier to maintain it, and it can have special excuse comment to explain reason of suppression.
Apply to all others.
|
@stoyanK7, for future you can approve in GitHub UI, it will keep gray check mark, very clear signal that you approved PR. Approval by comment might be not easy to find in long PR. |
5178361 to
3334b81
Compare
…ect new changes to index.xml for checks
3334b81 to
8249db4
Compare
|
github, generate site |
|
All done 👍 |
|
Everyone is welcome to review PRs, the more reviews the better, and even approve. Maintainers are who take responsibility to do final check that all is good and merge. |
romani
left a comment
There was a problem hiding this comment.
Crazy complicated update.
Impressive work.
This huge leap forward., I hope future contributors appreciate simplicity to write new Check
Fixes #17691
This PR introduces a new macro
generate-checks-indexesto automatically generate category-specific index pages for Checkstyle checks. This macro works similarly to the existingallCheckSummariesmacro but generates per-category index tables.Problem
Previously, category index pages (e.g.,
src/site/xdoc/checks/javadoc/index.xml) had to be manually maintained. When check descriptions changed in Javadoc, these index files would become outdated, requiring manual updates to keep them in sync.Solution
Implemented a Maven Doxia macro that:
@sincetagged descriptionsindentation→misc)SuppressWarningsHolder→annotation)