aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-l10n-en-plugin/src
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2012-06-20 12:24:27 +0200
committerFabrice Bellingard <bellingard@gmail.com>2012-06-25 14:28:24 +0200
commit3c35737da4a6c229f73cf7201412542efa180210 (patch)
treeb92e2c366192d26fc9052f4a65494c1c9e80bb25 /plugins/sonar-l10n-en-plugin/src
parent3f770e492aef9eb4ce0e38d28ea13ebe712d8757 (diff)
downloadsonarqube-3c35737da4a6c229f73cf7201412542efa180210.tar.gz
sonarqube-3c35737da4a6c229f73cf7201412542efa180210.zip
SONAR-3496, SONAR-3497 & SONAR-3498 Add new rules for Java
=> Those rules are the ones pulled out from the SQALE plugin and put in an independant lib called "sonar-common-rules"
Diffstat (limited to 'plugins/sonar-l10n-en-plugin/src')
-rw-r--r--plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/java.properties16
-rw-r--r--plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/java/rules/common-java/DuplicatedBlocks.html4
-rw-r--r--plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/java/rules/common-java/InsufficientBranchCoverage.html4
-rw-r--r--plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/java/rules/common-java/InsufficientCommentDensity.html4
-rw-r--r--plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/java/rules/common-java/InsufficientLineCoverage.html4
5 files changed, 32 insertions, 0 deletions
diff --git a/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/java.properties b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/java.properties
new file mode 100644
index 00000000000..f896099bfd7
--- /dev/null
+++ b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/java.properties
@@ -0,0 +1,16 @@
+#
+# IMPORTANT: the bundle for the Java plugin (and the corresponding rule descriptions in the "java" fodler) are currently located here
+# because the sonar-java-plugin is currently a Core plugin. They should be moved out and placed inside the Java Plugin once
+# (or if one day) the plugin is pulled out of the Sonar Platform to be an independant plugin (like any other language plugin).
+#
+
+rule.common-java.InsufficientBranchCoverage.name=Insufficient branch coverage by unit tests
+rule.common-java.InsufficientBranchCoverage.param.minimumBranchCoverageRatio=The minimum required branch coverage ratio.
+
+rule.common-java.InsufficientCommentDensity.name=Insufficient comment density
+rule.common-java.InsufficientCommentDensity.param.minimumCommentDensity=The minimum required comment density.
+
+rule.common-java.DuplicatedBlocks.name=Duplicated blocks
+
+rule.common-java.InsufficientLineCoverage.name=Insufficient line coverage by unit tests
+rule.common-java.InsufficientLineCoverage.param.minimumLineCoverageRatio=The minimum required line coverage ratio.
diff --git a/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/java/rules/common-java/DuplicatedBlocks.html b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/java/rules/common-java/DuplicatedBlocks.html
new file mode 100644
index 00000000000..5dc95b807cd
--- /dev/null
+++ b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/java/rules/common-java/DuplicatedBlocks.html
@@ -0,0 +1,4 @@
+<p>
+ A violation is created on a file as soon as there is a block of duplicated code on this file.
+ It gives the number of blocks in the file.
+</p> \ No newline at end of file
diff --git a/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/java/rules/common-java/InsufficientBranchCoverage.html b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/java/rules/common-java/InsufficientBranchCoverage.html
new file mode 100644
index 00000000000..d1918ce81d3
--- /dev/null
+++ b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/java/rules/common-java/InsufficientBranchCoverage.html
@@ -0,0 +1,4 @@
+<p>
+ A violation is created on a file as soon as the branch coverage on this file is less than the required threshold.
+ It gives the number of lines to be covered in order to reach the required threshold.
+</p> \ No newline at end of file
diff --git a/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/java/rules/common-java/InsufficientCommentDensity.html b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/java/rules/common-java/InsufficientCommentDensity.html
new file mode 100644
index 00000000000..88ec282b86b
--- /dev/null
+++ b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/java/rules/common-java/InsufficientCommentDensity.html
@@ -0,0 +1,4 @@
+<p>
+ A violation is created on a file as soon as the comment density coverage on this file is less than the required threshold.
+ It gives the number of comment lines to be written in order to reach the required threshold.
+</p> \ No newline at end of file
diff --git a/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/java/rules/common-java/InsufficientLineCoverage.html b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/java/rules/common-java/InsufficientLineCoverage.html
new file mode 100644
index 00000000000..28482859aa7
--- /dev/null
+++ b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/java/rules/common-java/InsufficientLineCoverage.html
@@ -0,0 +1,4 @@
+<p>
+ A violation is created on a file as soon as the line coverage on this file is less than the required threshold.
+ It gives the number of lines to be covered in order to reach the required threshold.
+</p> \ No newline at end of file