Replies: 1 comment 4 replies
-
Please share a code sample with a case that should match and some others that should not. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to create a rule that every class having a word Tests in its name must have annotations @Epic ?
Is it possible to do it with Xpath ?
I tried to use count - but it did not work, probably Im using it in a wrong way.
//CLASS_DEF[./IDENT[ends-with(@text, 'Tests')]]/MODIFIERS/count(ANNOTATION/IDENT[@text='Epic'])=1
Beta Was this translation helpful? Give feedback.
All reactions