<Import Project="<some-folder>/sonar-scanner-msbuild-2/Targets/SonarQube.Integration.ImportBefore.targets" />
msbuild /t:Rebuild /p:CscToolExe=csc.exe /p:CscToolPath=/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/msbuild/15.0/bin/Roslyn/
BB-MBP:SomeProject bb$ mono ~/Downloads/sonar-scanner-msbuild-2/SonarQube.Scanner.MSBuild.exe end
SonarQube Scanner for MSBuild 2.2
Default properties file was found at /Users/bb/Downloads/sonar-scanner-msbuild-2/SonarQube.Analysis.xml
Loading analysis properties from /Users/bb/Downloads/sonar-scanner-msbuild-2/SonarQube.Analysis.xml
Post-processing started.
SonarQube Scanner for MSBuild 2.2
WARNING: File is not under the project directory and cannot currently be analysed by SonarQube. File: /var/folders/pb/rf1yd2qs1cd2srkcrrffhmr0000101/T/.NETPortable,Version=v4.5,Profile=Profile111.AssemblyAttributes.cs, project: /Users/bb/Desktop/SomeProject/SomeProject/SomeProject.csproj
SONAR_SCANNER_OPTS is not configured. Setting it to the default value of -Xmx1024m
Calling the SonarQube Scanner...
Execution failed. The specified executable does not exist: /Users/bb/Downloads/sonar-scanner-msbuild-2/sonar-scanner-2.8\bin\sonar-scanner.bat
The SonarQube Scanner did not complete successfully
05:55:53.303 Creating a summary markdown file...
05:55:53.306 Post-processing failed. Exit code: 1
--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/2eb7451f-473e-4636-a65d-65158240b30b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/CAEZqhZpbFpjcR0qscOf5t6g9xtwY4AUkqOzbdDbWrW82Dv7d_A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Amaury Levé | SonarSource
Software Developer - .Net Team
SonarQube Scanner for MSBuild 3.1
Default properties file was found at /Users/bb/Downloads/sonar-scanner-msbuild-3/SonarQube.Analysis.xml
Loading analysis properties from /Users/bb/Downloads/sonar-scanner-msbuild-3/SonarQube.Analysis.xml
Post-processing started.
SONAR_SCANNER_OPTS is not configured. Setting it to the default value of -Xmx1024m
Calling the SonarQube Scanner...
INFO:
INFO: usage: sonar-scanner [options]
INFO:
INFO: Options:
INFO: -D,--define <arg> Define property
INFO: -h,--help Display help information
INFO: -v,--version Display version information
INFO: -X,--debug Produce execution debug output
ERROR: Unrecognized option: ^^^^^^-^^^D^^^p^^^r^^^o^^^j^^^e^^^c^^^t^^^.^^^s^^^e^^^t^^^t^^^i^^^n^^^g^^^s^^^=^^^/^^^U^^^s^^^e^^^r^^^s^^^/^^^b^^^b^^^/^^^D^^^e^^^s^^^k^^^t^^^o^^^p^^^/^^^S^^^o^^^n^^^a^^^r^^^Q^^^u^^^b^^^e^^^T^^^e^^^s^^^t^^^/^^^.^^^s^^^o^^^n^^^a^^^r^^^q^^^u^^^b^^^e^^^/^^^o^^^u^^^t^^^/^^^s^^^o^^^n^^^a^^^r^^^-^^^p^^^r^^^o^^^j^^^e^^^c^^^t^^^.^^^p^^^r^^^o^^^p^^^e^^^r^^^t^^^i^^^e^^^s^^^
The SonarQube Scanner did not complete successfully
14:47:39.241 Creating a summary markdown file...
14:47:39.247 Post-processing failed. Exit code: 1
ERROR: Error during SonarQube Scanner execution
org.sonar.api.utils.command.CommandException: java.io.IOException: Cannot run program "/Users/obivan/Development/Source/Dev/ConsoleProject/ConsoleProject/.sonarqube/out/.sonar/SonarLint.Runner/SonarLint.Runner.exe": error=13, Permission denied
at org.sonar.api.utils.command.CommandExecutor.execute(CommandExecutor.java:108)
at org.sonar.plugins.csharp.CSharpSensor.analyze(CSharpSensor.java:147)
at org.sonar.plugins.csharp.CSharpSensor.analyse(CSharpSensor.java:108)
at org.sonar.batch.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:58)
at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:50)
at org.sonar.batch.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:83)
at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:192)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:241)
at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:236)
at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:234)
at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:226)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
at org.sonar.batch.task.ScanTask.execute(ScanTask.java:47)
at org.sonar.batch.task.TaskContainer.doAfterStart(TaskContainer.java:86)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
at org.sonar.batch.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:106)
at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:119)
at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
at com.sun.proxy.$Proxy0.execute(Unknown Source)
at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:233)
at org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151)
at org.sonarsource.scanner.cli.Main.runAnalysis(Main.java:123)
at org.sonarsource.scanner.cli.Main.execute(Main.java:77)
at org.sonarsource.scanner.cli.Main.main(Main.java:61)
Caused by: java.io.IOException: Cannot run program "/Users/obivan/Development/Source/Dev/ConsoleProject/ConsoleProject/.sonarqube/out/.sonar/SonarLint.Runner/SonarLint.Runner.exe": error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at org.sonar.api.utils.command.CommandExecutor.execute(CommandExecutor.java:74)
... 32 more
Caused by: java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 33 more
ERROR:
ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
The SonarQube Scanner did not complete successfully
10:52:44.451 Creating a summary markdown file...
10:52:44.457 Post-processing failed. Exit code: 1
--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/529bdbc9-c72a-4ee5-b893-2a1304e1d179%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/5092b6a7-6cc4-4d9a-880b-d4eee93bef43%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/5092b6a7-6cc4-4d9a-880b-d4eee93bef43%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/CA%2Bwcyj9u9pMXbxuXr2M%2Btk4MCr-Z9SoEQdkD-_%3D932ybtJPU9Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/5092b6a7-6cc4-4d9a-880b-d4eee93bef43%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/CA%2Bwcyj9u9pMXbxuXr2M%2Btk4MCr-Z9SoEQdkD-_%3D932ybtJPU9Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "SonarQube" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonarqube/wLaU3ijlqDk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/baa46456-eeaf-46ae-bc85-512bfe1a1620%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/CAEZqhZrtbQAR%3D0UoAmyTgUjkB9L-XfqTnmXvJcP2tAP1kxutQA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/9a40739e-3af2-4636-96c9-e839255102bb%40googlegroups.com.
Hi Benjamin,
That's good news. We are not looking for anything in particular. We have tested quite a lot of cases but it is hard to think of all use cases people can came up with so we wanted to be sure we are covering most (all?) of them.
FYI if you are using the scanner with the RC of SonarC# you'll be able to see that we merge issues from the different targets (if you use them). Regarding the metrics, for now we simply take the first one we found (not ideal but this is a first step).
Cheers,
Amaury
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/CAEZqhZpyNOR6t-ZLn1qzwovW16072x8rRecKybXv9P8xEVZk7A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.