From 0fa74aacfbdddf87fd68ce5d3c4dc503e018a31f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Fournier?= Date: Wed, 23 May 2018 19:41:04 +0200 Subject: [PATCH] Improve test readability --- .../java/rule/codestyle/xml/ShortVariable.xml | 34 +++++++++---------- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/codestyle/xml/ShortVariable.xml b/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/codestyle/xml/ShortVariable.xml index 36f80055c6..d25c0bf0a9 100644 --- a/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/codestyle/xml/ShortVariable.xml +++ b/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/codestyle/xml/ShortVariable.xml @@ -3,10 +3,9 @@ xmlns="http://pmd.sourceforge.net/rule-tests" 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"> + - + param 1 + - + none 0 + - + local 1 + - + for 0 + - + field 1 + - + catch(Exception e) is OK 0 + ShortVariable false positive with for-each loops 0 @@ -93,6 +88,7 @@ public class Foo { } ]]> + ShortVariable within for-each loops 1 @@ -106,6 +102,7 @@ public class Foo { } ]]> + #1361 ShortVariable configuration - 7 characters 7 @@ -120,6 +117,7 @@ public class ShortVariable { } ]]> + #1361 ShortVariable configuration - 1 characters 1