CodeOwnersParseError Struct
Describes why a CODEOWNERS file is invalid, and where.
var isValid = CodeOwnersFile.TryParse("[Section\n* @user1", CodeOwnersDialect.GitLab, out var file, out var error);
Assert.False(isValid);
Assert.Null(file);
Assert.Equal(CodeOwnersParseErrorKind.UnterminatedSectionHeader, error.Kind);
Assert.Equal(1, error.LineNumber);
Assert.Equal(1, error.LinePosition);public readonly struct CodeOwnersParseError : IEquatable<CodeOwnersParseError>- Implements
Properties
| Name | Description |
|---|---|
| Kind | Gets the kind of error. |
| LineNumber | Gets the one-based number of the line containing the error, or 0 when the position is unknown. |
| LinePosition | Gets the one-based position of the error within its line, or 0 when the position is unknown. |
LineNumber
CodeOwnersParseError.csLinePosition
CodeOwnersParseError.csMethods
| Name | Description |
|---|---|
| Equals(CodeOwnersParseError) | |
| Equals(object?) | |
| GetHashCode() | |
| ToString() | Returns a description of the error and of its location. |
Equals overloads
Equals(CodeOwnersParseError)
CodeOwnersParseError.cspublic bool Equals(CodeOwnersParseError other)No documentation is available.
Equals(object?)
CodeOwnersParseError.csGetHashCode()
CodeOwnersParseError.csToString()
CodeOwnersParseError.csOperators
| Name | Description |
|---|---|
| operator ==(CodeOwnersParseError, CodeOwnersParseError) | |
| operator !=(CodeOwnersParseError, CodeOwnersParseError) |
operator ==(CodeOwnersParseError, CodeOwnersParseError)
CodeOwnersParseError.cspublic static bool operator ==(CodeOwnersParseError left, CodeOwnersParseError right)No documentation is available.
operator !=(CodeOwnersParseError, CodeOwnersParseError)
CodeOwnersParseError.cspublic static bool operator !=(CodeOwnersParseError left, CodeOwnersParseError right)No documentation is available.