Doc: Add a configuration example in README

This commit is contained in:
Adrien Vergé 2016-02-19 09:29:05 +01:00
parent 64caa95b6a
commit 2f75e92a66
2 changed files with 17 additions and 1 deletions

View File

@ -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

View File

@ -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