aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2012-09-08 14:33:57 +0600
committerEvgeny Mandrikov <mandrikov@gmail.com>2012-09-08 14:33:57 +0600
commit8a6dea686cd99b1d109f792de21a6dc6e40004a7 (patch)
treed7825719ee62e7be515636e2c93f83e96038cba5
parent0f0f21380bd6c5bbd688fbc018788578d1655802 (diff)
downloadsonarqube-8a6dea686cd99b1d109f792de21a6dc6e40004a7.tar.gz
sonarqube-8a6dea686cd99b1d109f792de21a6dc6e40004a7.zip
Add l10n for new Java rules
This is required until SONAR-3783 not resolved.
-rw-r--r--plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/squidjava.properties5
-rw-r--r--plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/squidjava/rules/squid/MaximumLackOfCohesionOfMethods.html4
-rw-r--r--plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/squidjava/rules/squid/ParsingError.html4
3 files changed, 13 insertions, 0 deletions
diff --git a/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/squidjava.properties b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/squidjava.properties
index d74bc3c0bf5..65f6325119e 100644
--- a/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/squidjava.properties
+++ b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/squidjava.properties
@@ -31,3 +31,8 @@ rule.squid.UnusedProtectedMethod.name=Unused protected method
rule.squid.CommentedOutCodeLine.name=Avoid commented-out lines of code
rule.squid.CycleBetweenPackages.name=Avoid cycle between java packages
+
+rule.squid.ParsingError.name=Java parser failure
+
+rule.squid.MaximumLackOfCohesionOfMethods.name=Avoid too high LCOM4
+rule.squid.MaximumLackOfCohesionOfMethods.param.max=Maximum LCOM4 allowed.
diff --git a/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/squidjava/rules/squid/MaximumLackOfCohesionOfMethods.html b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/squidjava/rules/squid/MaximumLackOfCohesionOfMethods.html
new file mode 100644
index 00000000000..f195f9a4233
--- /dev/null
+++ b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/squidjava/rules/squid/MaximumLackOfCohesionOfMethods.html
@@ -0,0 +1,4 @@
+<p>
+Detects classes that should be reviewed because of a high LCOM4 metric.
+They possibly violate the Single Responsibility Principle.
+</p>
diff --git a/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/squidjava/rules/squid/ParsingError.html b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/squidjava/rules/squid/ParsingError.html
new file mode 100644
index 00000000000..1b8470ce184
--- /dev/null
+++ b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/squidjava/rules/squid/ParsingError.html
@@ -0,0 +1,4 @@
+<p>
+When the Java parser fails, it is possible to record the failure as a violation on the file.
+This way, not only it is possible to track the number of files that do not parse but also to easily find out why they do not parse.
+</p>