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.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Blocking |
Message | While scanning a quoted scalar, an unexpected end of stream was found. |
Code | YAMLSYNTAX_V051 |
Type | Validation |
Rule System | Syntax |
Broad Category | Scalars |
Tags | yaml 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.