-
Notifications
You must be signed in to change notification settings - Fork 320
/
pmd-marquez.xml
24 lines (23 loc) · 1.35 KB
/
pmd-marquez.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0"?>
<ruleset name="marquez"
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 https://pmd.sourceforge.io/ruleset_2_0_0.xsd">
<description>
Rules for Debugging Marquez
</description>
<rule ref="category/java/errorprone.xml">
<exclude name="EmptyCatchBlock"/> <!-- OpenLineage should not fail Spark job -->
<exclude name="UseProperClassLoader"/>
<exclude name="AvoidInstanceofChecksInCatchClause" /> <!-- necessary for catching Scala exceptions in Java -->
<exclude name="BeanMembersShouldSerialize" />
<exclude name="AvoidFieldNameMatchingMethodName" />
<exclude name="AvoidDuplicateLiterals" /> <!-- duplicates exist in generated OpenLineage class within JsonPropertyOrder annotation -->
<exclude name="CloseResource" /> <!--- OpenLineage Transport classes wrongly identified as closeable resources -->
</rule>
<rule ref="category/java/bestpractices.xml">
<exclude name="GuardLogStatement" />
<exclude name="JUnitAssertionsShouldIncludeMessage" />
<exclude name="JUnitTestContainsTooManyAsserts" /> <!-- rule would require significant tests refactor while bringing a little improvement -->
</rule>
</ruleset>