Skip to content

Fix ASTString prettyprint over Hierarchical Ruleset with more than one rule and condition#334

Merged
javihern98 merged 19 commits intomainfrom
cr-333
Nov 12, 2025
Merged

Fix ASTString prettyprint over Hierarchical Ruleset with more than one rule and condition#334
javihern98 merged 19 commits intomainfrom
cr-333

Conversation

@mla2001
Copy link
Contributor

@mla2001 mla2001 commented Nov 10, 2025

Closes #333

Changelog

  • Fixed ASTTempalte HRuleset couldn't handle node.element as a list (HRuleset with conditions)
  • Fixed that ASTString HRuleset and Check_Hierarchy could not handle the conditions in HRuleset.
  • Fixed missing ';' separator between HRules when pretty print was active.
  • Fixed some indentation issues with pretty print active.
  • Added related test.

@mla2001 mla2001 requested a review from javihern98 November 10, 2025 11:19
@mla2001 mla2001 self-assigned this Nov 10, 2025
@mla2001 mla2001 changed the title Cr 333 Fix ASTString prettyprint HRuleset Nov 10, 2025
@javihern98 javihern98 changed the title Fix ASTString prettyprint HRuleset Fix ASTString prettyprint over Hierarchical Ruleset Nov 11, 2025
@javihern98 javihern98 changed the title Fix ASTString prettyprint over Hierarchical Ruleset Fix ASTString prettyprint over Hierarchical Ruleset with more than one rule and condition Nov 11, 2025
@javihern98
Copy link
Contributor

We are checking now as well the DP Rulesets to ensure this issue is not replicated there

@mla2001
Copy link
Contributor Author

mla2001 commented Nov 11, 2025

We are checking now as well the DP Rulesets to ensure this issue is not replicated there

Looking at the signature of the DPRulsetets, this error does not occur with them.

@javihern98
Copy link
Contributor

Missing specific tests for this in the AST String (and the DP Rulesets one) @mla2001

@mla2001
Copy link
Contributor Author

mla2001 commented Nov 11, 2025

Missing specific tests for this in the AST String (and the DP Rulesets one) @mla2001

Done

Copy link
Contributor

@javihern98 javihern98 left a comment

Choose a reason for hiding this comment

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

Looks good, thanks! 😊

@javihern98 javihern98 merged commit c3861c6 into main Nov 12, 2025
20 checks passed
@javihern98 javihern98 deleted the cr-333 branch November 12, 2025 12:40
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.

Fix ASTString to prettyprint Hierarchical Ruleset with more than one rule and condition

2 participants