SonarQube does not analyze files after upgrading from 4.2 to 4.3

After upgrading sonarqube 4.2 to 4.3, I get this message:

13: 15: 18.349 WARN - The file '% s' is ignored. It is not in a module based on '% s'. [repeated for (assuming) all my C # files]

13: 15: 18.349 INFO - indexed files 0

We start the sonar from msbuild and pass (among other things) the command line argument: -D sonar.sources = "../../Source/"

What is correctly allowed, the full path can be seen in the log

output displays

C: \ Projects \ MyProject \ build \ Tools \ SonarRunner.2.3 \ Bin ..

SonarQube Runner 2.3

Java 1.7.0_51 Oracle Corporation (64-bit)

Windows 8 6.2 amd64

INFO: Runner configuration file: C: \ Projects \ Project \ assembly \ Tools \ SonarRunner.2.3 \ Bin .. \ conf \ sonar-runner.properties

INFO: project configuration file: NONE

INFO: default locale: "en_GB", source encoding: "UTF-8"

INFO: Working Directory: C: \ projects \ project \ Build \ Scripts.sonar

INFO: SonarQube 4.3 Server

13: 13: 43.706 INFO - Download batch parameters

13: 13: 43.924 INFO - User cache: C: \ Users \ username.sonar \ cache

13: 15: 16.155 INFO - quality setting is not performed.

13: 15: 16.356 INFO - Base directory: C: \ projects \ project \ Build \ Scripts

13: 15: 16.356 INFO - Working directory: C: \ projects \ project \ Build \ Scripts.sonar

13: 15: 16.356 INFO - Source dirs: C: \ projects \ project \ Source

13: 15: 16.356 INFO - Source encoding: UTF-8, default language: en_GB

13: 15: 16.356 INFO - Index files

13: 15: 16.358 INFO - Excluded tests:

13: 15: 16.358 INFO - /. Integration Tests / /.*

13: 15: 16.358 INFO - /. UnitTests / /.*

13: 15: 17.287 WARN - The file '% s' is ignored. It is not in module r '% s'.

Any suggestions on how to solve this?

+6
source share
1 answer

This may help (update: url is no longer available: Alternative )

"The base module catalog can be specified for special cases. By default, the base catalog of the module is guessed from the module identifier (as in the examples above). But it can be redefined using the sonar.projectBaseDir property.

+10
source

Source: https://habr.com/ru/post/969373/


All Articles