Skip to main content

valid-quoted-scalar-termination

Overview

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

A scalar value (like a number, string, etc.) can be quoted in two styles: single quotes or double quotes. Whatever style is picked for the scalar must be used consistently for it i.e. use either single quotes or double quotes but not both. There must be a quote before the value and after the value.

PropertyValue
EnabledYes
Maximum SeverityBlocking
MessageWhile scanning a quoted scalar, an unexpected end of stream was found.
CodeYAMLSYNTAX_V051
TypeValidation
Rule SystemSyntax
Broad CategoryScalars
Tagsyaml data syntax preliminary checks validation yaml scalar quoted single quoted double quoted

Suggested Fixes

  • Ensure that the quoted value is closed with quotes properly i.e. there is a starting quote before the value and an ending quote after the value.
  • Ensure no extra quotes are used.

For More Information