From b71b7a917c89f05adaf73bd7b9f872802c89784a Mon Sep 17 00:00:00 2001 From: moritz Date: Fri, 16 Jan 2026 21:05:58 +0100 Subject: [PATCH] Fix #1046 - handle xsd as xml --- internal/core/format.go | 2 +- internal/lint/lint.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/core/format.go b/internal/core/format.go index fb3cb194..645e5893 100755 --- a/internal/core/format.go +++ b/internal/core/format.go @@ -88,7 +88,7 @@ var FormatByExtension = map[string][]string{ `\.(?:swift)$`: {".c", "code"}, `\.(?:ts|tsx)$`: {".ts", "code"}, `\.(?:txt)$`: {".txt", "text"}, - `\.(?:xml)$`: {".xml", "markup"}, + `\.(?:xml|xsd)$`: {".xml", "markup"}, `\.(?:yaml|yml)$`: {".yml", "data"}, `\.(?:json)$`: {".json", "data"}, `\.(?:toml)$`: {".toml", "data"}, diff --git a/internal/lint/lint.go b/internal/lint/lint.go index dd5e28a9..67415e53 100755 --- a/internal/lint/lint.go +++ b/internal/lint/lint.go @@ -197,7 +197,7 @@ func (l *Linter) lintFile(src string) lintResult { err = l.lintMDX(file) case ".rst": err = l.lintRST(file) - case ".xml": + case ".xml", ".xsd": err = l.lintXML(file) case ".dita": err = l.lintDITA(file)