Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) - Sonar qube latest LTS version 8.9.10 Community edition, Sonar Scanner version - 4.7
- what are you trying to achieve - Get the code smell on unit test java classes
- what have you tried so far to achieve this - Tweaked the sonar-project.properties file
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!
Below is the sonar-project.properties file
sonar.sourceEncoding=UTF-8
#sonar.java.source=3.4
sonar.sources=src/main
sonar.tests=src/test
sonar.coverage.exclusions=src//domain//*,src//Application.java,src//configurations/**
sonar.test.exclusions=
sonar.projectBaseDir=.
sonar.projectName=ccx-tools-api
sonar.projectKey=ccx-tools-api
sonar.java.binaries=target/classes
sonar.java.source=1.8
I just wanted to get code smells reported on unit test java classes.