Clarify two examples in linter_settings.rst.
The examples in the "styles" section now show that the
linter-specific settings need to be nested under the "linters" key,
similar to the example of yamllint in the "selector" section.
This example is now consistent with the example for "selector".
@@ -195,6 +195,7 @@ Example: this changes the appearance of shellcheck warnings:
.. code-block:: json
{
+ "linters": {
"shellcheck": {
"styles": [
{
@@ -205,12 +206,13 @@ Example: this changes the appearance of shellcheck warnings:
]
}
}
+ }
Example: this changes the appearance of whitespace warnings in flake8:
.. code-block:: json
-
{
+ "linters": {
"flake8": {
"styles": [
{
@@ -222,6 +224,7 @@ Example: this changes the appearance of whitespace warnings in flake8:
]
}
}
+ }
.. note::
