Use this rule to control the number of spaces after hyphens (-).

Parameters

max-spaces-after
Defines the maximal number of spaces allowed after hyphens.

Examples

With max-spaces-after = 1 the following code snippet would PASS:

    - first list:
        - a
        - b
    - - 1
      - 2
      - 3

the following code snippets would FAIL:

    -  first list:
         - a
         - b

With max-spaces-after = 3 the following code snippet would PASS:

    -   key
    -  key2
    - key42

the following code snippet would FAIL:

    -    key
    -   key2
    -  key42