Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

YamlLintRules

OfficeIMO.Yaml

Namespace
OfficeIMO.Yaml
Assembly
OfficeIMO.Yaml
Source revision
ba882f6b0d07 with working tree changes
Modifiers
static

The ids of the rules 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

Fields

public const string Syntax #

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

Value: syntax
public const string Indentation #

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

Value: indentation
public const string TrailingSpaces #

Spaces or tabs at the end of a line.

Value: trailing-spaces
public const string LineLength #

Lines longer than the configured maximum.

Value: line-length
public const string Truthy #

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 #

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

Value: key-duplicates
public const string DocumentStart #

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

Value: document-start
public const string EmptyValues #

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

Value: empty-values
public const string Comments #

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

Value: comments
public const string OctalValues #

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 #

Tab characters in a line's indentation.

Value: tabs
public const string NewLineAtEndOfFile #

The file does not end with a line break.

Value: new-line-at-end-of-file
public const string EmptyLines #

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

Value: empty-lines
public const string QuotedStrings #

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

Value: quoted-strings
public const string KeyOrdering #

Mapping keys that are not in ascending order.

Value: key-ordering