Any way to use line/column numbers in matchxpath? #16075
Answered
by
romani
Machine-Maker
asked this question in
Q&A
-
|
I'd like to have an xpath query that checks if 2 tokens are on the same line |
Beta Was this translation helpful? Give feedback.
Answered by
romani
Dec 28, 2024
Replies: 1 comment 8 replies
-
|
We do not them in model, at time we implemented it we thought it is too advanced and might never be required. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can try to use https://checkstyle.org/checks/annotation/annotationonsameline.html
And suppress by xpath or any other filter all violations expect for names you need.
You need to use negative look forward in regexp (Negative Lookahead)