Hello,
I created custom XPath 1.0 rule via Track breaches of an XPath rule for analyze XML files. All required for analyze XML files contains in src/main/resource folder, whereas java code in src/main/java. When I run code analyze without sonar.sources
parameter, SonarQube doesn’t go into src/main/resource folder (I figured it out because I redirected terminal output into file). If I add -Dsonar.sources=src/main/.
to analyze command, then all files are parsed and analyzed correctly, but now not all java files are analyzed(figured it out again with terminal output redirection to file).
Details:
- SonarQube version 8.9.1.44547
- OS = Debian
- SonarQube runes in Docker
- Java version 1.8
- Docker version 20.10.7
May be it’s my fault, thanks for help.