Check for wildcard imports #3870
Answered
by
oowekyala
JanMeier1337
asked this question in
Q&A
-
Hello, we would like to disallow wildcard imports like:
Is that possible? |
Beta Was this translation helpful? Give feedback.
Answered by
oowekyala
Mar 24, 2022
Replies: 1 comment
-
Assuming you want to analyse Java files, you can write an XPath rule with the following XPath expression (this is XPath 2.0): //ImportDeclaration[@ImportOnDemand=true()] |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
adangel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Assuming you want to analyse Java files, you can write an XPath rule with the following XPath expression (this is XPath 2.0):