# YamlLintRules

The ids of the rules YamlLinter checks.

Class 

`OfficeIMO.Yaml`

**Namespace**

`OfficeIMO.Yaml`

**Assembly**

`OfficeIMO.Yaml`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[YamlLintRules.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintRules.cs#L7)

**Modifiers**

static

The ids of the rules [YamlLinter](/api/yaml/officeimo-yaml-yamllinter/) checks. They match the yamllint rule names where yamllint has the same rule, so findings and configuration read the same in both tools.

## Inheritance

- object
- YamlLintRules

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

## Fields

`public const string Syntax` [#](#field-syntax)

[YamlLintRules.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintRules.cs#L9)

The text is not valid YAML. Always reported; the other rules then check only lines.

Value: `syntax`

`public const string Indentation` [#](#field-indentation)

[YamlLintRules.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintRules.cs#L12)

Nested block collections indented by a different width than the rest of the file.

Value: `indentation`

`public const string TrailingSpaces` [#](#field-trailingspaces)

[YamlLintRules.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintRules.cs#L15)

Spaces or tabs at the end of a line.

Value: `trailing-spaces`

`public const string LineLength` [#](#field-linelength)

[YamlLintRules.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintRules.cs#L18)

Lines longer than the configured maximum.

Value: `line-length`

`public const string Truthy` [#](#field-truthy)

[YamlLintRules.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintRules.cs#L21)

Plain values such as yes, on or no that YAML 1.1 and YAML 1.2 readers read differently.

Value: `truthy`

`public const string KeyDuplicates` [#](#field-keyduplicates)

[YamlLintRules.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintRules.cs#L24)

A mapping key that repeats an earlier key of the same mapping.

Value: `key-duplicates`

`public const string DocumentStart` [#](#field-documentstart)

[YamlLintRules.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintRules.cs#L27)

The document start marker --- is missing, or present where it is forbidden.

Value: `document-start`

`public const string EmptyValues` [#](#field-emptyvalues)

[YamlLintRules.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintRules.cs#L30)

A mapping value or sequence item left empty, which reads as null.

Value: `empty-values`

`public const string Comments` [#](#field-comments)

[YamlLintRules.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintRules.cs#L33)

A comment without a space after #, or too close to the content before it.

Value: `comments`

`public const string OctalValues` [#](#field-octalvalues)

[YamlLintRules.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintRules.cs#L36)

Integers such as 010 that YAML 1.1 readers take as octal and YAML 1.2 readers as decimal.

Value: `octal-values`

`public const string Tabs` [#](#field-tabs)

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

Tab characters in a line's indentation.

Value: `tabs`

`public const string NewLineAtEndOfFile` [#](#field-newlineatendoffile)

[YamlLintRules.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintRules.cs#L42)

The file does not end with a line break.

Value: `new-line-at-end-of-file`

`public const string EmptyLines` [#](#field-emptylines)

[YamlLintRules.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintRules.cs#L45)

Blank lines beyond the configured maximum, at the start, inside or at the end of the file.

Value: `empty-lines`

`public const string QuotedStrings` [#](#field-quotedstrings)

[YamlLintRules.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintRules.cs#L48)

String values quoted in a different style than the configured one, or not quoted as required.

Value: `quoted-strings`

`public const string KeyOrdering` [#](#field-keyordering)

[YamlLintRules.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintRules.cs#L51)

Mapping keys that are not in ascending order.

Value: `key-ordering`

<!-- PowerForge markdown artifact sha256:A8208E686168FE71FD21DCAA5288CD7740475569A7D8A0DB712EA1BF00B6ECED -->
