maven - How to configure a sonar-project.properties file for code coverage? -


current scanner running through , scanning parent , skipping rest of nested files. if run sonarlint (using cli , specifying test , source files) , tries analyze 37k files instead of few need. have been able skip ~3k files adding <sonar.skip>true</sonar.skip> property pom file. however, still can't configure project run across sub-folders , print out kind of code coverage test. (is jacoco needed latest version(6.3,0)? or can code-coverage handled through configuration?).

if sonar seems analyzing many files, because had not set sonar.sources=src/main/java in sonar-project.properties file, defaults basedir , includes everything. sonarqube can't code-coverage itself, reports on coverage-reports tool jacoco. funny don't clarify these things in https://docs.sonarqube.org/display/scan/analyzing+with+sonarqube+scanner --but enough digging, can find info on site.


Comments

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -