diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2010-09-16 10:02:33 +0000 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2010-09-16 10:02:33 +0000 |
commit | 17976169eb50d6c8d715285ee40bcb3b9ca12bed (patch) | |
tree | c02bee292ba789fb49898c174b6825f84e62f46b /sonar-plugin-api/src/test/resources/org/sonar | |
parent | 11cd0a981e8ea5c00170ae4eb929e636dee0ca7e (diff) | |
download | sonarqube-17976169eb50d6c8d715285ee40bcb3b9ca12bed.tar.gz sonarqube-17976169eb50d6c8d715285ee40bcb3b9ca12bed.zip |
undo: some unit tests have been wrongly moved to sonar-deprecated
Diffstat (limited to 'sonar-plugin-api/src/test/resources/org/sonar')
3 files changed, 62 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/rules/StandardRuleXmlFormatTest/deprecated.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/rules/StandardRuleXmlFormatTest/deprecated.xml new file mode 100644 index 00000000000..44cf56d228a --- /dev/null +++ b/sonar-plugin-api/src/test/resources/org/sonar/api/rules/StandardRuleXmlFormatTest/deprecated.xml @@ -0,0 +1,11 @@ +<rules> + <rule key="org.sonar.it.checkstyle.MethodsCountCheck" priority="CRITICAL"> + <name>Methods Count Check</name> + <configKey>Checker/TreeWalker/org.sonar.it.checkstyle.MethodsCountCheck</configKey> + <category name="Usability"/> + <description>Count methods.</description> + <param key="minMethodsCount" type="i"> + <description>Le nombre minimum de méthodes. 10 par défaut.</description> + </param> + </rule> +</rules>
\ No newline at end of file diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/rules/StandardRuleXmlFormatTest/rules.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/rules/StandardRuleXmlFormatTest/rules.xml new file mode 100644 index 00000000000..4d807407097 --- /dev/null +++ b/sonar-plugin-api/src/test/resources/org/sonar/api/rules/StandardRuleXmlFormatTest/rules.xml @@ -0,0 +1,40 @@ +<rules> + <rule> + <!-- with exhaustive fields --> + <key>com.puppycrawl.tools.checkstyle.checks.naming.LocalVariableNameCheck</key> + <name>Local Variable Name</name> + <description> + <![CDATA[Checks that local, non-final variable names conform to a format specified by the format property.]]> + </description> + <isoCategory>Efficiency</isoCategory> + <configKey>Checker/TreeWalker/LocalVariableName</configKey> + <priority>BLOCKER</priority> + <cardinality>MULTIPLE</cardinality> + <param> + <key>tokens</key> + <description> + <![CDATA[ + Controls whether the check applies to variable declarations or catch clause parameters + ]]> + </description> + </param> + <param> + <key>ignore</key> + <description> + Ignore ? + </description> + <defaultValue>false</defaultValue> + </param> + </rule> + + + <rule> + <!-- with only required fields --> + <key>com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck</key> + <name>Magic Number</name> + <description> + <![CDATA[Checks for magic numbers.]]> + </description> + <isoCategory>Maintainability</isoCategory> + </rule> +</rules>
\ No newline at end of file diff --git a/sonar-plugin-api/src/test/resources/org/sonar/api/rules/StandardRuleXmlFormatTest/utf8.xml b/sonar-plugin-api/src/test/resources/org/sonar/api/rules/StandardRuleXmlFormatTest/utf8.xml new file mode 100644 index 00000000000..6197e030057 --- /dev/null +++ b/sonar-plugin-api/src/test/resources/org/sonar/api/rules/StandardRuleXmlFormatTest/utf8.xml @@ -0,0 +1,11 @@ +<rules> + <rule> + <key>com.puppycrawl.tools.checkstyle.checks.naming.LocalVariableNameCheck</key> + <priority>BLOCKER</priority> + <configKey>Checker/TreeWalker/LocalVariableName</configKey> + <name>M & M</name> + <description> + <![CDATA[éà&]]> + </description> + </rule> +</rules> |