[docs] Change chdir example value to the default
@@ -39,19 +39,22 @@ The value must be a string, corresponding to a valid directory path.
.. code-block:: json
{
- "chdir": "${project}"
+ "chdir": "${folder:$file_path}"
}
-With the above example, the linter will get invoked from the ``${project}`` directory (see :ref:`Settings Expansion <settings-expansion>` for more info on using variables).
+With the above example,
+the linter will get invoked from the ``${folder}`` directory
+or the file's directory if it is not contained within a project folder
+(see :ref:`Settings Expansion <settings-expansion>` for more info on using variables).
.. note::
If the value of ``chdir`` is unspecified (or inaccessible), then:
- - If linting an unsaved file, the directory is unchanged
-
- If linting a saved file, the directory is set to that of the linted file
+ - If linting an unsaved file, the directory is unchanged
+
excludes
--------
