Skip to content

Commit

Permalink
chore: missing rubricoptions
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandezcuesta committed Nov 21, 2024
1 parent b9aaf4f commit 186dcd9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions yamllint/rules/key_ordering.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,19 @@
It also allows one to ignore certain keys by setting the ``ignored-keys``
(PCRE regexes list) option.
.. rubric:: Options
* ``ignored-keys`` is a list of PCRE regexes defining a set of keys to be ignored while ordering, if
they match any regex. Default is an empty list.
.. rubric:: Default values (when enabled)
.. code-block:: yaml
rules:
key-ordering:
ignored-keys: []
.. rubric:: Examples
#. With ``key-ordering: {}``
Expand Down

0 comments on commit 186dcd9

Please sign in to comment.