diff --git a/example/BUILD.bazel b/example/BUILD.bazel index b8d151ee..065feef0 100644 --- a/example/BUILD.bazel +++ b/example/BUILD.bazel @@ -48,7 +48,10 @@ js_library( js_library( name = "prettierrc", srcs = ["prettier.config.cjs"], - deps = [":node_modules/prettier-plugin-sql"], + deps = [ + ":node_modules/@prettier/plugin-xml", + ":node_modules/prettier-plugin-sql", + ], ) # NB: this alias does NOT cause Bazel's Loading phase to load the tools/BUILD file. diff --git a/example/checkstyle-suppressions.xml b/example/checkstyle-suppressions.xml index 9a898278..2698430f 100644 --- a/example/checkstyle-suppressions.xml +++ b/example/checkstyle-suppressions.xml @@ -1,9 +1,7 @@ - - + - + "-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN" + "https://checkstyle.org/dtds/suppressions_1_2.dtd"> - \ No newline at end of file + diff --git a/example/checkstyle.xml b/example/checkstyle.xml index 2d72ff40..be07a56a 100644 --- a/example/checkstyle.xml +++ b/example/checkstyle.xml @@ -1,19 +1,18 @@ - - + + - + - + - + diff --git a/example/ktlint-baseline.xml b/example/ktlint-baseline.xml index 6790a2d0..92b57662 100644 --- a/example/ktlint-baseline.xml +++ b/example/ktlint-baseline.xml @@ -1,4 +1,4 @@ - + diff --git a/example/pmd.xml b/example/pmd.xml index d2f246bf..205a93b8 100644 --- a/example/pmd.xml +++ b/example/pmd.xml @@ -1,8 +1,10 @@ - - + + xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd" +> Error diff --git a/example/pnpm-lock.yaml b/example/pnpm-lock.yaml index f2b9107c..1ad502a3 100644 --- a/example/pnpm-lock.yaml +++ b/example/pnpm-lock.yaml @@ -16,6 +16,9 @@ devDependencies: "@eslint/js": specifier: ^9.16.0 version: 9.16.0 + "@prettier/plugin-xml": + specifier: ^0.10.0 + version: 0.10.0 "@types/node": specifier: ^18 version: 18.0.0 @@ -291,6 +294,16 @@ packages: fastq: 1.15.0 dev: true + /@prettier/plugin-xml@0.10.0: + resolution: + { + integrity: sha512-8Pmkik2wH4sT6cVdeRN3MpzniFxzOWH0fLRnLJwMXSPMyz9ZKdVm4bg5oAWG96LABue0/W4cCr+oXuEslTTAUA==, + } + dependencies: + "@xml-tools/parser": 1.0.11 + prettier: 2.8.8 + dev: true + /@types/estree@1.0.6: resolution: { @@ -467,6 +480,15 @@ packages: eslint-visitor-keys: 4.2.0 dev: true + /@xml-tools/parser@1.0.11: + resolution: + { + integrity: sha512-aKqQ077XnR+oQtHJlrAflaZaL7qZsulWc/i/ZEooar5JiWj1eLt0+Wg28cpa+XLney107wXqneC+oG1IZvxkTA==, + } + dependencies: + chevrotain: 7.1.1 + dev: true + /acorn-jsx@5.3.2(acorn@8.14.0): resolution: { @@ -653,6 +675,15 @@ packages: supports-color: 7.2.0 dev: true + /chevrotain@7.1.1: + resolution: + { + integrity: sha512-wy3mC1x4ye+O+QkEinVJkPf5u2vsrDIYW9G7ZuwFl6v/Yu0LwUuT2POsb+NUWApebyxfkQq6+yDfRExbnI5rcw==, + } + dependencies: + regexp-to-ast: 0.5.0 + dev: true + /color-convert@1.9.3: resolution: { @@ -1765,6 +1796,13 @@ packages: ret: 0.1.15 dev: true + /regexp-to-ast@0.5.0: + resolution: + { + integrity: sha512-tlbJqcMHnPKI9zSrystikWKwHkBqu2a/Sgw01h3zFjvYrMxEDYHzzoMZnUrbIfpTFEsoRnnviOXNCzFiSc54Qw==, + } + dev: true + /require-from-string@2.0.2: resolution: { diff --git a/example/prettier.config.cjs b/example/prettier.config.cjs index d4639164..54803077 100644 --- a/example/prettier.config.cjs +++ b/example/prettier.config.cjs @@ -3,7 +3,7 @@ */ const config = { tabWidth: 2, - plugins: [require("prettier-plugin-sql")], + plugins: [require("prettier-plugin-sql"), require("@prettier/plugin-xml")], }; module.exports = config; diff --git a/example/spotbugs-exclude.xml b/example/spotbugs-exclude.xml index e8f84e3d..05bf9537 100644 --- a/example/spotbugs-exclude.xml +++ b/example/spotbugs-exclude.xml @@ -1,4 +1,4 @@ - +