Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion example/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
10 changes: 4 additions & 6 deletions example/checkstyle-suppressions.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<?xml version="1.0"?>

<?xml version="1.0" ?>
<!DOCTYPE suppressions PUBLIC
"-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
"https://checkstyle.org/dtds/suppressions_1_2.dtd">

"-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
"https://checkstyle.org/dtds/suppressions_1_2.dtd">
<suppressions>
<suppress files="Bar.java" checks="UnusedImports" />
</suppressions>
</suppressions>
13 changes: 6 additions & 7 deletions example/checkstyle.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
"https://checkstyle.org/dtds/configuration_1_3.dtd">
<?xml version="1.0" ?>
<!DOCTYPE module PUBLIC "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
"https://checkstyle.org/dtds/configuration_1_3.dtd">
<module name="Checker">

<module name="TreeWalker">
<module name="UnusedImports"/>
<module name="UnusedImports" />
</module>

<module name="LineLength">
<property name="max" value="20"/>
<property name="max" value="20" />
</module>

<module name="SuppressionFilter">
<property name="file" value="checkstyle-suppressions.xml"/>
<property name="file" value="checkstyle-suppressions.xml" />
</module>

</module>
2 changes: 1 addition & 1 deletion example/ktlint-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8" ?>
<baseline version="1.0">
<file name="src/hello.kt">
<error line="1" column="1" source="import-ordering" />
Expand Down
8 changes: 5 additions & 3 deletions example/pmd.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<?xml version="1.0"?>
<ruleset name="pmd-ruleset"
<?xml version="1.0" ?>
<ruleset
name="pmd-ruleset"
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd">
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd"
>

<description>Error</description>

Expand Down
38 changes: 38 additions & 0 deletions example/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example/prettier.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
2 changes: 1 addition & 1 deletion example/spotbugs-exclude.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<FindBugsFilter>
<!-- Exclude all warnings for the Foo.readFile() method -->
<Match>
Expand Down