Since last Friday (04/01/2016) we have been using sonarqube in our company. Somehow, one of our problems with the project was closed (in fact, it was not fixed). And now the project does not return any problems. we even deleted the project in sonarqube and resumed analysis, this also does not cause problems.
We tried a lot of different things to get the problems back (even making mistakes as intended, but this also doesn't cause any problems in sonarqube)
We are launching the latest version of sonarqube (version 5.4), and we are starting our analysis with TFS 2015 (using the steps to start and complete sonar assembly)
Any idea why sonarqube is not redoing any problems in this project? while other projects are working fine?
update:
This happened after we included code coverage for this assembly. But disabling code coverage does not return problems (even after deleting the sonarqua project)
update 2:
start a magazine
2016-04-01T13:52:46.3608006Z Executing the powershell script: D:\TFS\Agents\tasks\SonarQubePreBuild\1.0.34\SonarQubePreBuild.ps1 2016-04-01T13:52:48.8767055Z ##[debug] 2016-04-01T13:52:49.1486023Z SonarQube Scanner for MSBuild 1.1 2016-04-01T13:52:49.2491975Z Default properties file was not found at D:\TFS\Agents\tasks\SonarQubePreBuild\1.0.34\MSBuild.SonarQube.Runner-1.1\SonarQube.Analysis.xml 2016-04-01T13:52:49.2491975Z Pre-processing started. 2016-04-01T13:52:49.2501934Z Preparing working directories... 2016-04-01T13:52:49.2501934Z Checking for updates... 2016-04-01T13:52:49.4643435Z SonarQube Scanner for MSBuild Begin Step 2.0 2016-04-01T13:52:49.4653311Z 15:52:49.298 Default properties file was not found at D:\TFS\Agents\_work\2\.sonarqube\bin\SonarQube.Analysis.xml 2016-04-01T13:52:49.4812668Z 15:52:49.318 Updating build integration targets... 2016-04-01T13:52:49.5728988Z 15:52:49.34 Fetching analysis configuration settings... 2016-04-01T13:52:50.6017668Z 15:52:50.48 Generating rulesets... 2016-04-01T13:52:52.4025329Z 15:52:52.298 Provisioning analyzer assemblies... 2016-04-01T13:52:52.4025329Z 15:52:52.3 Installing required Roslyn analyzers... 2016-04-01T13:52:52.4035284Z Pre-processing succeeded.
end of magazine
2016-04-01T13:53:07.9072565Z Executing the powershell script: D:\TFS\Agents\tasks\SonarQubePostTest\1.0.36\SonarQubePostTest.ps1 2016-04-01T13:53:13.0399547Z SonarQube Scanner for MSBuild 1.1 2016-04-01T13:53:13.0439418Z Default properties file was not found at D:\TFS\Agents\tasks\SonarQubePreBuild\1.0.34\MSBuild.SonarQube.Runner-1.1\SonarQube.Analysis.xml 2016-04-01T13:53:13.0439418Z Post-processing started. 2016-04-01T13:53:13.2623017Z SonarQube Scanner for MSBuild End Step 2.0 2016-04-01T13:53:13.2632986Z 15:53:13.185 Fetching code coverage report information from TFS... 2016-04-01T13:53:13.2632986Z 15:53:13.188 Attempting to locate a test results (.trx) file... 2016-04-01T13:53:13.2632986Z 15:53:13.188 Located a test results file: D:\TFS\Agents\_work\2\TestResults\********_DENHELDER 2016-04-01 15_53_04.trx 2016-04-01T13:53:13.3739732Z WARNING: File is not under the project directory and cannot currently be analysed by SonarQube. File: C:\Users\********\AppData\Local\Temp\.NETFramework,Version=v4.5.AssemblyAttributes.cs, project: D:\TFS\Agents\_work\2\s\UrlNameSetter\Dev\******.Tools.UrlNameSetter\******.Tools.UrlNameSetterTests\******.Tools.UrlNameSetterTests.csproj 2016-04-01T13:53:13.3799577Z WARNING: File is not under the project directory and cannot currently be analysed by SonarQube. File: C:\Users\********\AppData\Local\Temp\.NETFramework,Version=v4.5.AssemblyAttributes.cs, project: D:\TFS\Agents\_work\2\s\UrlNameSetter\Dev\******.Tools.UrlNameSetter\******.Tools.UrlNameSetter\******.Tools.UrlNameSetter.csproj 2016-04-01T13:53:13.3849424Z SONAR_RUNNER_OPTS is not configured. Setting it to the default value of -Xmx1024m 2016-04-01T13:53:13.3899308Z Calling the SonarQube Scanner... 2016-04-01T13:53:13.6152663ZD:\TFS\Agents\_work\2\.sonarqube\bin\sonar-runner\bin\.. 2016-04-01T13:53:13.8206640Z SonarQube Runner 2.4 2016-04-01T13:53:13.8206640Z Java 1.8.0_77 Oracle Corporation (64-bit) 2016-04-01T13:53:13.8206640Z Windows Server 2012 R2 6.3 amd64 2016-04-01T13:53:13.8216606Z SONAR_RUNNER_OPTS=-Xmx1024m 2016-04-01T13:53:13.8216606Z INFO: Error stacktraces are turned on. 2016-04-01T13:53:13.8216606Z INFO: Runner configuration file: D:\TFS\Agents\_work\2\.sonarqube\bin\sonar-runner\bin\..\conf\sonar-runner.properties 2016-04-01T13:53:13.8226578Z INFO: Project configuration file: D:\TFS\Agents\_work\2\.sonarqube\out\sonar-project.properties 2016-04-01T13:53:13.9243592Z INFO: Default locale: "en_US", source code encoding: "UTF-8" 2016-04-01T13:53:13.9243592Z INFO: Work directory: D:\TFS\Agents\_work\2\.sonarqube\out\.sonar 2016-04-01T13:53:14.0270583Z INFO: SonarQube Server 5.4 2016-04-01T13:53:15.4718195Z 15:53:15.217 INFO - Load global repositories 2016-04-01T13:53:16.8497760Z 15:53:16.772 INFO - Load global repositories (done) | time=1551ms 2016-04-01T13:53:16.9504838Z 15:53:16.848 INFO - User cache: C:\Users\********\.sonar\cache 2016-04-01T13:53:17.5657725Z 15:53:17.407 INFO - Load plugins index 2016-04-01T13:53:17.5666818Z 15:53:17.419 INFO - Load plugins index (done) | time=12ms 2016-04-01T13:53:19.8280384Z 15:53:19.693 INFO - Process project properties 2016-04-01T13:53:19.9287435Z 15:53:19.829 INFO - Load project repositories 2016-04-01T13:53:20.4322672Z 15:53:20.341 INFO - Load project repositories (done) | time=512ms 2016-04-01T13:53:20.5489246Z 15:53:20.379 INFO - Apply project exclusions 2016-04-01T13:53:20.5489246Z 15:53:20.447 INFO - Load quality profiles 2016-04-01T13:53:20.7553157Z 15:53:20.614 INFO - Load quality profiles (done) | time=167ms 2016-04-01T13:53:20.7563196Z 15:53:20.620 INFO - Load active rules 2016-04-01T13:53:22.6338067Z 15:53:22.584 INFO - Load active rules (done) | time=1964ms 2016-04-01T13:53:22.6348044Z 15:53:22.597 WARN - SCM provider autodetection failed. No SCM provider claims to support this project. Please use sonar.scm.provider to define SCM of your project. 2016-04-01T13:53:22.6348044Z 15:53:22.597 INFO - Publish mode 2016-04-01T13:53:22.6348044Z 15:53:22.606 INFO -
update 3:
Background magazine
update 4:
It seems that this is a problem with the C # profiler, now we have added some asp.net mvc projects and got a lot of problems based on javascript and css profiler, however there are 0 C # problems (which is very difficult)
update 5:
looking at the TFS im build logs that see that somewhere problems with sonarqube are reconstructed for C #, but they donβt fall into the example of the sonarquist itself:
UrlNameSetter\Dev\******.Tools.UrlNameSetter\******.Tools.UrlNameSetter\UrlNameHelper.cs(31,13): Warning S1067: Reduce the number of conditional operators (4) used in the expression (maximum allowed 3). 2>UrlNameHelper.cs(31,13): warning S1067: Reduce the number of conditional operators (4) used in the expression (maximum allowed 3). [D:\TFS\Agents\Agent-47\_work\4\s\UrlNameSetter\Dev\******.Tools.UrlNameSetter\******.Tools.UrlNameSetter\******.Tools.UrlNameSetter.csproj]
update 6:
I found the roslyn json log file (ends at the end of the process), which also contains problems that the sonarquid should see
Pastebin to ******. Tools.UrlNameSetter.dll.RoslynCA.json
update 7:
i jsut completely reinstalled sonarqube, but this did not affect. therefore, they begin to think that the problem is due to the fact that the sonarquist runner is built in with tfs 2015
update 8:
Now I am confident that this is not a sonarquist installation, I launched the sonarquay running on my computer, and this posed problems in the sonarquad ... The search continues