SonarCakeAliases.

Sonar(ICakeContext, Action<ICakeContext>, SonarBeginSettings) Method

Summary

Run a self-contained analysis for the specified action. The action should run msbuild.
Assembly
Cake.Sonar.dll
Namespace
Cake.Sonar
Containing Type
SonarCakeAliases

Syntax

public static void Sonar(this ICakeContext context, Action<ICakeContext> action, SonarBeginSettings settings)

Examples

Task("Sonar")
  .Does(() => {
     var settings = new SonarBeginSettings() {
         ...
     };
     Sonar(ctx => ctx.MsBuild(solution), settings);
  });

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The cake context
action Action<ICakeContext>
settings SonarBeginSettings

Return Value

Type Description
void