docs: Add default values to rules with options

This commit is contained in:
Benjamin Wuethrich
2020-07-21 00:58:42 -04:00
parent b80997eba6
commit 1e21948337
16 changed files with 156 additions and 0 deletions

View File

@@ -28,6 +28,17 @@ Use this rule to control the number of spaces inside braces (``{`` and ``}``).
* ``max-spaces-inside-empty`` defines the maximal number of spaces allowed
inside empty braces.
.. rubric:: Default values
.. code-block:: yaml
rules:
braces:
min-spaces-inside: 0
max-spaces-inside: 0
min-spaces-inside-empty: -1
max-spaces-inside-empty: -1
.. rubric:: Examples
#. With ``braces: {min-spaces-inside: 0, max-spaces-inside: 0}``