IssueBuilder Class

Summary

Class to create instances of IIssue with a fluent API.
Assembly
Cake.Issues.dll
Namespace
Cake.Issues
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["IssueBuilder"] class Type type-node

Syntax

public class IssueBuilder

Methods

Name Value Summary
Create() IIssue
Creates a new IIssue.
ForRun(string) IssueBuilder
Sets the name of the run where the issue was reported.
InFile(string, Nullable<int>, Nullable<int>, Nullable<int>, Nullable<int>) IssueBuilder
Sets the path to the file affected by the issue and the line and column in the file where the issues have occurred.
InFile(string, Nullable<int>, Nullable<int>) IssueBuilder
Sets the path to the file affected by the issue and the line and column in the file where the issues have occurred.
InFile(string, Nullable<int>) IssueBuilder
Sets the path to the file affected by the issue and the line in the file where the issues have occurred.
InFile(string) IssueBuilder
Sets the path to the file affected by the issue.
InProject(string, string) IssueBuilder
Sets the project to which the file affected by the issue belongs.
InProjectFile(string) IssueBuilder
Sets the path of the project to which the file affected by the issue belongs.
InProjectOfName(string) IssueBuilder
Sets the name of the project to which the file affected by the issue belongs.
NewIssue(string, string, string, string) IssueBuilder
Initiates the creation of a new IIssue.
static
NewIssue(string, string, string) IssueBuilder
Initiates the creation of a new IIssue with message as identifier.
static
NewIssue<T>(string, string, T) IssueBuilder
Initiates the creation of a new IIssue.
static
NewIssue<T>(string, T) IssueBuilder
Initiates the creation of a new IIssue with message as identifier.
static
OfRule(string, string, Uri) IssueBuilder
Sets the rule of the issue.
OfRule(string, string) IssueBuilder
Sets the rule of the issue.
OfRule(string, Uri) IssueBuilder
Sets the rule of the issue.
OfRule(string) IssueBuilder
Sets the rule of the issue.
WithAdditionalInformation(IDictionary<string, string>) IssueBuilder
Sets additional information regarding the issue.
WithAdditionalInformation(string, string) IssueBuilder
Sets additional information regarding the issue.
WithFileLink(Uri) IssueBuilder
Sets the link to the position in the file where the issue occurred.
WithFileLinkSettings(FileLinkSettings) IssueBuilder
Sets a FileLinkSettings to create the link of the position in the file where the issue occurred.
WithMessageInHtmlFormat(string) IssueBuilder
Sets the message in HTML format.
WithMessageInMarkdownFormat(string) IssueBuilder
Sets the message in Markdown format.
WithPriority(IssuePriority) IssueBuilder
Sets the priority of the issue.
WithPriority(Nullable<int>, string) IssueBuilder
Sets the priority of the issue.

Extension Methods

Name Value Summary
Dump<IssueBuilder>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<IssueBuilder>(IssueBuilder[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<IssueBuilder>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<IssueBuilder>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<IssueBuilder>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<IssueBuilder>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin