Quantcast

Sonar FxCop and assemblyDependencyDirectories

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Sonar FxCop and assemblyDependencyDirectories

Ludovic.Godrant
Hello,

I have some problem to specify additionnal dependency directory to FxCop using sonar-runner.
I've tried to set as additionnal parameter when calling sonar-runner but i had some problem with path contianing spaces.
So I tried to create a sonar-property file. I set it at the root of the solution.

Here is its content :

# Configuration spécifique pour FxCop
sonar.fxcop.assemblyDependencyDirectories="C:/Program Files (x86)/Microsoft.NET/SDK/CompactFramework/v3.5/WindowsCE/**", "C:/Program Files (x86)/Windows Mobile 5.0 SDK R2/Managed Libraries/**", "C:/Program Files (x86)/Microsoft SQL Server Compact Edition/v3.5/Devices/**"

Then when I launch sonar-runner I still get an error from FxCop as if directories are not specified by sonar.

Is there a mean to see the call of FxCop by sonar to check whether additional path are specified ? Maybe I've done something wrong (syntax etc ...)

The call of sonar runner :
C:\DotNet\sonar-runner-1.3\bin\sonar-runner
-D
sources=.\trunk\PriscaND.Mobile\
-D
sonar.projectName=CPAR - ANDRA - Prisca ND-Mobile
-D
sonar.projectKey=dotNetProject:CPAR - ANDRA - Prisca ND-Mobile
-D
sonar.profile=Sonar C# 3.5 Hardis
-D
sonar.projectVersion=1.0.0.0
-D
sonar.language=cs
-D
sonar.jdbc.driverClassName=com.mysql.jdbc.Driver
-D
sonar.jdbc.url=jdbc:mysql://srvmysql:3306/sonar?useUnicode=true
-D
sonar.jdbc.username=sonar
-D
sonar.jdbc.password=******
-D
sonar.host.url=https://pid.hardis.fr/sonar
-Dsonar.fxcop.installDirectory=""C:\DotNet\Microsoft_FxCop_1.36""


