Skip to main content

valid-character-before-token-start

Overview

This rule belongs to the yaml-syntax-validation ruleset and states that:

A YAML token must be indented with spaces. Any other character used before the YAML token like tabs ' ', etc. is not allowed

PropertyValue
EnabledYes
Maximum SeverityBlocking
MessageWhile scanning for the next token, a character that cannot start any token was found.
CodeYAMLSYNTAX_V100
TypeValidation
Rule SystemSyntax
Broad CategoryIndentation
Tagsyaml data syntax preliminary checks validation yaml indentation token tabs spaces

Suggested Fixes

  • Ensure that you are not using tabs for indentation.
  • Replace all tabs with spaces as YAML does not allow tab indentation.

For More Information