Use this rule to forbid any string values that are not quoted. You can also enforce the type of the quote used using the quote-type option (single}, double or any).

Note: Multi-line strings (with {@code |} or {@code >}) will not be checked.

Examples

With quoted-strings: {quote-type: any} the following code snippet would PASS:

    foo: "bar"
    bar: 'foo'
    number: 123
    boolean: true

the following code snippet would FAIL:

    foo: bar