Skip to content

Commit 80f1c3c

Browse files
committed
dt-bindings: yamllint: Enable quoted string check
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>
1 parent 4569820 commit 80f1c3c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Documentation/devicetree/bindings/.yamllint

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
extends: relaxed
22

33
rules:
4+
quoted-strings:
5+
required: only-when-needed
6+
extra-allowed:
7+
- '[$^,[]'
8+
- '^/$'
49
line-length:
510
# 80 chars should be enough, but don't fail if a line is longer
611
max: 110

0 commit comments

Comments
 (0)