-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include more class in documentation #22011
Conversation
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense. I added some comments.
Another solution is to check if source.getSuperType()
is one of those types from https://github.com/quarkusio/quarkus/blob/main/.github/quarkusbuilditemdoc.java#L107
Can you squash all your commits into a single one? That would be necessary before merging. Thanks! |
Yes let me see how I squash commits |
4930060
to
02a3a12
Compare
I think it worked @gastaldi |
Can you please squash the commits? Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we know if it will slow down the build significantly? Because AFAICS, we are now reading all the files and that could be very time consuming?
Until we have a better knowledge of this, I would like us to not merge it.
That's a good point, perhaps it's easier to hardcode the missing items here instead (the ones that do not end with |
In parallel, I think we should also consider renaming classes that do not follow this pattern (eg. |
@gastaldi yeah I think you're on the right track. I would special case the few that make sense and we want to keep and fix the others. I don't have time to drive this so I'll let you see with the OP :) |
@delongmeng do you have a list of the extra build items covered by this change? |
Dismissing approval, since reading every file contents will impact negatively in the build
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just realized that this is not going to work because inner classes also contain extends XXXBuildItem {
and they are not used (or supposed to be used) in the process method
…f the build items and check if that's included in the files moved keywordList to outside of the for loop, commented out original version, refactored variable name file to path, passed fileContent to process and Roaster.parse Update .github/quarkusbuilditemdoc.java Co-authored-by: George Gastaldi <gegastaldi@gmail.com> Update .github/quarkusbuilditemdoc.java Co-authored-by: George Gastaldi <gegastaldi@gmail.com> remove the comment for the old version moved KEYWORDS to class attribute and added back { remove unnecessary package (Arrays) removed duplicated package (List)
78e645d
to
8c1905f
Compare
I saw three additional files: Capabilities, CapabilityAggregationStep, and ProcessInheritIODisabled, when I limited the directories to /core/deployment and /core/test-extension. Saw the conversations above. Yes if this doesn't affect a large scope of files it might be easier to just follow the naming convention. |
I don't think |
Got it. I can definitely hardcode that :) |
@delongmeng can you have another look at that? Thanks! |
Closing this one as we will need a simpler patch. If you still want to work on this, let's do it in a new PR. |
Simply checking if the java file contains strings like "extends BuildItem {", "extends SimpleBuildItem {", etc.
This extends the build items to include build items not ending with "BuildItem", such as "Capabilities.java", "CapabilityAggregationStep.java", and "ProcessInheritIODisabled.java".
Fixes: #17770