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) IssueBuilder
Sets the path to the file affected by the issue.
InFile(string, Nullable<int>) IssueBuilder
Sets the path to the file affected by the issue and the line in the file where the issues has 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 has occurred.
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 has occurred.
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) IssueBuilder
Initiates the creation of a new IIssue with message as identifier.
static
NewIssue(string, string, string, string) IssueBuilder
Initiates the creation of a new IIssue.
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) IssueBuilder
Sets the rule of the issue.
OfRule(string, string) IssueBuilder
Sets the rule of the issue.
OfRule(string, string, Uri) IssueBuilder
Sets the rule of the issue.
OfRule(string, Uri) 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 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
NotNull<IssueBuilder>(string) void
Throws an exception if the specified parameter's value is null.
GitHub