IssueBuilder.

InFile(string, Nullable<int>, Nullable<int>, Nullable<int>, Nullable<int>) Method

Summary

Sets the path to the file affected by the issue and the line and column in the file where the issues has occurred.
Assembly
Cake.Issues.dll
Namespace
Cake.Issues
Containing Type
IssueBuilder

Syntax

public IssueBuilder InFile(string filePath, Nullable<int> startLine, Nullable<int> endLine, Nullable<int> startColumn, Nullable<int> endColumn)

Parameters

Name Type Description
filePath string The path to the file affected by the issue. The path needs to be relative to the repository root. null or System.String.Empty if issue is not related to a change in a file.
startLine Nullable<int> The line in the file where the issues has occurred. null if the issue affects the whole file or an assembly.
endLine Nullable<int> The end of the line range in the file where the issues has occurred. null if the issue affects the whole file, an assembly or only a single line.
startColumn Nullable<int> The column in the file where the issues has occurred. null if the issue affects the whole file or an assembly.
endColumn Nullable<int> The end of the column range in the file where the issues has occurred. null if the issue affects the whole file, an assembly or only a single column.

Return Value

Type Description
IssueBuilder Issue Builder instance.