Skip to content

Conversation

Hariom-kr
Copy link
Contributor

#10086

  • Created @PreserveOrder annotation to mark properties that should not be auto-sorted
  • Applied @PreserveOrder to AtclauseOrderCheck.tagOrder field
  • Updated XdocsPagesTest
  • Updated Javadoc

@Hariom-kr
Copy link
Contributor Author

Github, generate website

Copy link
Contributor

@romani
Copy link
Member

romani commented Oct 12, 2025

Xdoc files should be changed, to reflect actual order of tags. Generated website on this PR should have new order of tags

@Hariom-kr
Copy link
Contributor Author

Hariom-kr commented Oct 12, 2025

Hi @romani , mvn clean verify, is regenerating the meta XML file (src/main/resources/.../AtclauseOrderCheck.xml) back to the old alphabetical order. Should I update the meta generator?

@romani
Copy link
Member

romani commented Oct 12, 2025

Yes , whole reason of issue is to make html page to show actual value.
We need a bit more changes, we are close to final fix, but need few more steps

@Hariom-kr
Copy link
Contributor Author

Okay thanks, I am pushing the changes.

@romani
Copy link
Member

romani commented Oct 14, 2025

GitHub, generate website

@Hariom-kr
Copy link
Contributor Author

The build is success, updating it

@Hariom-kr
Copy link
Contributor Author

Github, generate website

@Hariom-kr
Copy link
Contributor Author

Hariom-kr commented Oct 14, 2025

Hi @romani , my local build passed with mvn clean verify, but CI is failing can u guide me on this?

@romani
Copy link
Member

romani commented Oct 15, 2025

@Hariom-kr
Copy link
Contributor Author

Thanks for clarification , I understood How to fix this

@Hariom-kr Hariom-kr marked this pull request as draft October 15, 2025 19:51
Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please re-consider all your updates in import order.

</subpackage>

<subpackage name="internal">
<allow class="com.puppycrawl.tools.checkstyle.internal.annotation.PreserveOrder"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this required?
looks like we allow impot from same package


<subpackage name="internal">
<subpackage name="annotation">
<allow pkg="java.lang.annotation"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"java.lang.*" supposed to be completely allowed, as it is jdk classes and always available.
please recheck if this is allow actually required, if yes, lest allow all sub packages of java.lang.

* Default order of atclauses.
*/
@PreserveOrder
private static final String[] DEFAULT_ORDER = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this might not be required as you put it on private List<String> tagOrder

@Hariom-kr
Copy link
Contributor Author

Thank you for the review! Apologies, I'm still learning.. Fixing it now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants