diff --git a/README.rst b/README.rst index b54604a..24816c2 100644 --- a/README.rst +++ b/README.rst @@ -64,3 +64,19 @@ Usage # Output a parsable format (for syntax checking in editors like Vim, emacs...) yamllint -f parsable file.yml + +Configuration example +^^^^^^^^^^^^^^^^^^^^^ + +.. code:: yaml + + extends: default + + rules: + # 80 chars should be enough, but don't fail if a line is longer + line-length: + max: 80 + level: warning + + # don't bother me with this rule + indentation: disable diff --git a/docs/configuration.rst b/docs/configuration.rst index ec60111..419806c 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -50,7 +50,7 @@ strict on block sequences indentation: extends: default rules: - # 80 should be enough, but don't fail if a line is longer + # 80 chars should be enough, but don't fail if a line is longer line-length: max: 80 level: warning