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.Issues.
Summary
Fails build if any issues of certain minimum priority are found.
- Assembly
- Cake
.Issues .dll - Namespace
- Cake
.Issues - Containing Type
- Aliases
Syntax
public static void BreakBuildOnIssues(this ICakeContext context, IEnumerable<IIssue> issues, IssuePriority priority, Action<IEnumerable<IIssue>> handler)
Examples
Fails build if errors are found:
BreakBuildOnIssues(
issues,
IssuePriority.Error,
x => Information("{0} issues found", x.Count()));
Attributes
Type | Description |
---|---|
Cake |
|
Cake |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | The context. |
issues | IEnumerable |
Issues which should be checked. |
priority | IssuePriority | Minimum priority of issues which should be considered. |
handler | Action |
Optional handler to call when issues of priority are found. |
Return Value
Type | Description |
---|---|
void |