Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

These core plugins provide basic language functionality: metrics, basic rules, FxCop / Code Analysis rules,  and the ability to import NCover3 and OpenCover code coverage reportsimport of NCover, OpenCover and Visual Studio Coverage Xml reports, as well as Visual Studio Test Execution Results reports.

  • C#
  • VB.NET 

Additional plugins:

...

TFS builds, which output assemblies of all projects to a common folder, are supported by the Analysis Bootstrapper for Visual Studio Projects using the "sonar.visualstudio.outputPathoutputPaths" property.

Excluding generated code

...

Old propertyStill supported?Replaced byDescription
sonar.fxcop.installDirectory

Yes, but deprecated

Not visible in the "Deprecated" property tabs

C#:
sonar.cs.fxcop.fxCopCmdPath

VB.NET:
sonar.vbnet.fxcop.fxCopCmdPath

Used when FxCop rules are enabled.

The new property should contain the full path to FxCopCmd.exe

Example: C:/Program Files/Microsoft Visual Studio 12.0/Team Tools/Static Analysis Tools/FxCop/FxCopCmd.exe

sonar.stylecop.installDirectoryYes, but deprecatedsonar.stylecop.styleCopDllPath

Used when StyleCop rules are enabled.

StyleCop is no longer embedded in the plugin, it now must be installed first.

The new property should contain the full path to StyleCop.dll

Example: C:/Program Files/StyleCop 4.7/StyleCop.dll

sonar.resharper.installDirectoryYes, but deprecatedsonar.resharper.inspectCodePath

Used when ReSharper rules are enabled.

The new property should contain the full path to inspectcode.exe

Example: C:/Program Files/jb-commandline-8.1.23.523/inspectcode.exe

sonar.ncover.installDirectoryNo

C#:
sonar.cs.ncover3.reportsPaths

VB.NET:
sonar.vbnet.ncover3.reportsPaths

NCover is no longer executed, only existing reports are imported.

The new property should contain the path to those existing reports.

Example: report1.nccov, report2.nccov

Used whenever the new property is set.

sonar.opencover.installDirectoryNo

C#:
sonar.cs.opencover.reportsPaths

VB.NET:
sonar.vbnet.opencover.reportsPaths

OpenCover is no longer executed, only existing reports are imported.

The new property should contain the path to those existing reports.

Example: report1.xml, report2.xml

Used whenever the new property is set.

Old propertyStill supported?Replaced byDescription
sonar.dotnet.2.0.sdk.directoryYes, but deprecatedsonar.stylecop.msBuildPath

Used when StyleCop are enabled in association with sonar.dotnet.version to locate which MsBuild.exe to invoke.

The new property should contain the full path to MsBuild.exe

Example: C:/Program Files/MSBuild/12.0/Bin/MsBuild.exe

sonar.dotnet.3.5.sdk.directoryYes, but deprecatedsonar.stylecop.msBuildPath

Used when StyleCop are enabled in association with sonar.dotnet.version to locate which MsBuild.exe to invoke.

The new property should contain the full path to MsBuild.exe

Example: C:/Program Files/MSBuild/12.0/Bin/MsBuild.exe

sonar.dotnet.4.0.sdk.directoryYes, but deprecatedsonar.stylecop.msBuildPath

Used when StyleCop are enabled in association with sonar.dotnet.version to locate which MsBuild.exe to invoke.

The new property should contain the full path to MsBuild.exe

Example: C:/Program Files/MSBuild/12.0/Bin/MsBuild.exe

sonar.dotnet.4.5.sdk.directoryYes, but deprecatedsonar.stylecop.msBuildPath

Used when StyleCop are enabled in association with sonar.dotnet.version to locate which MsBuild.exe to invoke.

The new property should contain the full path to MsBuild.exe

Example: C:/Program Files/MSBuild/12.0/Bin/MsBuild.exe

sonar.dotnet.versionYes, but deprecatedsonar.stylecop.msBuildPath