Execution LOG :
C:\DotNet\sonar-runner-1.3
12-sept.-2012 10:54:43 Runner configuration file: C:\DotNet\sonar-runner-1.3\conf\sonar-runner.properties
12-sept.-2012 10:54:43 Project configuration file: C:\bamboo\bamboo-home\xml-data\build-dir\ANDRAF-ANDRAF-INTERGRATIONMOBILE\sonar-project.properties => this is my property file
12-sept.-2012 10:54:43 Runner version: 1.3
12-sept.-2012 10:54:43 Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
12-sept.-2012 10:54:43 OS name: "Windows Server 2008 R2", version: "6.1", arch: "amd64"
12-sept.-2012 10:54:43 Server: https://pid.hardis.fr/sonar
12-sept.-2012 10:54:43 Work directory: C:\bamboo\bamboo-home\xml-data\build-dir\ANDRAF-ANDRAF-INTERGRATIONMOBILE\.sonar
12-sept.-2012 10:54:47 10:54:47.290 INFO  Create JDBC datasource
12-sept.-2012 10:54:48 10:54:48.790 INFO  Initializing Hibernate
12-sept.-2012 10:54:58 10:54:58.962 INFO  No '.sln' file found or specified: trying to find one...
12-sept.-2012 10:54:58 10:54:58.978 INFO  The following 'sln' file has been found and will be used: C:\bamboo\bamboo-home\xml-data\build-dir\ANDRAF-ANDRAF-INTERGRATIONMOBILE\Andra.PriscaND.MobileApplication.sln
12-sept.-2012 10:55:05 10:55:05.853 INFO  -------------  Analyzing Andra.PriscaND.MobileApplication
12-sept.-2012 10:55:06 10:55:06.166 INFO  License for sqale plugin, registed to Hardis (License), expires on Sat Apr 20 00:00:00 CEST 2013
12-sept.-2012 10:55:06 10:55:06.759 INFO  Selected quality profile : [name=Sonar C# 3.5 Hardis,language=cs]
12-sept.-2012 10:55:06 10:55:06.791 INFO  Configure maven plugins...
12-sept.-2012 10:55:06 10:55:06.884 INFO  Compare to previous analysis (2012-08-13)
12-sept.-2012 10:55:06 10:55:06.916 INFO  Compare over 5 days (2012-09-07, analysis of 2012-08-13 09:59:50.0)
12-sept.-2012 10:55:06 10:55:06.947 INFO  Compare over 30 days (2012-08-13, analysis of 2012-08-13 09:59:50.0)
12-sept.-2012 10:55:08 10:55:08.963 INFO  Initializer CSharpProjectInitializer...
12-sept.-2012 10:55:08 10:55:08.978 INFO  Initializer CSharpProjectInitializer done: 0 ms
12-sept.-2012 10:55:08 10:55:08.978 INFO  Initializer ProjectFileSystemLogger...
12-sept.-2012 10:55:08 10:55:08.978 INFO  Excluded sources: [**/Reference.cs, **/*.designer.cs, **/*.Designer.cs, **/*.g.cs]
12-sept.-2012 10:55:08 10:55:08.978 INFO  Source directories:
12-sept.-2012 10:55:08 10:55:08.978 INFO    C:\bamboo\bamboo-home\xml-data\build-dir\ANDRAF-ANDRAF-INTERGRATIONMOBILE\Source\Andra.PriscaND.MobileApplication
12-sept.-2012 10:55:08 10:55:08.978 INFO  Initializer ProjectFileSystemLogger done: 0 ms
12-sept.-2012 10:55:08 10:55:08.978 INFO  Gallio won't execute as there are no test projects.
12-sept.-2012 10:55:09 10:55:09.072 INFO  Sensor org.sonar.plugins.csharp.core.CSharpSourceImporter@11331ce6...
12-sept.-2012 10:55:11 10:55:11.088 INFO  Sensor org.sonar.plugins.csharp.core.CSharpSourceImporter@11331ce6 done: 2016 ms
12-sept.-2012 10:55:11 10:55:11.088 INFO  Sensor com.sonar.plugins.csharp.squid.C@3f874627...
12-sept.-2012 10:55:14 10:55:14.322 INFO  Sensor com.sonar.plugins.csharp.squid.C@3f874627 done: 3234 ms
12-sept.-2012 10:55:14 10:55:14.322 INFO  Sensor org.sonar.plugins.csharp.gallio.CoverageReportSensor@371eaf4e...
12-sept.-2012 10:55:14 10:55:14.322 INFO  It Coverage report analysis won't execute as Gallio was not executed.
12-sept.-2012 10:55:14 10:55:14.322 INFO  Sensor org.sonar.plugins.csharp.gallio.CoverageReportSensor@371eaf4e done: 0 ms
12-sept.-2012 10:55:14 10:55:14.322 INFO  Sensor CpdSensor...
12-sept.-2012 10:55:14 10:55:14.322 INFO  PmdEngine is used
12-sept.-2012 10:55:15 10:55:15.275 INFO  Sensor CpdSensor done: 953 ms
12-sept.-2012 10:55:15 10:55:15.275 INFO  Sensor org.sonar.plugins.csharp.ndeps.NDepsSensor@32ae48dc...
12-sept.-2012 10:55:15 10:55:15.275 INFO  NDeps executable not found: 'C:\DependencyParser.exe'. The embedded version (1.1) will be used instead.
12-sept.-2012 10:55:15 10:55:15.275 INFO  Extracting NDeps binaries in C:\bamboo\bamboo-home\xml-data\build-dir\ANDRAF-ANDRAF-INTERGRATIONMOBILE\.sonar
12-sept.-2012 10:55:15 10:55:15.588 INFO  Parsing Andra.PriscaND.MobileApplication.exe
12-sept.-2012 10:55:15 10:55:15.744 INFO  Skip mscorlib... maybe in the GAC?
12-sept.-2012 10:55:15 10:55:15.760 INFO  Skip System.Windows.Forms... maybe in the GAC?
12-sept.-2012 10:55:15 10:55:15.760 INFO  The existing file BeeMobile.RoundTextBox.CF35 doesn't match the fullName BeeMobile.RoundTextBox.CF35, skip it
12-sept.-2012 10:55:15 10:55:15.760 INFO  Skip System.Web.Services... maybe in the GAC?
12-sept.-2012 10:55:15 10:55:15.760 INFO  Skip System.Xml... maybe in the GAC?
12-sept.-2012 10:55:15 10:55:15.760 INFO  Skip System... maybe in the GAC?
12-sept.-2012 10:55:15 10:55:15.760 INFO  The existing file System.Data.SqlServerCe doesn't match the fullName System.Data.SqlServerCe, skip it
12-sept.-2012 10:55:15 10:55:15.760 INFO  The existing file Andra.PriscaND.MobileApplication.Data doesn't match the fullName Andra.PriscaND.MobileApplication.Data, skip it
12-sept.-2012 10:55:15 10:55:15.760 INFO  The existing file BeeMobile.TransparentControls.CF3 doesn't match the fullName BeeMobile.TransparentControls.CF3, skip it
12-sept.-2012 10:55:15 10:55:15.760 INFO  The existing file BeeMobile.TouchList.CF3 doesn't match the fullName BeeMobile.TouchList.CF3, skip it
12-sept.-2012 10:55:15 10:55:15.760 INFO  The existing file BeeMobile.RoundComboBox.CF35 doesn't match the fullName BeeMobile.RoundComboBox.CF35, skip it
12-sept.-2012 10:55:15 10:55:15.760 INFO  The existing file BeeMobile.MonthCalendar.CF35 doesn't match the fullName BeeMobile.MonthCalendar.CF35, skip it
12-sept.-2012 10:55:15 10:55:15.760 INFO  Skip System.Data... maybe in the GAC?
12-sept.-2012 10:55:15 10:55:15.760 INFO  The existing file PsionTeklogixNet doesn't match the fullName PsionTeklogixNet, skip it
12-sept.-2012 10:55:15 10:55:15.760 INFO  Skip System.Core... maybe in the GAC?
12-sept.-2012 10:55:15 10:55:15.760 INFO  Skip System.Data.DataSetExtensions... maybe in the GAC?
12-sept.-2012 10:55:15 10:55:15.760 INFO  Skip System.Drawing... maybe in the GAC?
12-sept.-2012 10:55:16 10:55:16.354 INFO  Sensor org.sonar.plugins.csharp.ndeps.NDepsSensor@32ae48dc done: 1079 ms
12-sept.-2012 10:55:16 10:55:16.354 INFO  Sensor org.sonar.plugins.csharp.gendarme.GendarmeSensor@50317d82...
12-sept.-2012 10:55:16 10:55:16.354 WARN  /!\ SKIP Gendarme analysis: no rule defined for Gendarme in the "Sonar C# 3.5 Hardis" profil.
12-sept.-2012 10:55:16 10:55:16.354 INFO  Sensor org.sonar.plugins.csharp.gendarme.GendarmeSensor@50317d82 done: 0 ms
12-sept.-2012 10:55:16 10:55:16.354 INFO  Sensor org.sonar.plugins.csharp.stylecop.StyleCopSensor@61270aef...
12-sept.-2012 10:55:16 10:55:16.588 INFO  Microsoft (R) Build Engine, Version 4.0.30319.1
12-sept.-2012 10:55:16 10:55:16.588 INFO  [Microsoft .NET Framework, Version 4.0.30319.269]
12-sept.-2012 10:55:16 10:55:16.588 INFO  Copyright (C) Microsoft Corporation�2007. Tous droits r�serv�s.
12-sept.-2012 10:55:16 10:55:16.588 INFO 
12-sept.-2012 10:55:34 10:55:34.807 INFO  Sensor org.sonar.plugins.csharp.stylecop.StyleCopSensor@61270aef done: 18453 ms
12-sept.-2012 10:55:34 10:55:34.807 INFO  Sensor ProfileSensor...
12-sept.-2012 10:55:35 10:55:35.057 INFO  Sensor ProfileSensor done: 250 ms
12-sept.-2012 10:55:35 10:55:35.057 INFO  Sensor ProfileEventsSensor...
12-sept.-2012 10:55:35 10:55:35.089 INFO  Sensor ProfileEventsSensor done: 32 ms
12-sept.-2012 10:55:35 10:55:35.089 INFO  Sensor VersionEventsSensor...
12-sept.-2012 10:55:35 10:55:35.136 INFO  Sensor VersionEventsSensor done: 47 ms
12-sept.-2012 10:55:35 10:55:35.136 INFO  Sensor org.sonar.plugins.csharp.fxcop.FxCopSensor@52751a9b...
12-sept.-2012 10:55:35 10:55:35.401 INFO  Microsoft (R) FxCop Command-Line Tool, Version 1.36 (9.0.30729.1)
12-sept.-2012 10:55:35 10:55:35.401 INFO  Copyright (C) 2007 Microsoft Corporation.  All rights reserved.
12-sept.-2012 10:55:35 10:55:35.401 INFO 
12-sept.-2012 10:55:35 10:55:35.401 INFO  Loading C:\bamboo\bamboo-home\xml-data\build-dir\ANDRAF-ANDRAF-INTERGRATIONMOBILE\Source\Andra.PriscaND.MobileApplication\.sonar\sonar.FxCop...
12-sept.-2012 10:55:35 10:55:35.464 INFO  Loaded DesignRules.dll...
12-sept.-2012 10:55:35 10:55:35.464 INFO  Loaded GlobalizationRules.dll...
12-sept.-2012 10:55:35 10:55:35.495 INFO  Loaded NamingRules.dll...
12-sept.-2012 10:55:35 10:55:35.495 INFO  Loaded PerformanceRules.dll...
12-sept.-2012 10:55:35 10:55:35.526 INFO  Loaded UsageRules.dll...
12-sept.-2012 10:55:36 10:55:36.964 INFO  Loaded Andra.PriscaND.MobileApplication.exe...
12-sept.-2012 10:55:36 10:55:36.979 INFO  Initializing Introspection engine...
12-sept.-2012 10:55:37 10:55:37.182 INFO  Could not resolve reference to System.Windows.Forms.
12-sept.-2012 10:55:37 10:55:37.198 INFO  Analysis Complete.
12-sept.-2012 10:55:37 10:55:37.198 INFO 
12-sept.-2012 10:55:37 10:55:37.198 INFO  NOTE: One or more referenced assemblies could not be found. Use the '/directory' switch to specify additional assembly reference search paths.
12-sept.-2012 10:55:37 10:55:37.198 INFO 
12-sept.-2012 10:55:37 10:55:37.198 INFO  * Analysis was not performed; at least one valid rules assembly and one valid
12-sept.-2012 10:55:37 10:55:37.198 INFO  target file must be specified.
12-sept.-2012 10:55:37 10:55:37.198 INFO  * 2 total analysis engine exceptions.
12-sept.-2012 10:55:37 10:55:37.245 INFO  Writing report to C:\bamboo\bamboo-home\xml-data\build-dir\ANDRAF-ANDRAF-INTERGRATIONMOBILE\Source\Andra.PriscaND.MobileApplication\.sonar\fxcop-report.xml...
12-sept.-2012 10:55:37 10:55:37.245 INFO  Done.
12-sept.-2012 10:55:37 Total time: 54.752s
12-sept.-2012 10:55:37 Final Memory: 10M/170M
12-sept.-2012 10:55:37 Exception in thread "main" org.sonar.batch.bootstrapper.BootstrapException: org.sonar.api.utils.SonarException: FxCop execution failed.
12-sept.-2012 10:55:37         at org.sonar.runner.Runner.delegateExecution(Runner.java:189)
12-sept.-2012 10:55:37         at org.sonar.runner.Runner.execute(Runner.java:78)
12-sept.-2012 10:55:37         at org.sonar.runner.Main.main(Main.java:61)
12-sept.-2012 10:55:37 Caused by: org.sonar.api.utils.SonarException: FxCop execution failed.
12-sept.-2012 10:55:37         at org.sonar.plugins.csharp.fxcop.FxCopSensor.analyse(FxCopSensor.java:107)
12-sept.-2012 10:55:37         at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64)
12-sept.-2012 10:55:37         at org.sonar.batch.phases.Phases.execute(Phases.java:93)
12-sept.-2012 10:55:37         at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143)
12-sept.-2012 10:55:37         at org.sonar.batch.bootstrap.Module.start(Module.java:83)
12-sept.-2012 10:55:37         at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:111)
12-sept.-2012 10:55:37         at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:106)
12-sept.-2012 10:55:37         at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:101)
12-sept.-2012 10:55:37         at org.sonar.batch.bootstrap.Module.start(Module.java:83)
12-sept.-2012 10:55:37         at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:102)
12-sept.-2012 10:55:37         at org.sonar.batch.bootstrap.Module.start(Module.java:83)
12-sept.-2012 10:55:37         at org.sonar.batch.Batch.execute(Batch.java:100)
12-sept.-2012 10:55:37         at org.sonar.runner.Launcher.executeBatch(Launcher.java:70)
12-sept.-2012 10:55:38         at org.sonar.runner.Launcher.execute(Launcher.java:64)
12-sept.-2012 10:55:38         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12-sept.-2012 10:55:38         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
12-sept.-2012 10:55:38         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
12-sept.-2012 10:55:38         at java.lang.reflect.Method.invoke(Method.java:597)
12-sept.-2012 10:55:38         at org.sonar.runner.Runner.delegateExecution(Runner.java:186)
12-sept.-2012 10:55:38         ... 2 more
12-sept.-2012 10:55:38 Caused by: org.sonar.dotnet.tools.fxcop.FxCopException: FxCop execution failed with return code '513'. Check FxCop documentation for more information.
12-sept.-2012 10:55:38         at org.sonar.dotnet.tools.fxcop.FxCopRunner.execute(FxCopRunner.java:86)
12-sept.-2012 10:55:38         at org.sonar.plugins.csharp.fxcop.FxCopSensor.launchFxCop(FxCopSensor.java:146)
12-sept.-2012 10:55:38         at org.sonar.plugins.csharp.fxcop.FxCopSensor.analyse(FxCopSensor.java:105)
12-sept.-2012 10:55:38         ... 20 more


Ludovic GODRANT



34 Rue de la Tuilerie. 38170 Seyssinet-Pariset
Tél : (+33) 4 76 70 98 53
Mailto : [hidden email]
http://www.hardis.fr

Grenoble . Paris . Lyon . Nantes . Rennes . Lille
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Sonar FxCop and assemblyDependencyDirectories

Fabrice Bellingard-4
Hi Ludovic,

Yes, you can run the analysis in Debug mode to see which command gets actually run. To do so, you just have to add "-X" when launching the analysis.

BTW, when sending logs, please prefer sending them as an attached file instead of copy-pasting it into your mail body (having a separate file makes it easier for us to read the logs and find what we want). Thanks.


Best regards,

Fabrice BELLINGARD | SonarSource
http://sonarsource.com



On Wed, Sep 12, 2012 at 11:03 AM, <[hidden email]> wrote:
Hello,

I have some problem to specify additionnal dependency directory to FxCop using sonar-runner.
I've tried to set as additionnal parameter when calling sonar-runner but i had some problem with path contianing spaces.
So I tried to create a sonar-property file. I set it at the root of the solution.

Here is its content :

# Configuration spécifique pour FxCop
sonar.fxcop.assemblyDependencyDirectories="C:/Program Files (x86)/Microsoft.NET/SDK/CompactFramework/v3.5/WindowsCE/**", "C:/Program Files (x86)/Windows Mobile 5.0 SDK R2/Managed Libraries/**", "C:/Program Files (x86)/Microsoft SQL Server Compact Edition/v3.5/Devices/**"

Then when I launch sonar-runner I still get an error from FxCop as if directories are not specified by sonar.

Is there a mean to see the call of FxCop by sonar to check whether additional path are specified ? Maybe I've done something wrong (syntax etc ...)

The call of sonar runner :
C:\DotNet\sonar-runner-1.3\bin\sonar-runner
-D
sources=.\trunk\PriscaND.Mobile\
-D
sonar.projectName=CPAR - ANDRA - Prisca ND-Mobile
-D
sonar.projectKey=dotNetProject:CPAR - ANDRA - Prisca ND-Mobile
-D
sonar.profile=Sonar C# 3.5 Hardis
-D
sonar.projectVersion=1.0.0.0
-D
sonar.language=cs
-D
sonar.jdbc.driverClassName=com.mysql.jdbc.Driver
-D
sonar.jdbc.url=jdbc:mysql://srvmysql:3306/sonar?useUnicode=true
-D
sonar.jdbc.username=sonar
-D
sonar.jdbc.password=******
-D
sonar.host.url=https://pid.hardis.fr/sonar
-Dsonar.fxcop.installDirectory=""C:\DotNet\Microsoft_FxCop_1.36""


Execution LOG :
C:\DotNet\sonar-runner-1.3
12-sept.-2012 10:54:43 Runner configuration file: C:\DotNet\sonar-runner-1.3\conf\sonar-runner.properties
12-sept.-2012 10:54:43 Project configuration file: C:\bamboo\bamboo-home\xml-data\build-dir\ANDRAF-ANDRAF-INTERGRATIONMOBILE\sonar-project.properties => this is my property file
12-sept.-2012 10:54:43 Runner version: 1.3
12-sept.-2012 10:54:43 Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
12-sept.-2012 10:54:43 OS name: "Windows Server 2008 R2", version: "6.1", arch: "amd64"
12-sept.-2012 10:54:43 Server: https://pid.hardis.fr/sonar
12-sept.-2012 10:54:43 Work directory: C:\bamboo\bamboo-home\xml-data\build-dir\ANDRAF-ANDRAF-INTERGRATIONMOBILE\.sonar
12-sept.-2012 10:54:47 10:54:47.290 INFO  Create JDBC datasource
12-sept.-2012 10:54:48 10:54:48.790 INFO  Initializing Hibernate
12-sept.-2012 10:54:58 10:54:58.962 INFO  No '.sln' file found or specified: trying to find one...
12-sept.-2012 10:54:58 10:54:58.978 INFO  The following 'sln' file has been found and will be used: C:\bamboo\bamboo-home\xml-data\build-dir\ANDRAF-ANDRAF-INTERGRATIONMOBILE\Andra.PriscaND.MobileApplication.sln
12-sept.-2012 10:55:05 10:55:05.853 INFO  -------------  Analyzing Andra.PriscaND.MobileApplication
12-sept.-2012 10:55:06 10:55:06.166 INFO  License for sqale plugin, registed to Hardis (License), expires on Sat Apr 20 00:00:00 CEST 2013
12-sept.-2012 10:55:06 10:55:06.759 INFO  Selected quality profile : [name=Sonar C# 3.5 Hardis,language=cs]
12-sept.-2012 10:55:06 10:55:06.791 INFO  Configure maven plugins...
12-sept.-2012 10:55:06 10:55:06.884 INFO  Compare to previous analysis (2012-08-13)
12-sept.-2012 10:55:06 10:55:06.916 INFO  Compare over 5 days (2012-09-07, analysis of 2012-08-13 09:59:50.0)
12-sept.-2012 10:55:06 10:55:06.947 INFO  Compare over 30 days (2012-08-13, analysis of 2012-08-13 09:59:50.0)
12-sept.-2012 10:55:08 10:55:08.963 INFO  Initializer CSharpProjectInitializer...
12-sept.-2012 10:55:08 10:55:08.978 INFO  Initializer CSharpProjectInitializer done: 0 ms
12-sept.-2012 10:55:08 10:55:08.978 INFO  Initializer ProjectFileSystemLogger...
12-sept.-2012 10:55:08 10:55:08.978 INFO  Excluded sources: [**/Reference.cs, **/*.designer.cs, **/*.Designer.cs, **/*.g.cs]
12-sept.-2012 10:55:08 10:55:08.978 INFO  Source directories:
12-sept.-2012 10:55:08 10:55:08.978 INFO    C:\bamboo\bamboo-home\xml-data\build-dir\ANDRAF-ANDRAF-INTERGRATIONMOBILE\Source\Andra.PriscaND.MobileApplication
12-sept.-2012 10:55:08 10:55:08.978 INFO  Initializer ProjectFileSystemLogger done: 0 ms
12-sept.-2012 10:55:08 10:55:08.978 INFO  Gallio won't execute as there are no test projects.
12-sept.-2012 10:55:09 10:55:09.072 INFO  Sensor org.sonar.plugins.csharp.core.CSharpSourceImporter@11331ce6...
12-sept.-2012 10:55:11 10:55:11.088 INFO  Sensor org.sonar.plugins.csharp.core.CSharpSourceImporter@11331ce6 done: 2016 ms
12-sept.-2012 10:55:11 10:55:11.088 INFO  Sensor com.sonar.plugins.csharp.squid.C@3f874627...
12-sept.-2012 10:55:14 10:55:14.322 INFO  Sensor com.sonar.plugins.csharp.squid.C@3f874627 done: 3234 ms
12-sept.-2012 10:55:14 10:55:14.322 INFO  Sensor org.sonar.plugins.csharp.gallio.CoverageReportSensor@371eaf4e...
12-sept.-2012 10:55:14 10:55:14.322 INFO  It Coverage report analysis won't execute as Gallio was not executed.
12-sept.-2012 10:55:14 10:55:14.322 INFO  Sensor org.sonar.plugins.csharp.gallio.CoverageReportSensor@371eaf4e done: 0 ms
12-sept.-2012 10:55:14 10:55:14.322 INFO  Sensor CpdSensor...
12-sept.-2012 10:55:14 10:55:14.322 INFO  PmdEngine is used
12-sept.-2012 10:55:15 10:55:15.275 INFO  Sensor CpdSensor done: 953 ms
12-sept.-2012 10:55:15 10:55:15.275 INFO  Sensor org.sonar.plugins.csharp.ndeps.NDepsSensor@32ae48dc...
12-sept.-2012 10:55:15 10:55:15.275 INFO  NDeps executable not found: 'C:\DependencyParser.exe'. The embedded version (1.1) will be used instead.
12-sept.-2012 10:55:15 10:55:15.275 INFO  Extracting NDeps binaries in C:\bamboo\bamboo-home\xml-data\build-dir\ANDRAF-ANDRAF-INTERGRATIONMOBILE\.sonar
12-sept.-2012 10:55:15 10:55:15.588 INFO  Parsing Andra.PriscaND.MobileApplication.exe
12-sept.-2012 10:55:15 10:55:15.744 INFO  Skip mscorlib... maybe in the GAC?
12-sept.-2012 10:55:15 10:55:15.760 INFO  Skip System.Windows.Forms... maybe in the GAC?
12-sept.-2012 10:55:15 10:55:15.760 INFO  The existing file BeeMobile.RoundTextBox.CF35 doesn't match the fullName BeeMobile.RoundTextBox.CF35, skip it
12-sept.-2012 10:55:15 10:55:15.760 INFO  Skip System.Web.Services... maybe in the GAC?
12-sept.-2012 10:55:15 10:55:15.760 INFO  Skip System.Xml... maybe in the GAC?
12-sept.-2012 10:55:15 10:55:15.760 INFO  Skip System... maybe in the GAC?
12-sept.-2012 10:55:15 10:55:15.760 INFO  The existing file System.Data.SqlServerCe doesn't match the fullName System.Data.SqlServerCe, skip it
12-sept.-2012 10:55:15 10:55:15.760 INFO  The existing file Andra.PriscaND.MobileApplication.Data doesn't match the fullName Andra.PriscaND.MobileApplication.Data, skip it
12-sept.-2012 10:55:15 10:55:15.760 INFO  The existing file BeeMobile.TransparentControls.CF3 doesn't match the fullName BeeMobile.TransparentControls.CF3, skip it
12-sept.-2012 10:55:15 10:55:15.760 INFO  The existing file BeeMobile.TouchList.CF3 doesn't match the fullName BeeMobile.TouchList.CF3, skip it
12-sept.-2012 10:55:15 10:55:15.760 INFO  The existing file BeeMobile.RoundComboBox.CF35 doesn't match the fullName BeeMobile.RoundComboBox.CF35, skip it
12-sept.-2012 10:55:15 10:55:15.760 INFO  The existing file BeeMobile.MonthCalendar.CF35 doesn't match the fullName BeeMobile.MonthCalendar.CF35, skip it
12-sept.-2012 10:55:15 10:55:15.760 INFO  Skip System.Data... maybe in the GAC?
12-sept.-2012 10:55:15 10:55:15.760 INFO  The existing file PsionTeklogixNet doesn't match the fullName PsionTeklogixNet, skip it
12-sept.-2012 10:55:15 10:55:15.760 INFO  Skip System.Core... maybe in the GAC?
12-sept.-2012 10:55:15 10:55:15.760 INFO  Skip System.Data.DataSetExtensions... maybe in the GAC?
12-sept.-2012 10:55:15 10:55:15.760 INFO  Skip System.Drawing... maybe in the GAC?
12-sept.-2012 10:55:16 10:55:16.354 INFO  Sensor org.sonar.plugins.csharp.ndeps.NDepsSensor@32ae48dc done: 1079 ms
12-sept.-2012 10:55:16 10:55:16.354 INFO  Sensor org.sonar.plugins.csharp.gendarme.GendarmeSensor@50317d82...
12-sept.-2012 10:55:16 10:55:16.354 WARN  /!\ SKIP Gendarme analysis: no rule defined for Gendarme in the "Sonar C# 3.5 Hardis" profil.
12-sept.-2012 10:55:16 10:55:16.354 INFO  Sensor org.sonar.plugins.csharp.gendarme.GendarmeSensor@50317d82 done: 0 ms
12-sept.-2012 10:55:16 10:55:16.354 INFO  Sensor org.sonar.plugins.csharp.stylecop.StyleCopSensor@61270aef...
12-sept.-2012 10:55:16 10:55:16.588 INFO  Microsoft (R) Build Engine, Version 4.0.30319.1
12-sept.-2012 10:55:16 10:55:16.588 INFO  [Microsoft .NET Framework, Version 4.0.30319.269]
12-sept.-2012 10:55:16 10:55:16.588 INFO  Copyright (C) Microsoft Corporation�2007. Tous droits r�serv�s.
12-sept.-2012 10:55:16 10:55:16.588 INFO 
12-sept.-2012 10:55:34 10:55:34.807 INFO  Sensor org.sonar.plugins.csharp.stylecop.StyleCopSensor@61270aef done: 18453 ms
12-sept.-2012 10:55:34 10:55:34.807 INFO  Sensor ProfileSensor...
12-sept.-2012 10:55:35 10:55:35.057 INFO  Sensor ProfileSensor done: 250 ms
12-sept.-2012 10:55:35 10:55:35.057 INFO  Sensor ProfileEventsSensor...
12-sept.-2012 10:55:35 10:55:35.089 INFO  Sensor ProfileEventsSensor done: 32 ms
12-sept.-2012 10:55:35 10:55:35.089 INFO  Sensor VersionEventsSensor...
12-sept.-2012 10:55:35 10:55:35.136 INFO  Sensor VersionEventsSensor done: 47 ms
12-sept.-2012 10:55:35 10:55:35.136 INFO  Sensor org.sonar.plugins.csharp.fxcop.FxCopSensor@52751a9b...
12-sept.-2012 10:55:35 10:55:35.401 INFO  Microsoft (R) FxCop Command-Line Tool, Version 1.36 (9.0.30729.1)
12-sept.-2012 10:55:35 10:55:35.401 INFO  Copyright (C) 2007 Microsoft Corporation.  All rights reserved.
12-sept.-2012 10:55:35 10:55:35.401 INFO 
12-sept.-2012 10:55:35 10:55:35.401 INFO  Loading C:\bamboo\bamboo-home\xml-data\build-dir\ANDRAF-ANDRAF-INTERGRATIONMOBILE\Source\Andra.PriscaND.MobileApplication\.sonar\sonar.FxCop...
12-sept.-2012 10:55:35 10:55:35.464 INFO  Loaded DesignRules.dll...
12-sept.-2012 10:55:35 10:55:35.464 INFO  Loaded GlobalizationRules.dll...
12-sept.-2012 10:55:35 10:55:35.495 INFO  Loaded NamingRules.dll...
12-sept.-2012 10:55:35 10:55:35.495 INFO  Loaded PerformanceRules.dll...
12-sept.-2012 10:55:35 10:55:35.526 INFO  Loaded UsageRules.dll...
12-sept.-2012 10:55:36 10:55:36.964 INFO  Loaded Andra.PriscaND.MobileApplication.exe...
12-sept.-2012 10:55:36 10:55:36.979 INFO  Initializing Introspection engine...
12-sept.-2012 10:55:37 10:55:37.182 INFO  Could not resolve reference to System.Windows.Forms.
12-sept.-2012 10:55:37 10:55:37.198 INFO  Analysis Complete.
12-sept.-2012 10:55:37 10:55:37.198 INFO 
12-sept.-2012 10:55:37 10:55:37.198 INFO  NOTE: One or more referenced assemblies could not be found. Use the '/directory' switch to specify additional assembly reference search paths.
12-sept.-2012 10:55:37 10:55:37.198 INFO 
12-sept.-2012 10:55:37 10:55:37.198 INFO  * Analysis was not performed; at least one valid rules assembly and one valid
12-sept.-2012 10:55:37 10:55:37.198 INFO  target file must be specified.
12-sept.-2012 10:55:37 10:55:37.198 INFO  * 2 total analysis engine exceptions.
12-sept.-2012 10:55:37 10:55:37.245 INFO  Writing report to C:\bamboo\bamboo-home\xml-data\build-dir\ANDRAF-ANDRAF-INTERGRATIONMOBILE\Source\Andra.PriscaND.MobileApplication\.sonar\fxcop-report.xml...
12-sept.-2012 10:55:37 10:55:37.245 INFO  Done.
12-sept.-2012 10:55:37 Total time: 54.752s
12-sept.-2012 10:55:37 Final Memory: 10M/170M
12-sept.-2012 10:55:37 Exception in thread "main" org.sonar.batch.bootstrapper.BootstrapException: org.sonar.api.utils.SonarException: FxCop execution failed.
12-sept.-2012 10:55:37         at org.sonar.runner.Runner.delegateExecution(Runner.java:189)
12-sept.-2012 10:55:37         at org.sonar.runner.Runner.execute(Runner.java:78)
12-sept.-2012 10:55:37         at org.sonar.runner.Main.main(Main.java:61)
12-sept.-2012 10:55:37 Caused by: org.sonar.api.utils.SonarException: FxCop execution failed.
12-sept.-2012 10:55:37         at org.sonar.plugins.csharp.fxcop.FxCopSensor.analyse(FxCopSensor.java:107)
12-sept.-2012 10:55:37         at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64)
12-sept.-2012 10:55:37         at org.sonar.batch.phases.Phases.execute(Phases.java:93)
12-sept.-2012 10:55:37         at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143)
12-sept.-2012 10:55:37         at org.sonar.batch.bootstrap.Module.start(Module.java:83)
12-sept.-2012 10:55:37         at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:111)
12-sept.-2012 10:55:37         at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:106)
12-sept.-2012 10:55:37         at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:101)
12-sept.-2012 10:55:37         at org.sonar.batch.bootstrap.Module.start(Module.java:83)
12-sept.-2012 10:55:37         at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:102)
12-sept.-2012 10:55:37         at org.sonar.batch.bootstrap.Module.start(Module.java:83)
12-sept.-2012 10:55:37         at org.sonar.batch.Batch.execute(Batch.java:100)
12-sept.-2012 10:55:37         at org.sonar.runner.Launcher.executeBatch(Launcher.java:70)
12-sept.-2012 10:55:38         at org.sonar.runner.Launcher.execute(Launcher.java:64)
12-sept.-2012 10:55:38         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12-sept.-2012 10:55:38         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
12-sept.-2012 10:55:38         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
12-sept.-2012 10:55:38         at java.lang.reflect.Method.invoke(Method.java:597)
12-sept.-2012 10:55:38         at org.sonar.runner.Runner.delegateExecution(Runner.java:186)
12-sept.-2012 10:55:38         ... 2 more
12-sept.-2012 10:55:38 Caused by: org.sonar.dotnet.tools.fxcop.FxCopException: FxCop execution failed with return code '513'. Check FxCop documentation for more information.
12-sept.-2012 10:55:38         at org.sonar.dotnet.tools.fxcop.FxCopRunner.execute(FxCopRunner.java:86)
12-sept.-2012 10:55:38         at org.sonar.plugins.csharp.fxcop.FxCopSensor.launchFxCop(FxCopSensor.java:146)
12-sept.-2012 10:55:38         at org.sonar.plugins.csharp.fxcop.FxCopSensor.analyse(FxCopSensor.java:105)
12-sept.-2012 10:55:38         ... 20 more


Ludovic GODRANT



34 Rue de la Tuilerie. 38170 Seyssinet-Pariset
Tél : <a href="tel:%28%2B33%29%204%2076%2070%2098%2053" value="+33476709853" target="_blank">(+33) 4 76 70 98 53
Mailto : [hidden email]
http://www.hardis.fr

Grenoble . Paris . Lyon . Nantes . Rennes . Lille

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Sonar FxCop and assemblyDependencyDirectories

Ludovic.Godrant
Hello Fabrice,

Thank's for your help.
I was able to specify dependancy directory using properties file.
Note that no double quote should surround path even if they contain spaces.

Thank's again

Regards,

Ludovic GODRANT



34 Rue de la Tuilerie. 38170 Seyssinet-Pariset
Tél : (+33) 4 76 70 98 53
Mailto : [hidden email]
http://www.hardis.fr

Grenoble . Paris . Lyon . Nantes . Rennes . Lille



De :        Fabrice Bellingard <[hidden email]>
A :        [hidden email]
Date :        12/09/2012 11:26
Objet :        Re: [sonar-user] Sonar FxCop and assemblyDependencyDirectories




Hi Ludovic,

Yes, you can run the analysis in Debug mode to see which command gets actually run. To do so, you just have to add "-X" when launching the analysis.

BTW, when sending logs, please prefer sending them as an attached file instead of copy-pasting it into your mail body (having a separate file makes it easier for us to read the logs and find what we want). Thanks.


Best regards,
Fabrice BELLINGARD | SonarSource
http://sonarsource.com




On Wed, Sep 12, 2012 at 11:03 AM, <Ludovic.Godrant@...> wrote:
Hello,

I have some problem to specify additionnal dependency directory to FxCop using sonar-runner.
I've tried to set as additionnal parameter when calling sonar-runner but i had some problem with path contianing spaces.
So I tried to create a sonar-property file. I set it at the root of the solution.


Here is its content :


# Configuration spécifique pour FxCop

sonar.fxcop.assemblyDependencyDirectories="C:/Program Files (x86)/Microsoft.NET/SDK/CompactFramework/v3.5/WindowsCE/**", "C:/Program Files (x86)/Windows Mobile 5.0 SDK R2/Managed Libraries/**", "C:/Program Files (x86)/Microsoft SQL Server Compact Edition/v3.5/Devices/**"


Then when I launch sonar-runner I still get an error from FxCop as if directories are not specified by sonar.


Is there a mean to see the call of FxCop by sonar to check whether additional path are specified ? Maybe I've done something wrong (syntax etc ...)


The call of sonar runner :

C:\DotNet\sonar-runner-1.3\bin\sonar-runner
-D
sources=.\trunk\PriscaND.Mobile\
-D
sonar.projectName=CPAR - ANDRA - Prisca ND-Mobile
-D
sonar.projectKey=dotNetProject:CPAR - ANDRA - Prisca ND-Mobile
-D
sonar.profile=Sonar C# 3.5 Hardis
-D
sonar.projectVersion=1.0.0.0
-D
sonar.language=cs
-D
sonar.jdbc.driverClassName=com.mysql.jdbc.Driver
-D
sonar.jdbc.url=jdbc:mysql://srvmysql:3306/sonar?useUnicode=true
-D
sonar.jdbc.username=sonar
-D
sonar.jdbc.password=******
-D
sonar.host.url=
https://pid.hardis.fr/sonar
-Dsonar.fxcop.installDirectory=""C:\DotNet\Microsoft_FxCop_1.36""

Execution LOG :
C:\DotNet\sonar-runner-1.3
12-sept.-2012 10:54:43 Runner configuration file: C:\DotNet\sonar-runner-1.3\conf\sonar-runner.properties
12-sept.-2012 10:54:43 Project configuration file: C:\bamboo\bamboo-home\xml-data\build-dir\ANDRAF-ANDRAF-INTERGRATIONMOBILE\sonar-project.properties => this is my property file
12-sept.-2012 10:54:43 Runner version: 1.3
12-sept.-2012 10:54:43 Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
12-sept.-2012 10:54:43 OS name: "Windows Server 2008 R2", version: "6.1", arch: "amd64"
12-sept.-2012 10:54:43 Server: https://pid.hardis.fr/sonar
12-sept.-2012 10:54:43 Work directory: C:\bamboo\bamboo-home\xml-data\build-dir\ANDRAF-ANDRAF-INTERGRATIONMOBILE\.sonar
12-sept.-2012 10:54:47 10:54:47.290 INFO  Create JDBC datasource
12-sept.-2012 10:54:48 10:54:48.790 INFO  Initializing Hibernate
12-sept.-2012 10:54:58 10:54:58.962 INFO  No '.sln' file found or specified: trying to find one...
12-sept.-2012 10:54:58 10:54:58.978 INFO  The following 'sln' file has been found and will be used: C:\bamboo\bamboo-home\xml-data\build-dir\ANDRAF-ANDRAF-INTERGRATIONMOBILE\Andra.PriscaND.MobileApplication.sln
12-sept.-2012 10:55:05 10:55:05.853 INFO  -------------  Analyzing Andra.PriscaND.MobileApplication
12-sept.-2012 10:55:06 10:55:06.166 INFO  License for sqale plugin, registed to Hardis (License), expires on Sat Apr 20 00:00:00 CEST 2013
12-sept.-2012 10:55:06 10:55:06.759 INFO  Selected quality profile : [name=Sonar C# 3.5 Hardis,language=cs]
12-sept.-2012 10:55:06 10:55:06.791 INFO  Configure maven plugins...
12-sept.-2012 10:55:06 10:55:06.884 INFO  Compare to previous analysis (2012-08-13)
12-sept.-2012 10:55:06 10:55:06.916 INFO  Compare over 5 days (2012-09-07, analysis of 2012-08-13 09:59:50.0)
12-sept.-2012 10:55:06 10:55:06.947 INFO  Compare over 30 days (2012-08-13, analysis of 2012-08-13 09:59:50.0)
12-sept.-2012 10:55:08 10:55:08.963 INFO  Initializer CSharpProjectInitializer...
12-sept.-2012 10:55:08 10:55:08.978 INFO  Initializer CSharpProjectInitializer done: 0 ms
12-sept.-2012 10:55:08 10:55:08.978 INFO  Initializer ProjectFileSystemLogger...
12-sept.-2012 10:55:08 10:55:08.978 INFO  Excluded sources: [**/Reference.cs, **/*.designer.cs, **/*.Designer.cs, **/*.g.cs]
12-sept.-2012 10:55:08 10:55:08.978 INFO  Source directories:
12-sept.-2012 10:55:08 10:55:08.978 INFO    C:\bamboo\bamboo-home\xml-data\build-dir\ANDRAF-ANDRAF-INTERGRATIONMOBILE\Source\Andra.PriscaND.MobileApplication
12-sept.-2012 10:55:08 10:55:08.978 INFO  Initializer ProjectFileSystemLogger done: 0 ms
12-sept.-2012 10:55:08 10:55:08.978 INFO  Gallio won't execute as there are no test projects.
12-sept.-2012 10:55:09 10:55:09.072 INFO  Sensor org.sonar.plugins.csharp.core.CSharpSourceImporter@11331ce6...
12-sept.-2012 10:55:11 10:55:11.088 INFO  Sensor org.sonar.plugins.csharp.core.CSharpSourceImporter@11331ce6 done: 2016 ms
12-sept.-2012 10:55:11 10:55:11.088 INFO  Sensor com.sonar.plugins.csharp.squid.C@3f874627...
12-sept.-2012 10:55:14 10:55:14.322 INFO  Sensor com.sonar.plugins.csharp.squid.C@3f874627 done: 3234 ms
12-sept.-2012 10:55:14 10:55:14.322 INFO  Sensor org.sonar.plugins.csharp.gallio.CoverageReportSensor@371eaf4e...
12-sept.-2012 10:55:14 10:55:14.322 INFO  It Coverage report analysis won't execute as Gallio was not executed.
12-sept.-2012 10:55:14 10:55:14.322 INFO  Sensor org.sonar.plugins.csharp.gallio.CoverageReportSensor@371eaf4e done: 0 ms
12-sept.-2012 10:55:14 10:55:14.322 INFO  Sensor CpdSensor...
12-sept.-2012 10:55:14 10:55:14.322 INFO  PmdEngine is used
12-sept.-2012 10:55:15 10:55:15.275 INFO  Sensor CpdSensor done: 953 ms
12-sept.-2012 10:55:15 10:55:15.275 INFO  Sensor org.sonar.plugins.csharp.ndeps.NDepsSensor@32ae48dc...
12-sept.-2012 10:55:15 10:55:15.275 INFO  NDeps executable not found: 'C:\DependencyParser.exe'. The embedded version (1.1) will be used instead.
12-sept.-2012 10:55:15 10:55:15.275 INFO  Extracting NDeps binaries in C:\bamboo\bamboo-home\xml-data\build-dir\ANDRAF-ANDRAF-INTERGRATIONMOBILE\.sonar
12-sept.-2012 10:55:15 10:55:15.588 INFO  Parsing Andra.PriscaND.MobileApplication.exe
12-sept.-2012 10:55:15 10:55:15.744 INFO  Skip mscorlib... maybe in the GAC?
12-sept.-2012 10:55:15 10:55:15.760 INFO  Skip System.Windows.Forms... maybe in the GAC?
12-sept.-2012 10:55:15 10:55:15.760 INFO  The existing file BeeMobile.RoundTextBox.CF35 doesn't match the fullName BeeMobile.RoundTextBox.CF35, skip it
12-sept.-2012 10:55:15 10:55:15.760 INFO  Skip System.Web.Services... maybe in the GAC?
12-sept.-2012 10:55:15 10:55:15.760 INFO  Skip System.Xml... maybe in the GAC?
12-sept.-2012 10:55:15 10:55:15.760 INFO  Skip System... maybe in the GAC?
12-sept.-2012 10:55:15 10:55:15.760 INFO  The existing file System.Data.SqlServerCe doesn't match the fullName System.Data.SqlServerCe, skip it
12-sept.-2012 10:55:15 10:55:15.760 INFO  The existing file Andra.PriscaND.MobileApplication.Data doesn't match the fullName Andra.PriscaND.MobileApplication.Data, skip it
12-sept.-2012 10:55:15 10:55:15.760 INFO  The existing file BeeMobile.TransparentControls.CF3 doesn't match the fullName BeeMobile.TransparentControls.CF3, skip it
12-sept.-2012 10:55:15 10:55:15.760 INFO  The existing file BeeMobile.TouchList.CF3 doesn't match the fullName BeeMobile.TouchList.CF3, skip it
12-sept.-2012 10:55:15 10:55:15.760 INFO  The existing file BeeMobile.RoundComboBox.CF35 doesn't match the fullName BeeMobile.RoundComboBox.CF35, skip it
12-sept.-2012 10:55:15 10:55:15.760 INFO  The existing file BeeMobile.MonthCalendar.CF35 doesn't match the fullName BeeMobile.MonthCalendar.CF35, skip it
12-sept.-2012 10:55:15 10:55:15.760 INFO  Skip System.Data... maybe in the GAC?
12-sept.-2012 10:55:15 10:55:15.760 INFO  The existing file PsionTeklogixNet doesn't match the fullName PsionTeklogixNet, skip it
12-sept.-2012 10:55:15 10:55:15.760 INFO  Skip System.Core... maybe in the GAC?
12-sept.-2012 10:55:15 10:55:15.760 INFO  Skip System.Data.DataSetExtensions... maybe in the GAC?
12-sept.-2012 10:55:15 10:55:15.760 INFO  Skip System.Drawing... maybe in the GAC?
12-sept.-2012 10:55:16 10:55:16.354 INFO  Sensor org.sonar.plugins.csharp.ndeps.NDepsSensor@32ae48dc done: 1079 ms
12-sept.-2012 10:55:16 10:55:16.354 INFO  Sensor org.sonar.plugins.csharp.gendarme.GendarmeSensor@50317d82...
12-sept.-2012 10:55:16 10:55:16.354 WARN  /!\ SKIP Gendarme analysis: no rule defined for Gendarme in the "Sonar C# 3.5 Hardis" profil.
12-sept.-2012 10:55:16 10:55:16.354 INFO  Sensor org.sonar.plugins.csharp.gendarme.GendarmeSensor@50317d82 done: 0 ms
12-sept.-2012 10:55:16 10:55:16.354 INFO  Sensor org.sonar.plugins.csharp.stylecop.StyleCopSensor@61270aef...
12-sept.-2012 10:55:16 10:55:16.588 INFO  Microsoft (R) Build Engine, Version 4.0.30319.1
12-sept.-2012 10:55:16 10:55:16.588 INFO  [Microsoft .NET Framework, Version 4.0.30319.269]
12-sept.-2012 10:55:16 10:55:16.588 INFO  Copyright (C) Microsoft Corporation�2007. Tous droits r�serv�s.
12-sept.-2012 10:55:16 10:55:16.588 INFO 
12-sept.-2012 10:55:34 10:55:34.807 INFO  Sensor org.sonar.plugins.csharp.stylecop.StyleCopSensor@61270aef done: 18453 ms
12-sept.-2012 10:55:34 10:55:34.807 INFO  Sensor ProfileSensor...
12-sept.-2012 10:55:35 10:55:35.057 INFO  Sensor ProfileSensor done: 250 ms
12-sept.-2012 10:55:35 10:55:35.057 INFO  Sensor ProfileEventsSensor...
12-sept.-2012 10:55:35 10:55:35.089 INFO  Sensor ProfileEventsSensor done: 32 ms
12-sept.-2012 10:55:35 10:55:35.089 INFO  Sensor VersionEventsSensor...
12-sept.-2012 10:55:35 10:55:35.136 INFO  Sensor VersionEventsSensor done: 47 ms
12-sept.-2012 10:55:35 10:55:35.136 INFO  Sensor org.sonar.plugins.csharp.fxcop.FxCopSensor@52751a9b...
12-sept.-2012 10:55:35 10:55:35.401 INFO  Microsoft (R) FxCop Command-Line Tool, Version 1.36 (9.0.30729.1)
12-sept.-2012 10:55:35 10:55:35.401 INFO  Copyright (C) 2007 Microsoft Corporation.  All rights reserved.
12-sept.-2012 10:55:35 10:55:35.401 INFO 
12-sept.-2012 10:55:35 10:55:35.401 INFO  Loading C:\bamboo\bamboo-home\xml-data\build-dir\ANDRAF-ANDRAF-INTERGRATIONMOBILE\Source\Andra.PriscaND.MobileApplication\.sonar\sonar.FxCop...
12-sept.-2012 10:55:35 10:55:35.464 INFO  Loaded DesignRules.dll...
12-sept.-2012 10:55:35 10:55:35.464 INFO  Loaded GlobalizationRules.dll...
12-sept.-2012 10:55:35 10:55:35.495 INFO  Loaded NamingRules.dll...
12-sept.-2012 10:55:35 10:55:35.495 INFO  Loaded PerformanceRules.dll...
12-sept.-2012 10:55:35 10:55:35.526 INFO  Loaded UsageRules.dll...
12-sept.-2012 10:55:36 10:55:36.964 INFO  Loaded Andra.PriscaND.MobileApplication.exe...
12-sept.-2012 10:55:36 10:55:36.979 INFO  Initializing Introspection engine...
12-sept.-2012 10:55:37 10:55:37.182 INFO  Could not resolve reference to System.Windows.Forms.
12-sept.-2012 10:55:37 10:55:37.198 INFO  Analysis Complete.
12-sept.-2012 10:55:37 10:55:37.198 INFO 
12-sept.-2012 10:55:37 10:55:37.198 INFO  NOTE: One or more referenced assemblies could not be found. Use the '/directory' switch to specify additional assembly reference search paths.
12-sept.-2012 10:55:37 10:55:37.198 INFO 
12-sept.-2012 10:55:37 10:55:37.198 INFO  * Analysis was not performed; at least one valid rules assembly and one valid
12-sept.-2012 10:55:37 10:55:37.198 INFO  target file must be specified.
12-sept.-2012 10:55:37 10:55:37.198 INFO  * 2 total analysis engine exceptions.
12-sept.-2012 10:55:37 10:55:37.245 INFO  Writing report to C:\bamboo\bamboo-home\xml-data\build-dir\ANDRAF-ANDRAF-INTERGRATIONMOBILE\Source\Andra.PriscaND.MobileApplication\.sonar\fxcop-report.xml...
12-sept.-2012 10:55:37 10:55:37.245 INFO  Done.
12-sept.-2012 10:55:37 Total time: 54.752s
12-sept.-2012 10:55:37 Final Memory: 10M/170M
12-sept.-2012 10:55:37 Exception in thread "main" org.sonar.batch.bootstrapper.BootstrapException: org.sonar.api.utils.SonarException: FxCop execution failed.
12-sept.-2012 10:55:37         at org.sonar.runner.Runner.delegateExecution(Runner.java:189)
12-sept.-2012 10:55:37         at org.sonar.runner.Runner.execute(Runner.java:78)
12-sept.-2012 10:55:37         at org.sonar.runner.Main.main(Main.java:61)
12-sept.-2012 10:55:37 Caused by: org.sonar.api.utils.SonarException: FxCop execution failed.
12-sept.-2012 10:55:37         at org.sonar.plugins.csharp.fxcop.FxCopSensor.analyse(FxCopSensor.java:107)
12-sept.-2012 10:55:37         at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64)
12-sept.-2012 10:55:37         at org.sonar.batch.phases.Phases.execute(Phases.java:93)
12-sept.-2012 10:55:37         at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143)
12-sept.-2012 10:55:37         at org.sonar.batch.bootstrap.Module.start(Module.java:83)
12-sept.-2012 10:55:37         at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:111)
12-sept.-2012 10:55:37         at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:106)
12-sept.-2012 10:55:37         at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:101)
12-sept.-2012 10:55:37         at org.sonar.batch.bootstrap.Module.start(Module.java:83)
12-sept.-2012 10:55:37         at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:102)
12-sept.-2012 10:55:37         at org.sonar.batch.bootstrap.Module.start(Module.java:83)
12-sept.-2012 10:55:37         at org.sonar.batch.Batch.execute(Batch.java:100)
12-sept.-2012 10:55:37         at org.sonar.runner.Launcher.executeBatch(Launcher.java:70)
12-sept.-2012 10:55:38         at org.sonar.runner.Launcher.execute(Launcher.java:64)
12-sept.-2012 10:55:38         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12-sept.-2012 10:55:38         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
12-sept.-2012 10:55:38         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
12-sept.-2012 10:55:38         at java.lang.reflect.Method.invoke(Method.java:597)
12-sept.-2012 10:55:38         at org.sonar.runner.Runner.delegateExecution(Runner.java:186)
12-sept.-2012 10:55:38         ... 2 more
12-sept.-2012 10:55:38 Caused by: org.sonar.dotnet.tools.fxcop.FxCopException: FxCop execution failed with return code '513'. Check FxCop documentation for more information.
12-sept.-2012 10:55:38         at org.sonar.dotnet.tools.fxcop.FxCopRunner.execute(FxCopRunner.java:86)
12-sept.-2012 10:55:38         at org.sonar.plugins.csharp.fxcop.FxCopSensor.launchFxCop(FxCopSensor.java:146)
12-sept.-2012 10:55:38         at org.sonar.plugins.csharp.fxcop.FxCopSensor.analyse(FxCopSensor.java:105)
12-sept.-2012 10:55:38         ... 20 more



Ludovic GODRANT




34 Rue de la Tuilerie. 38170 Seyssinet-Pariset

Tél :
<a href=tel:%28%2B33%29%204%2076%2070%2098%2053 target=_blank>(+33) 4 76 70 98 53
Mailto :
ludovic.godrant@...
http://www.hardis.fr

Grenoble . Paris . Lyon . Nantes . Rennes . Lille


Loading...