Use this rule to control that the YAML documents do not contain a key. Key names can be defined as a regular expression.

Parameters

key-name
Regular expression that matches forbidden key names

Examples

With key-name = [tT]e.*t the following code snippet would PASS:

    Test1: value
    tesT: {key1: 4, key2: 8}

the following code snippets would FAIL:

    test: value
    tesT: {Test: 4, key2: 8}