Used when StyleCop are enabled in association with sonar.dotnet.?.?.sdk.directory to locate which MsBuild.exe to invoke.

The new property should contain the full path to MsBuild.exe

Example: C:/Program Files/MSBuild/12.0/Bin/MsBuild.exe

Old propertyStill Supported?Replaced byDescription
sonar.dotnet.buildConfigurationYes, but deprecatedThe most recently built assembly is now picked

Used by the Analysis Bootstrapper for Visual Studio Projects to determine which assembly to pick.

The most recently build assembly is now automatically picked, unless this property is explicitly set.

Example: If the last build was a Release one, then the Release assembly will be analyzed

sonar.dotnet.buildPlatformYes, but deprecatedThe most recently built assembly is now picked

Used by the Analysis Bootstrapper for Visual Studio Projects to determine which assembly to pick.

The most recently build assembly is now automatically picked, unless this property is explicitly set.

Example: If the last build was a Release one, then the Release assembly will be analyzed

Old propertyStill Supported?Replaced byDescription
sonar.dotnet.assembliesNo

C#:
sonar.cs.fxcop.assembly 

VB.NET:
sonar.vbnet.fxcop.assembly 

The assemblies should be correctly guessed by the Visual Studio bootstrapper, which sets "sonar.cs.fxcop.assembly" and "sonar.vbnet.fxcop.assembly".

Also read about "sonar.visualstudio.outputPathoutputPaths".

sonar.dotnet.test.assembliesNoNot Available

Formerly used by the Gallio plugin to determine which assembly to use to execute the tests.

Tests are no longer executed, only existing test reports can be imported, so this property is now of no use to the plugin.

sonar.fxcop.assemblyDependencyDirectoriesNoNot Available

Formerly used to pass additional assembly dependencies to FxCop for the analysis.

FxCop will by default look in the folder of the analysed assembly for additional dependencies.

FxCop is executed with the "/searchgac" flag, to also search the Global Assembly Cache.

This property could abused to support the Team Foundation Server usecase, where assemblies were moved to a common folder. See the TFS chapter for details.

See SONARPLUGINS-3551

Old propertyStill Supported?Replaced byDescription
sonar.dotnet.visualstudio.solution.fileYes, but deprecatedsonar.visualstudio.solutionThe new property behaves as the old one, and should be used for scenarios where there are multiple solution files in the folder of the project to be analyzed.
    
sonar.fxcop.timeoutMinutes

Yes, but deprecated

Not visible in the "Deprecated" property tabs

C#:
sonar.cs.fxcop.timeoutMinutes

VB.NET:
sonar.vbnet.fxcop.timeoutMinutes

 
sonar.stylecop.timeoutMinutesYes, fully supported This property is fully supported, and is not deprecated.
sonar.resharper.timeoutMinutesYes, fully supported This property is fully supported, and is not deprecated.
Old propertyStill Supported?Replaced byDescription
sonar.silverlight.3.mscorlib.locationNoNot AvailableFormerly used by the Gendarme plugin to analyze Silverlight projects.
sonar.silverlight.4.mscorlib.locationNoNot AvailableFormerly used by the Gendarme plugin to analyze Silverlight projects.
sonar.silverlight.5.mscorlib.locationNoNot AvailableFormerly used by the Gendarme plugin to analyze Silverlight projects.
sonar.silverlight.versionNoNot AvailableFormerly used by the Gendarme plugin to analyze Silverlight projects.
Old propertyStill Supported?Replaced byDescription
sonar.dotnet.visualstudio.testProjectPatternNoNot Available

All projects are imported as standard ones.

"sonar.skippedModules" can be used to not import tests projects.

sonar.visualstudio.testProjectPattern

 

sonar.dotnet.visualstudio.itProjectPatternNoNot Available

All projects are imported as standard ones.

"sonar.skippedModules" can be used to not import tests projects.

 

    
sonar.dotnet.key.generation.strategyNo

