From 8a6dea686cd99b1d109f792de21a6dc6e40004a7 Mon Sep 17 00:00:00 2001 From: Evgeny Mandrikov Date: Sat, 8 Sep 2012 14:33:57 +0600 Subject: [PATCH] Add l10n for new Java rules This is required until SONAR-3783 not resolved. --- .../src/main/resources/org/sonar/l10n/squidjava.properties | 5 +++++ .../rules/squid/MaximumLackOfCohesionOfMethods.html | 4 ++++ .../org/sonar/l10n/squidjava/rules/squid/ParsingError.html | 4 ++++ 3 files changed, 13 insertions(+) create mode 100644 plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/squidjava/rules/squid/MaximumLackOfCohesionOfMethods.html create mode 100644 plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/squidjava/rules/squid/ParsingError.html 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 @@ +

+Detects classes that should be reviewed because of a high LCOM4 metric. +They possibly violate the Single Responsibility Principle. +

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 @@ +

+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. +

-- 2.39.5