Allow disabling yamllint checks using comments

Implement problem report disabling with comments in YAML source, for
instance:

    # The following mapping contains the same key twice,
    # but I know what I'm doing:
    key: value 1
    key: value 2  # yamllint disable-line rule:key-duplicates

or:

    # yamllint disable rule:colons
    - Lorem       : ipsum
      dolor       : sit amet,
      consectetur : adipiscing elit
    # yamllint enable rule:colons

Closes: #8
This commit is contained in:
Adrien Vergé
2016-06-26 20:07:40 +02:00
parent cdd094220c
commit 0eb310e102
4 changed files with 456 additions and 2 deletions

View File

@@ -23,5 +23,6 @@ Table of contents
quickstart
configuration
rules
disable_with_comments
development
text_editors