Author: hboutemy Date: Tue Jan 20 21:51:36 2015 New Revision: 1653380 URL: http://svn.apache.org/r1653380 Log: [MCHECKSTYLE-282] added info on ruleset used in report intro
Modified: maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/AbstractCheckstyleReport.java maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReportGenerator.java maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/checkstyle-report.properties maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/checkstyle-report_de.properties maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/checkstyle-report_fr.properties maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/checkstyle-report_pt_BR.properties Modified: maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/AbstractCheckstyleReport.java URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/AbstractCheckstyleReport.java?rev=1653380&r1=1653379&r2=1653380&view=diff ============================================================================== --- maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/AbstractCheckstyleReport.java (original) +++ maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/AbstractCheckstyleReport.java Tue Jan 20 21:51:36 2015 @@ -670,7 +670,7 @@ public abstract class AbstractCheckstyle private void generateMainReport( CheckstyleResults results, ResourceBundle bundle ) { CheckstyleReportGenerator generator = - new CheckstyleReportGenerator( getSink(), bundle, project.getBasedir(), siteTool ); + new CheckstyleReportGenerator( getSink(), bundle, project.getBasedir(), siteTool, configLocation ); generator.setLog( getLog() ); generator.setEnableRulesSummary( enableRulesSummary ); Modified: maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReportGenerator.java URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReportGenerator.java?rev=1653380&r1=1653379&r2=1653380&view=diff ============================================================================== --- maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReportGenerator.java (original) +++ maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReportGenerator.java Tue Jan 20 21:51:36 2015 @@ -75,7 +75,10 @@ public class CheckstyleReportGenerator private final IconTool iconTool; - public CheckstyleReportGenerator( Sink sink, ResourceBundle bundle, File basedir, SiteTool siteTool ) + private final String ruleset; + + public CheckstyleReportGenerator( Sink sink, ResourceBundle bundle, File basedir, SiteTool siteTool, + String ruleset ) { this.bundle = bundle; @@ -85,6 +88,8 @@ public class CheckstyleReportGenerator this.siteTool = siteTool; + this.ruleset = ruleset; + this.enableRulesSummary = true; this.enableSeveritySummary = true; this.enableFilesSummary = true; @@ -176,6 +181,8 @@ public class CheckstyleReportGenerator sink.text( " " ); sink.text( version ); } + sink.text( " " ); + sink.text( String.format( bundle.getString( "report.checkstyle.ruleset" ), ruleset ) ); sink.text( "." ); if ( enableRSS ) Modified: maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/checkstyle-report.properties URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/checkstyle-report.properties?rev=1653380&r1=1653379&r2=1653380&view=diff ============================================================================== --- maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/checkstyle-report.properties [ISO-8859-1] (original) +++ maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/checkstyle-report.properties [ISO-8859-1] Tue Jan 20 21:51:36 2015 @@ -39,6 +39,7 @@ report.checkstyle.details=Details report.checkstyle.summary=Summary report.checkstyle.rule=Rule report.checkstyle.rules=Rules +report.checkstyle.ruleset=with %s ruleset report.checkstyle.rule.category=Category report.checkstyle.severity_title=Checkstyle errors in severity report.checkstyle.norule=No rules found Modified: maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/checkstyle-report_de.properties URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/checkstyle-report_de.properties?rev=1653380&r1=1653379&r2=1653380&view=diff ============================================================================== --- maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/checkstyle-report_de.properties [ISO-8859-1] (original) +++ maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/checkstyle-report_de.properties [ISO-8859-1] Tue Jan 20 21:51:36 2015 @@ -39,5 +39,6 @@ report.checkstyle.details=Details report.checkstyle.summary=Zusammenfassung report.checkstyle.rule=Regel report.checkstyle.rules=Regeln +report.checkstyle.ruleset=mit %s Regeln report.checkstyle.severity_title=Checkstyle-Ergebnisse mit Schweregrad report.checkstyle.norule=Keine Regeln definiert Modified: maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/checkstyle-report_fr.properties URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/checkstyle-report_fr.properties?rev=1653380&r1=1653379&r2=1653380&view=diff ============================================================================== --- maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/checkstyle-report_fr.properties [ISO-8859-1] (original) +++ maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/checkstyle-report_fr.properties [ISO-8859-1] Tue Jan 20 21:51:36 2015 @@ -39,6 +39,7 @@ report.checkstyle.details=Détails report.checkstyle.summary=Résumé report.checkstyle.rule=Règle report.checkstyle.rules=Règles +report.checkstyle.ruleset=avec les règles %s report.checkstyle.rule.category=Catégorie report.checkstyle.severity_title=Erreurs Checkstyle par sévérité report.checkstyle.norule=Pas de règle trouvée Modified: maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/checkstyle-report_pt_BR.properties URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/checkstyle-report_pt_BR.properties?rev=1653380&r1=1653379&r2=1653380&view=diff ============================================================================== --- maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/checkstyle-report_pt_BR.properties [ISO-8859-1] (original) +++ maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/checkstyle-report_pt_BR.properties [ISO-8859-1] Tue Jan 20 21:51:36 2015 @@ -39,5 +39,6 @@ report.checkstyle.details=Detalhes report.checkstyle.summary=Sumário report.checkstyle.rule=Regra report.checkstyle.rules=Regras +report.checkstyle.ruleset=con %s regras report.checkstyle.severity_title=Erros do Checkstyle por severidade report.checkstyle.norule=Nenhuma regra encontrada