|
|
@ -45,9 +45,9 @@ It can be chosen using:
|
|
|
|
Extending the default configuration
|
|
|
|
Extending the default configuration
|
|
|
|
-----------------------------------
|
|
|
|
-----------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
When writing a custom configuration file, you don't need to redefine every rule.
|
|
|
|
When writing a custom configuration file, you don't need to redefine every
|
|
|
|
Just extend the ``default`` configuration (or any already-existing configuration
|
|
|
|
rule. Just extend the ``default`` configuration (or any already-existing
|
|
|
|
file).
|
|
|
|
configuration file).
|
|
|
|
|
|
|
|
|
|
|
|
For instance, if you just want to disable the ``comments-indentation`` rule,
|
|
|
|
For instance, if you just want to disable the ``comments-indentation`` rule,
|
|
|
|
your file could look like this:
|
|
|
|
your file could look like this:
|
|
|
@ -105,8 +105,8 @@ Problems detected by yamllint can be raised either as errors or as warnings.
|
|
|
|
The CLI will output them (with different colors when using the ``colored``
|
|
|
|
The CLI will output them (with different colors when using the ``colored``
|
|
|
|
output format, or ``auto`` when run from a terminal).
|
|
|
|
output format, or ``auto`` when run from a terminal).
|
|
|
|
|
|
|
|
|
|
|
|
By default the script will exit with a return code ``1`` *only when* there is one or
|
|
|
|
By default the script will exit with a return code ``1`` *only when* there is
|
|
|
|
more error(s).
|
|
|
|
one or more error(s).
|
|
|
|
|
|
|
|
|
|
|
|
However if strict mode is enabled with the ``-s`` (or ``--strict``) option, the
|
|
|
|
However if strict mode is enabled with the ``-s`` (or ``--strict``) option, the
|
|
|
|
return code will be:
|
|
|
|
return code will be:
|
|
|
|