From 2f423117c1f1e49d115169cd4a5e1722d68fabfe Mon Sep 17 00:00:00 2001 From: Andrew Imeson Date: Thu, 24 Mar 2022 05:23:39 -0400 Subject: [PATCH] docs: Attempt to clarify configuration file location Closes #96, Closes #212 --- docs/configuration.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/configuration.rst b/docs/configuration.rst index ba455c9..3c1e0c8 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -14,11 +14,11 @@ To use a custom configuration file, use the ``-c`` option: If ``-c`` is not provided, yamllint will look for a configuration file in the following locations (by order of preference): -- ``.yamllint``, ``.yamllint.yaml`` or ``.yamllint.yml`` in the current working - directory -- the file referenced by ``$YAMLLINT_CONFIG_FILE``, if set -- ``$XDG_CONFIG_HOME/yamllint/config`` -- ``~/.config/yamllint/config`` +- a file named ``.yamllint``, ``.yamllint.yaml``, or ``.yamllint.yml`` in the + current working directory +- a filename referenced by ``$YAMLLINT_CONFIG_FILE``, if set +- a file named ``$XDG_CONFIG_HOME/yamllint/config`` or + ``~/.config/yamllint/config``, if present Finally if no config file is found, the default configuration is applied.