diff mbox series

[oe-layersetup,1/5] kas: yamllint: documents should have an explicit start

Message ID 20250816003620.2112669-2-rs@ti.com
State Accepted
Delegated to: Ryan Eatmon
Headers show
Series kas: yamllint cleanup effort | expand

Commit Message

Randolph Sapp Aug. 16, 2025, 12:36 a.m. UTC
From: Randolph Sapp <rs@ti.com>

YAML files should start with '---'. This is optional, but usually
recommended and yamllint checks for it by default.

Signed-off-by: Randolph Sapp <rs@ti.com>
---
 src/xslt/kas-templates.xslt | 3 ++-
 src/xslt/kas.xslt           | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/src/xslt/kas-templates.xslt b/src/xslt/kas-templates.xslt
index 57277f1..f7aa24c 100644
--- a/src/xslt/kas-templates.xslt
+++ b/src/xslt/kas-templates.xslt
@@ -1,7 +1,8 @@ 
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 <xsl:output method="text" omit-xml-declaration="yes" indent="no"/>
 
-<xsl:template match="/">header:
+<xsl:template match="/">---
+header:
   version: 17
 
 <xsl:apply-templates select='bblayers-conf-template'/>
diff --git a/src/xslt/kas.xslt b/src/xslt/kas.xslt
index 17c9f1d..6a0b251 100644
--- a/src/xslt/kas.xslt
+++ b/src/xslt/kas.xslt
@@ -1,7 +1,8 @@ 
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 <xsl:output method="text" omit-xml-declaration="yes" indent="no"/>
 <xsl:template match="/">
-<xsl:text>header:
+<xsl:text>---
+header:
   version: 17
   includes:
 </xsl:text>