diff --git a/pmd/rulesets/internal/dogfood-goal.xml b/pmd/rulesets/internal/dogfood-goal.xml index 5d596ce7b3..125bce3c4a 100644 --- a/pmd/rulesets/internal/dogfood-goal.xml +++ b/pmd/rulesets/internal/dogfood-goal.xml @@ -12,6 +12,8 @@ .*lang/.*/ast/.*.java .*cppast/.*.java + + diff --git a/pmd/rulesets/internal/dogfood.xml b/pmd/rulesets/internal/dogfood.xml index e798fd58f6..c398e609b5 100644 --- a/pmd/rulesets/internal/dogfood.xml +++ b/pmd/rulesets/internal/dogfood.xml @@ -20,6 +20,8 @@ EmptyCatchBlock --> + + diff --git a/pmd/rulesets/internal/pmdspecific.xml b/pmd/rulesets/internal/pmdspecific.xml new file mode 100644 index 0000000000..fa24695aec --- /dev/null +++ b/pmd/rulesets/internal/pmdspecific.xml @@ -0,0 +1,63 @@ + + + + These rules check for problems that are specific to the PMD codebase and may not be applicable to other projects. + + + replace o.getClass().equals(MyClass.class) with o instanceof MyClass. Make sure MyClass doesn't have descendants + 3 + + + + + + + + + + + replace MyClass.class.equals(o.getClass()) with o instanceof MyClass. Make sure MyClass doesn't have descendants + 3 + + + + + + + + + +