# YamlLintRuleOptions

Whether a rule runs and how severe its findings are.

Class 

`OfficeIMO.Yaml`

**Namespace**

`OfficeIMO.Yaml`

**Assembly**

`OfficeIMO.Yaml`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[YamlLintOptions.cs:87](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintOptions.cs#L87)

Whether a rule runs and how severe its findings are.

## Inheritance

- object
- YamlLintRuleOptions

## Derived Types

- [YamlLintCommentsOptions](/api/yaml/officeimo-yaml-yamllintcommentsoptions/)
- [YamlLintDocumentStartOptions](/api/yaml/officeimo-yaml-yamllintdocumentstartoptions/)
- [YamlLintEmptyLinesOptions](/api/yaml/officeimo-yaml-yamllintemptylinesoptions/)
- [YamlLintEmptyValuesOptions](/api/yaml/officeimo-yaml-yamllintemptyvaluesoptions/)
- [YamlLintIndentationOptions](/api/yaml/officeimo-yaml-yamllintindentationoptions/)
- [YamlLintLineLengthOptions](/api/yaml/officeimo-yaml-yamllintlinelengthoptions/)
- [YamlLintOctalValuesOptions](/api/yaml/officeimo-yaml-yamllintoctalvaluesoptions/)
- [YamlLintQuotedStringsOptions](/api/yaml/officeimo-yaml-yamllintquotedstringsoptions/)
- [YamlLintTruthyOptions](/api/yaml/officeimo-yaml-yamllinttruthyoptions/)

## Usage

Explore 7 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 7

- Method [YamlLintOptions.GetRule](/api/yaml/officeimo-yaml-yamllintoptions/#method-getrule-string)
- Property [YamlLintOptions.KeyDuplicates](/api/yaml/officeimo-yaml-yamllintoptions/#property-keyduplicates)
- Property [YamlLintOptions.KeyOrdering](/api/yaml/officeimo-yaml-yamllintoptions/#property-keyordering)
- Property [YamlLintOptions.NewLineAtEndOfFile](/api/yaml/officeimo-yaml-yamllintoptions/#property-newlineatendoffile)
- Property [YamlLintOptions.Rules](/api/yaml/officeimo-yaml-yamllintoptions/#property-rules)
- Property [YamlLintOptions.Tabs](/api/yaml/officeimo-yaml-yamllintoptions/#property-tabs)
- Property [YamlLintOptions.TrailingSpaces](/api/yaml/officeimo-yaml-yamllintoptions/#property-trailingspaces)

Filter members 

Show inherited

## 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`

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

Inherited from object

Returns

`string?`

## Properties

`public string Id { get; }` [#](#property-id)

[YamlLintOptions.cs:87](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintOptions.cs#L87)

Gets the rule id, one of [YamlLintRules](/api/yaml/officeimo-yaml-yamllintrules/).

`public bool Enabled { get; set; }` [#](#property-enabled)

[YamlLintOptions.cs:90](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintOptions.cs#L90)

Gets or sets whether the rule runs.

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

[YamlLintOptions.cs:93](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintOptions.cs#L93)

Gets or sets the severity of the rule's findings.

<!-- PowerForge markdown artifact sha256:405738AD702DDF5A089C08C8B9DABE0A64E0F3681ADCC654C63E57A0D28BAA35 -->
