From 3d898527ee30883a6b7f9503a4a39189d7330686 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Thu, 26 May 2022 18:45:30 +0200 Subject: [PATCH] [html] Add additional file extensions htm, xhtml, xht, shtml xhtml and xht is application/xhtml+xml shtml is text/html with server side includes --- .../java/net/sourceforge/pmd/lang/html/HtmlLanguageModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmd-html/src/main/java/net/sourceforge/pmd/lang/html/HtmlLanguageModule.java b/pmd-html/src/main/java/net/sourceforge/pmd/lang/html/HtmlLanguageModule.java index d3389fe55c..e9614c1e3e 100644 --- a/pmd-html/src/main/java/net/sourceforge/pmd/lang/html/HtmlLanguageModule.java +++ b/pmd-html/src/main/java/net/sourceforge/pmd/lang/html/HtmlLanguageModule.java @@ -13,7 +13,7 @@ public final class HtmlLanguageModule extends BaseLanguageModule { public static final String TERSE_NAME = "html"; public HtmlLanguageModule() { - super(NAME, null, TERSE_NAME, "html"); + super(NAME, null, TERSE_NAME, "html", "htm", "xhtml", "xht", "shtml"); addDefaultVersion("", new HtmlHandler()); }