Now set to "safe" by default

Use
sonar.visualstudio.projectKeyStrategy=unsafe
while upgrading to C# 3.0.

See the chapter on project keys for details.
Old propertyStill Supported?Replaced byDescription
sonar.fxcop.modeNoNot Available

The execution of FxCop is now always driven by the plugin.

Reusing existing reports is no longer supported.

sonar.gendarme.modeNoNot AvailableGendarme is no longer supported.
sonar.stylecop.modeNoNot Available

The execution of StyleCop is now always driven by the plugin.

Reusing existing reports is no longer supported.

sonar.gallio.modeNoNot Available

It now is only possible to import existing code coverage reports.

Tests are no longer executed as part of the analysis by the plugin.

sonar.gallio.it.modeNoNot Available

Integration tests code coverage import is not yet supported.

See SONARPLUGINS-3661

sonar.resharper.modeNoNot Available

The execution of R# is now always driven by the plugin.

Reusing existing reports is no longer supported.

sonar.ndeps.modeNoNot AvailableNDeps is no longer supported.
Old propertyStill Supported?Replaced byDescription
sonar.fxcop.reports.pathNoNot Available

The execution of FxCop is now always driven by the plugin.

Reusing existing reports is no longer supported.

sonar.gendarme.reports.pathNoNot AvailableGendarme is no longer supported.
sonar.stylecop.reports.pathNoNot Available

The execution of StyleCop is now always driven by the plugin.

Reusing existing reports is no longer supported.

sonar.resharper.reports.pathNoNot Available

The execution of R# is now always driven by the plugin.

Reusing existing reports is no longer supported.

Old propertyStill Supported?Replaced byDescription
sonar.gallio.reports.pathNo

Not Available

Test results reports import C#:
sonar.cs.vstest.reportsPaths

VB.NET:
sonar.vbnet.vstest.reportsPaths 

NCover is not yet supported: SONARPLUGINS-3678, SONARPLUGINS-3691

Only code coverage can be imported for the time being.

sonar.gallio.it.reports.pathNo

Not Available

Tests result reports import of integration tests is not yet supported by SonarQube: SONAR-4101

sonar.gallio.it.coverage.reports.pathNoNot AvailableIntegration tests code coverage import is not yet supported.

See SONARPLUGINS-3661

sonar.gallio.filterNoNot AvailableGallio is no longer supported.
sonar.gallio.coverage.excludesNoNot AvailableGallio is no longer supported.
sonar.gallio.runnerNoNot AvailableGallio is no longer supported.
sonar.gallio.safe.modeNoNot AvailableGallio is no longer supported.
sonar.gallio.timeoutMinutesNoNot AvailableGallio is no longer supported.
Old propertyStill Supported?Replaced byDescription
sonar.resharper.dotSettings.pathNoNot AvailableAll the configuration customization should be made within SonarQube.
sonar.stylecop.analyzers.settingsNoNot AvailableAll the configuration customization should be made within SonarQube.
    
sonar.gendarme.confidence NoNot AvailableGendarme is no longer supported.
    
sonar.fxcop.ignoreGeneratedCodeNoUse standard SonarQube exclusions 
sonar.dotnet.excludeGeneratedCodeNoUse standard SonarQube exclusionsSee the exclude generated code chapter.
Old propertyStill Supported?Replaced byDescription
sonar.resharper.additionalArgumentsNoNot AvailableThis configuration parameter is no longer supported.
sonar.resharper.includeAllFilesNoNot AvailableThis configuration parameter is no longer supported.
    
sonar.ndeps.ignorable.fieldsNoNot AvailableNDeps is no longer supported.
    
sonar.resharper.customRules.definitionNoNot AvailableCustom R# rules are not yet supported. SONARPLUGINS-3693
sonar.fxcop.customRules.definitionNoNot AvailableCustom FxCop rules are not yet supported. SONARPLUGINS-3692

...