This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Sonar.
Summary
Required prior to Sonar 6.1:
- Name
- Version
Required from Sonar 6.1
- Key
- Assembly
- Cake
.Sonar .dll - Namespace
- Cake
.Sonar - Base Types
-
- ToolSettings
- SonarSettings
graph BT
Type-->Base0["SonarSettings"]
click Base0 "/api/Cake.Sonar/SonarSettings"
Base0-->Base1["ToolSettings"]
Type["SonarBeginSettings"]
class Type type-node
Syntax
public class SonarBeginSettings : SonarSettings
Constructors
Name | Summary |
---|---|
SonarBeginSettings |
Properties
Name | Value | Summary |
---|---|---|
AnalysisMode | string | |
Branch | string |
The name of the current branch. Specifying a branch will cause Sonar to analyse different branches as different Sonar projects.
This allows one to use sonar to compare branches on a pull review.
|
CoverageExclusions | string |
Comma-delimited list of file path patterns to be excluded from coverage calculations
|
CoverageReportPaths | string |
Path to coverage report in the Generic Test Data format
|
Dot |
string | |
DotCoverReportsPath | string | |
Duplication |
string |
Comma-delimited list of file path patterns to be excluded from duplication detection
|
Exclusions | string |
Use exclusion to analyze everything but the specified files
|
Git |
Nullable |
|
GitHubEndpoint | string | |
GitHubLogin | string | |
GitHubOAuth | string | |
GitHubPullRequest | string | |
GitHubRepository | string | |
Inclusions | string |
Comma-delimited list of file path patterns to be included in analysis. When set, only files matching the paths set here will be included in analysis.
|
Issues |
Nullable |
|
Issues |
Nullable |
|
Javascript |
string |
comma-separated list of paths to LCOV coverage report files
|
Key | string |
Key of the project. Required for Sonar 6.1 and up.
|
Language | string | |
Login | string |
Login to use for connecting to sonar.
Inherited from SonarSettings
|
Name | string |
Name of the project.
Required prior to Sonar 6.1
|
N |
string | |
NCover3ReportsPath | string | |
NDependProjectPath | string | |
NUnitReportsPath | string | |
N |
string | |
Open |
string | |
OpenCoverReportsPath | string | |
Open |
string | |
Organization | string |
Organization name for sonar cloud versions.
|
Password | string |
Password to use for connecting to sonar.
Inherited from SonarSettings
|
ProjectBaseDir | string |
Use this property when you need analysis to take place in a directory other than the one from which it was launched
|
PullRequestBase | string |
Gets or sets the base branch in which the pull request will be merged in case of a pull request validation
See https://docs.sonarqube.org/display/SONAR/Pull+Request+Analysis
|
PullRequestBranch | string |
Gets or sets the branch name in case of a pull request validation
See https://docs.sonarqube.org/display/SONAR/Pull+Request+Analysis
|
Pull |
string |
Gets or sets the github endpoint url.
See: https://docs.sonarqube.org/display/SONAR/Pull+Request+Analysis
|
Pull |
string |
Gets or sets the github repository for which the pull request should be validated. Typical github format CompanyOrUser/RepositoryName
See: https://docs.sonarqube.org/display/SONAR/Pull+Request+Analysis
|
PullRequestKey | Nullable |
Gets or sets the pullrequest key in case of a pull request validation
See https://docs.sonarqube.org/display/SONAR/Pull+Request+Analysis
|
PullRequestProvider | string |
Gets or sets the pull request provider used by sonarcloud. github or vsts.
See: https://docs.sonarqube.org/display/SONAR/Pull+Request+Analysis
|
Pull |
string |
Gets or sets the VSTS/Azure DevOps endpoint url.
|
Pull |
string |
Gets or sets the VSTS/Azure DevOps project.
|
Pull |
string |
Gets or sets the VSTS/Azure DevOps repository.
|
QualityGateTimeout | Nullable |
Sets the number of seconds that the scanner should wait for a report to be processed
|
QualityGateWait | Nullable |
Forces the analysis step to poll the SonarQube instance and wait for the Quality Gate status
|
ResharperProjectPath | string | |
Resharper |
string | |
SettingsFile | string |
Path to alternative SonarQube.Analysis.xml
|
Silent | bool |
Suppress standard output from the sonar runner.
Inherited from SonarSettings
|
TestExclusions | string |
Comma-delimited list of test file path patterns to be excluded from analysis.
|
TestInclusions | string |
Comma-delimited list of test file path patterns to be included in analysis. When set, only test files matching the paths set here will be included in analysis.
|
TestReportPaths | string | |
Token | string |
The authentication token of a SonarQube user with either Execute Analysis permission on the project or Global Execute Analysis permission.
Inherited from SonarSettings
|
TSLintReportPaths | string |
This property accepts one or more JSON TSLint reports,
paths to report files should be absolute or relative to the project base directory.
|
Typescript |
string |
comma-separated list of paths to LCOV coverage report files
|
Url | string |
The url of the used sonar instance. When omitted, http://localhost:9000 is used.
|
UseCoreClr | bool |
Use .NET Core version of the SonarQube scanner in case of a .NET Core build.
Inherited from SonarSettings
|
UseWsCache | Nullable |
|
Verbose | bool |
Print verbose output during the analysis.
|
Version | string |
A version indicator, e.g. a semantic version or git revision hash.
Required prior to Sonar 6.1
|
VersionResult | VersionResult | |
Vs |
string | |
Vs |
string | |
VsTestReportsPath | string | |
XUnitReportsPath | string |
Methods
Name | Value | Summary |
---|---|---|
AppendArguments |
void |
Inherited from SonarSettings
|
GetArguments |
Process |
|
GetEndSettings |
SonarEndSettings |
Extension Methods
Name | Value | Summary |
---|---|---|
Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
Returns the string value or a
Not set > markup suitable for Spectre.Console.
From StringExtensions
Requires the Cake.Issues addin
|