Remove unnecessary CDATA for test descriptions
This commit is contained in:
@ -4,9 +4,7 @@
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://pmd.sourceforge.net/rule-tests http://pmd.sourceforge.net/rule-tests_1_0_0.xsd">
|
||||
<test-code>
|
||||
<description><![CDATA[
|
||||
missing argument
|
||||
]]></description>
|
||||
<description>missing argument</description>
|
||||
<expected-problems>1</expected-problems>
|
||||
<expected-linenumbers>9</expected-linenumbers>
|
||||
<code><![CDATA[
|
||||
@ -24,9 +22,7 @@ public class Foo {
|
||||
]]></code>
|
||||
</test-code>
|
||||
<test-code>
|
||||
<description><![CDATA[
|
||||
too many arguments
|
||||
]]></description>
|
||||
<description>too many arguments</description>
|
||||
<expected-problems>1</expected-problems>
|
||||
<expected-linenumbers>9</expected-linenumbers>
|
||||
<code><![CDATA[
|
||||
@ -44,9 +40,7 @@ public class Foo {
|
||||
]]></code>
|
||||
</test-code>
|
||||
<test-code>
|
||||
<description><![CDATA[
|
||||
Logger without problems
|
||||
]]></description>
|
||||
<description>Logger without problems</description>
|
||||
<expected-problems>0</expected-problems>
|
||||
<code><![CDATA[
|
||||
import org.slf4j.Logger;
|
||||
@ -63,9 +57,7 @@ public class Foo {
|
||||
]]></code>
|
||||
</test-code>
|
||||
<test-code>
|
||||
<description><![CDATA[
|
||||
ignore the exception param
|
||||
]]></description>
|
||||
<description>ignore the exception param</description>
|
||||
<expected-problems>0</expected-problems>
|
||||
<code><![CDATA[
|
||||
import org.slf4j.Logger;
|
||||
@ -204,7 +196,7 @@ public class TestBug1551
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
|
||||
|
||||
<test-code>
|
||||
<description>#365 [java] InvalidSlf4jMessageFormat: false positive with pre-incremented variable</description>
|
||||
<expected-problems>0</expected-problems>
|
||||
@ -224,7 +216,7 @@ public class Foo
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
|
||||
|
||||
<test-code>
|
||||
<description>#721 NPE in PMD 5.8.1 InvalidSlf4jMessageFormat</description>
|
||||
<expected-problems>0</expected-problems>
|
||||
@ -239,7 +231,7 @@ public class Foo
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
|
||||
|
||||
<test-code>
|
||||
<description>#1291 [java] InvalidSlf4jMessageFormat false positive: too many arguments with string concatenation operator</description>
|
||||
<expected-problems>0</expected-problems>
|
||||
@ -380,10 +372,9 @@ public final class Main {
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
<description><![CDATA[
|
||||
log4j2: missing argument
|
||||
]]></description>
|
||||
<description>log4j2: missing argument</description>
|
||||
<expected-problems>1</expected-problems>
|
||||
<expected-linenumbers>9</expected-linenumbers>
|
||||
<code><![CDATA[
|
||||
@ -400,10 +391,9 @@ public class Foo {
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
<description><![CDATA[
|
||||
log4j2: too many arguments
|
||||
]]></description>
|
||||
<description>log4j2: too many arguments</description>
|
||||
<expected-problems>1</expected-problems>
|
||||
<expected-linenumbers>9</expected-linenumbers>
|
||||
<code><![CDATA[
|
||||
@ -420,10 +410,9 @@ public class Foo {
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
<description><![CDATA[
|
||||
log4j2: Logger without problems
|
||||
]]></description>
|
||||
<description>log4j2: Logger without problems</description>
|
||||
<expected-problems>0</expected-problems>
|
||||
<code><![CDATA[
|
||||
import org.apache.logging.log4j.Logger;
|
||||
@ -439,10 +428,9 @@ public class Foo {
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
<description><![CDATA[
|
||||
log4j2: ignore the exception param
|
||||
]]></description>
|
||||
<description>log4j2: ignore the exception param</description>
|
||||
<expected-problems>0</expected-problems>
|
||||
<code><![CDATA[
|
||||
import org.apache.logging.log4j.Logger;
|
||||
@ -581,7 +569,7 @@ public class TestBug1551
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
|
||||
|
||||
<test-code>
|
||||
<description>Log4j2: false positive with pre-incremented variable</description>
|
||||
<expected-problems>0</expected-problems>
|
||||
@ -601,7 +589,7 @@ public class Foo
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
|
||||
|
||||
<test-code>
|
||||
<description>NPE in PMD 5.8.1 Log4j2</description>
|
||||
<expected-problems>0</expected-problems>
|
||||
@ -616,7 +604,7 @@ public class Foo
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
|
||||
|
||||
<test-code>
|
||||
<description>Log4j2 false positive: too many arguments with string concatenation operator</description>
|
||||
<expected-problems>0</expected-problems>
|
||||
|
@ -4,9 +4,7 @@
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://pmd.sourceforge.net/rule-tests http://pmd.sourceforge.net/rule-tests_1_0_0.xsd">
|
||||
<test-code>
|
||||
<description><![CDATA[
|
||||
ok
|
||||
]]></description>
|
||||
<description>ok</description>
|
||||
<expected-problems>0</expected-problems>
|
||||
<code><![CDATA[
|
||||
import org.apache.log4j.Logger;
|
||||
@ -15,10 +13,9 @@ public class Foo {
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
<description><![CDATA[
|
||||
two loggers
|
||||
]]></description>
|
||||
<description>two loggers</description>
|
||||
<expected-problems>1</expected-problems>
|
||||
<code><![CDATA[
|
||||
import org.apache.log4j.Logger;
|
||||
@ -28,10 +25,9 @@ public class Foo {
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
<description><![CDATA[
|
||||
different logger for inner class
|
||||
]]></description>
|
||||
<description>different logger for inner class</description>
|
||||
<expected-problems>0</expected-problems>
|
||||
<code><![CDATA[
|
||||
import org.apache.log4j.Logger;
|
||||
@ -43,10 +39,9 @@ public class Foo {
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
<description><![CDATA[
|
||||
ok, fixing NPE bug
|
||||
]]></description>
|
||||
<description>ok, fixing NPE bug</description>
|
||||
<expected-problems>0</expected-problems>
|
||||
<code><![CDATA[
|
||||
public @interface Foo {
|
||||
@ -54,6 +49,7 @@ public @interface Foo {
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
<description>https://github.com/pmd/pmd/pull/42: Add SLF4j Logger type</description>
|
||||
<expected-problems>0</expected-problems>
|
||||
@ -64,6 +60,7 @@ public class Foo {
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
<description>https://github.com/pmd/pmd/pull/42: Add SLF4j Logger type: Two Loggers</description>
|
||||
<expected-problems>1</expected-problems>
|
||||
@ -75,6 +72,7 @@ public class Foo {
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
<description>Add log4j2 Logger type</description>
|
||||
<expected-problems>0</expected-problems>
|
||||
@ -85,6 +83,7 @@ public class Foo {
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
<description>Logger type log4j2: Two Loggers</description>
|
||||
<expected-problems>1</expected-problems>
|
||||
|
Reference in New Issue
Block a user