]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dt-bindings: yamllint: Enable quoted string check
authorRob Herring <robh@kernel.org>
Fri, 13 Jan 2023 18:38:27 +0000 (12:38 -0600)
committerRob Herring <robh@kernel.org>
Thu, 24 Aug 2023 16:43:57 +0000 (11:43 -0500)
yamllint has a quoted string check. Enable the check aligned with the
DT schema style which is only using quotes when necessary with the
exception of regex patterns. There's also the frequent occurrence of '/'
which we allow rather than fixing.

Link: https://lore.kernel.org/all/20230324202243.2442956-1-robh@kernel.org/
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/.yamllint

index 4abe9f0a1d460103ee83c392c6df2cb0656c0059..fea5231e1320d67f3ef7d3682107384e2f8b108f 100644 (file)
@@ -1,6 +1,11 @@
 extends: relaxed
 
 rules:
+  quoted-strings:
+    required: only-when-needed
+    extra-allowed:
+      - '[$^,[]'
+      - '^/$'
   line-length:
     # 80 chars should be enough, but don't fail if a line is longer
     max: 110