]> source.dussan.org Git - sonarqube.git/commitdiff
Add l10n for new Java rules
authorEvgeny Mandrikov <mandrikov@gmail.com>
Sat, 8 Sep 2012 08:33:57 +0000 (14:33 +0600)
committerEvgeny Mandrikov <mandrikov@gmail.com>
Sat, 8 Sep 2012 08:33:57 +0000 (14:33 +0600)
This is required until SONAR-3783 not resolved.

plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/squidjava.properties
plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/squidjava/rules/squid/MaximumLackOfCohesionOfMethods.html [new file with mode: 0644]
plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/squidjava/rules/squid/ParsingError.html [new file with mode: 0644]

index d74bc3c0bf58c062c8d943a41017ea3c1eb624fa..65f6325119e033c4edcc64f6728f3354651c661d 100644 (file)
@@ -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 (file)
index 0000000..f195f9a
--- /dev/null
@@ -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 (file)
index 0000000..1b8470c
--- /dev/null
@@ -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>