# YamlLintFinding

One problem YamlLinter found, with where it is and, when it can be repaired safely, how.

Class 

`OfficeIMO.Yaml`

**Namespace**

`OfficeIMO.Yaml`

**Assembly**

`OfficeIMO.Yaml`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[YamlLintFinding.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintFinding.cs#L39)

**Modifiers**

sealed

One problem [YamlLinter](/api/yaml/officeimo-yaml-yamllinter/) found, with where it is and, when it can be repaired safely, how.

## Inheritance

- object
- YamlLintFinding

## Usage

Explore 3 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 3

- Method [YamlLinter.Lint](/api/yaml/officeimo-yaml-yamllinter/#method-lint-string-officeimo-yaml-yamllintoptions)
- Property [YamlLintFixResult.Applied](/api/yaml/officeimo-yaml-yamllintfixresult/#property-applied)
- Property [YamlLintFixResult.Remaining](/api/yaml/officeimo-yaml-yamllintfixresult/#property-remaining)

Filter members 

Show inherited

## Methods

`public override string ToString()` [#](#method-tostring)

[YamlLintFinding.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintFinding.cs#L39)

Formats the finding as line:column severity message (rule), the layout yamllint prints.

Returns

`string`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

## Properties

`public string RuleId { get; }` [#](#property-ruleid)

[YamlLintFinding.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintFinding.cs#L14)

Gets the rule that reported the finding, one of the [YamlLintRules](/api/yaml/officeimo-yaml-yamllintrules/) ids.

`public OfficeDiagnosticSeverity Severity { get; }` [#](#property-severity)

[YamlLintFinding.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintFinding.cs#L17)

Gets the severity configured for the rule.

`public YamlPosition Position { get; }` [#](#property-position)

[YamlLintFinding.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintFinding.cs#L20)

Gets where the problem is in the linted text.

`public int Line { get; }` [#](#property-line)

[YamlLintFinding.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintFinding.cs#L23)

Gets the one-based line of [YamlLintFinding.Position](/api/yaml/officeimo-yaml-yamllintfinding/).

`public int Column { get; }` [#](#property-column)

[YamlLintFinding.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintFinding.cs#L26)

Gets the one-based column of [YamlLintFinding.Position](/api/yaml/officeimo-yaml-yamllintfinding/), in UTF-16 code units.

`public string Message { get; }` [#](#property-message)

[YamlLintFinding.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintFinding.cs#L29)

Gets a sentence describing the problem.

`public YamlLintFix? Fix { get; }` [#](#property-fix)

[YamlLintFinding.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintFinding.cs#L35)

Gets the text edit that repairs the problem without changing any value, or null when the rule has no safe repair for it. [YamlLinter.Fix](/api/yaml/officeimo-yaml-yamllinter/) applies these edits.

<!-- PowerForge markdown artifact sha256:8F56603E8E2379A90896EEF306181A8803945A7C555C493B2BFDEC3B2FBC61FD -->
