Skip to content

Rule dependent on another rule #7269

Answered by TomasVotruba
simivar asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, by nature of abstract syntax tree, this is not possible. If you traverse class, the class Rector will get exectued before method Rector.
The rules have to be idempotent, not depending on each other.

Design your rules to handle the least common node at once.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by simivar
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants