├── Jenkinsfile ├── src ├── main │ ├── resources │ │ ├── result │ │ │ ├── taglib │ │ │ ├── priorities-summary_de.properties │ │ │ ├── priorities-summary_ja.properties │ │ │ ├── fixed_ja.properties │ │ │ ├── fixed_de.properties │ │ │ ├── trend-summary_de.properties │ │ │ ├── trend-summary_ja.properties │ │ │ ├── priorities-summary.jelly │ │ │ ├── priority-graph.jelly │ │ │ ├── priorities-summary_nl.properties │ │ │ ├── priorities-summary_zh_TW.properties │ │ │ ├── trend-summary.jelly │ │ │ ├── trend-summary_nl.properties │ │ │ ├── trend-summary_fr.properties │ │ │ ├── priorities-summary_fr.properties │ │ │ ├── fixed_zh_TW.properties │ │ │ ├── trend-summary_zh_TW.properties │ │ │ └── fixed.jelly │ │ ├── util │ │ │ ├── taglib │ │ │ ├── summary.properties │ │ │ ├── trend.properties │ │ │ ├── summary_de.properties │ │ │ ├── failed_de.properties │ │ │ ├── health_de.properties │ │ │ ├── trend_de.properties │ │ │ ├── advanced_de.properties │ │ │ ├── thresholds_de.properties │ │ │ ├── defaultEncoding_de.properties │ │ │ ├── summary_ja.properties │ │ │ ├── defaultEncoding.properties │ │ │ ├── failed.properties │ │ │ ├── trend_ja.properties │ │ │ ├── advanced.properties │ │ │ ├── failed.jelly │ │ │ ├── advancedMaven.jelly │ │ │ ├── trend.jelly │ │ │ ├── defaultEncoding_ja.properties │ │ │ ├── repeatable.jelly │ │ │ ├── health.properties │ │ │ ├── summary.jelly │ │ │ ├── defaultEncoding.jelly │ │ │ ├── advanced.jelly │ │ │ ├── sourceLink.jelly │ │ │ ├── failed_ja.properties │ │ │ ├── advanced_ja.properties │ │ │ ├── graphtype.jelly │ │ │ ├── health_ja.properties │ │ │ ├── defaultEncoding_fr.properties │ │ │ ├── summary_zh_TW.properties │ │ │ ├── trend_zh_TW.properties │ │ │ ├── trend_fr.properties │ │ │ ├── defaultEncoding_zh_TW.properties │ │ │ ├── failed_zh_TW.properties │ │ │ ├── advanced_zh_TW.properties │ │ │ └── health.jelly │ │ ├── hudson │ │ │ └── plugins │ │ │ │ └── analysis │ │ │ │ ├── views │ │ │ │ ├── TabDetail │ │ │ │ │ ├── types.properties │ │ │ │ │ ├── categories.properties │ │ │ │ │ ├── origin.properties │ │ │ │ │ ├── packages_de.properties │ │ │ │ │ ├── files_de.properties │ │ │ │ │ ├── packages_ja.properties │ │ │ │ │ ├── modules_de.properties │ │ │ │ │ ├── details_ja.properties │ │ │ │ │ ├── types_de.properties │ │ │ │ │ ├── types_ja.properties │ │ │ │ │ ├── files_ja.properties │ │ │ │ │ ├── categories_de.properties │ │ │ │ │ ├── modules_ja.properties │ │ │ │ │ ├── categories_ja.properties │ │ │ │ │ ├── details_de.properties │ │ │ │ │ ├── origin_de.properties │ │ │ │ │ ├── warnings_de.properties │ │ │ │ │ ├── warnings_ja.properties │ │ │ │ │ ├── table.jelly │ │ │ │ │ ├── fixed.jelly │ │ │ │ │ ├── fixed-table.jelly │ │ │ │ │ ├── all.jelly │ │ │ │ │ ├── new.jelly │ │ │ │ │ ├── high.jelly │ │ │ │ │ ├── low.jelly │ │ │ │ │ ├── normal.jelly │ │ │ │ │ ├── index.jelly │ │ │ │ │ ├── details.jelly │ │ │ │ │ ├── packages_zh_TW.properties │ │ │ │ │ ├── details_zh_TW.properties │ │ │ │ │ ├── files_zh_TW.properties │ │ │ │ │ ├── types_zh_TW.properties │ │ │ │ │ ├── modules_zh_TW.properties │ │ │ │ │ ├── categories_zh_TW.properties │ │ │ │ │ ├── modules.jelly │ │ │ │ │ ├── warnings_zh_TW.properties │ │ │ │ │ ├── files.jelly │ │ │ │ │ ├── authors.jelly │ │ │ │ │ ├── packages.jelly │ │ │ │ │ ├── types.jelly │ │ │ │ │ └── categories.jelly │ │ │ │ ├── ErrorDetail │ │ │ │ │ ├── index_de.properties │ │ │ │ │ └── index.jelly │ │ │ │ ├── SourceDetail │ │ │ │ │ ├── index.properties │ │ │ │ │ ├── index_de.properties │ │ │ │ │ ├── index_ja.properties │ │ │ │ │ ├── index.jelly │ │ │ │ │ └── index_zh_TW.properties │ │ │ │ ├── FixedWarningsDetail │ │ │ │ │ ├── index_de.properties │ │ │ │ │ ├── index_ja.properties │ │ │ │ │ ├── index.jelly │ │ │ │ │ └── index_zh_TW.properties │ │ │ │ ├── WarningsCountColumn │ │ │ │ │ └── column.jelly │ │ │ │ ├── PrioritiesDetail │ │ │ │ │ └── index.jelly │ │ │ │ ├── ConsoleDetail │ │ │ │ │ └── index.jelly │ │ │ │ ├── AbstractAnnotationsDetail │ │ │ │ │ └── index.jelly │ │ │ │ └── AuthorDetail │ │ │ │ │ └── index.jelly │ │ │ │ ├── core │ │ │ │ ├── AbstractProjectAction │ │ │ │ │ ├── floatingBox.properties │ │ │ │ │ ├── floatingBox_ja.properties │ │ │ │ │ ├── floatingBox_de.properties │ │ │ │ │ ├── floatingBox_es_ES.properties │ │ │ │ │ ├── floatingBox_fr.properties │ │ │ │ │ ├── floatingBox_nl.properties │ │ │ │ │ ├── floatingBox_nb_NO.properties │ │ │ │ │ ├── floatingBox_sv_SE.properties │ │ │ │ │ ├── floatingBox.jelly │ │ │ │ │ └── floatingBox_zh_TW.properties │ │ │ │ ├── MavenResultAction │ │ │ │ │ └── summary.jelly │ │ │ │ ├── AbstractResultAction │ │ │ │ │ └── summary.jelly │ │ │ │ ├── GlobalSettings │ │ │ │ │ ├── global.properties │ │ │ │ │ ├── global.jelly │ │ │ │ │ └── global_de.properties │ │ │ │ ├── BuildResult │ │ │ │ │ └── index.jelly │ │ │ │ └── UpgradeNotifier │ │ │ │ │ └── message.jelly │ │ │ │ ├── dashboard │ │ │ │ ├── AbstractWarningsTablePortlet │ │ │ │ │ ├── portlet_de.properties │ │ │ │ │ ├── config_de.properties │ │ │ │ │ ├── portlet_ja.properties │ │ │ │ │ ├── config_ja.properties │ │ │ │ │ ├── config.jelly │ │ │ │ │ ├── config_zh_TW.properties │ │ │ │ │ └── portlet_zh_TW.properties │ │ │ │ └── AbstractWarningsGraphPortlet │ │ │ │ │ ├── main.properties │ │ │ │ │ ├── portlet.properties │ │ │ │ │ ├── config.properties │ │ │ │ │ ├── main_de.properties │ │ │ │ │ ├── config_de.properties │ │ │ │ │ ├── portlet_de.properties │ │ │ │ │ ├── portlet_ja.properties │ │ │ │ │ ├── main_ja.properties │ │ │ │ │ ├── config_ja.properties │ │ │ │ │ ├── portlet.jelly │ │ │ │ │ ├── main.jelly │ │ │ │ │ ├── config.jelly │ │ │ │ │ ├── main_zh_TW.properties │ │ │ │ │ ├── portlet_zh_TW.properties │ │ │ │ │ └── config_zh_TW.properties │ │ │ │ ├── Messages_de.properties │ │ │ │ ├── Messages_fr.properties │ │ │ │ ├── graph │ │ │ │ ├── GraphConfigurationView │ │ │ │ │ ├── index_de.properties │ │ │ │ │ ├── index.properties │ │ │ │ │ ├── index_ja.properties │ │ │ │ │ └── index_fr.properties │ │ │ │ └── TrendDetails │ │ │ │ │ └── index.jelly │ │ │ │ └── Messages_nl.properties │ │ └── index.jelly │ ├── webapp │ │ ├── icons │ │ │ ├── NONE.png │ │ │ ├── FIXED.png │ │ │ ├── HEALTH.png │ │ │ ├── TOTALS.png │ │ │ ├── PRIORITY.png │ │ │ ├── spinner.gif │ │ │ ├── DIFFERENCE.png │ │ │ └── clearpixel.gif │ │ └── yui │ │ │ └── dispatcher-license.txt │ └── java │ │ └── hudson │ │ └── plugins │ │ └── analysis │ │ ├── util │ │ ├── SerializableUrlGenerator.java │ │ ├── SerializableToolTipGenerator.java │ │ ├── NullBlamer.java │ │ ├── NullModuleDetector.java │ │ ├── ToolTipProvider.java │ │ ├── Blamer.java │ │ ├── Validator.java │ │ ├── NullLogger.java │ │ ├── model │ │ │ ├── AnnotationStream.java │ │ │ └── JavaPackage.java │ │ ├── FileInputStreamFactory.java │ │ ├── AbstractPackageDetector.java │ │ ├── SaxSetup.java │ │ ├── PackageDetector.java │ │ ├── PackageDetectors.java │ │ ├── ToolTipAreaRenderer.java │ │ ├── StringPluginLogger.java │ │ ├── AreaRenderer.java │ │ ├── ToolTipBoxRenderer.java │ │ ├── SecureDigester.java │ │ ├── LoggerFactory.java │ │ ├── ToolTipBuilder.java │ │ ├── BoxRenderer.java │ │ ├── CsharpNamespaceDetector.java │ │ ├── Compatibility.java │ │ ├── JavaPackageDetector.java │ │ ├── HtmlPrinter.java │ │ └── TrendReportHeightValidator.java │ │ ├── graph │ │ ├── NullGraph.java │ │ ├── ColorPalette.java │ │ ├── EmptyGraph.java │ │ ├── TotalsGraph.java │ │ └── LocalDateLabel.java │ │ ├── dashboard │ │ ├── AbstractPortlet.java │ │ └── DefaultGraph.java │ │ ├── core │ │ ├── AnalysisCorePlugin.java │ │ ├── AnnotationParser.java │ │ ├── MavenProjectChecker.java │ │ ├── Settings.java │ │ ├── AntBuilderCheck.java │ │ ├── SerializableSettings.java │ │ ├── HealthDescriptor.java │ │ ├── UpgradeNotifier.java │ │ ├── ResultAction.java │ │ └── AnnotationsClassifier.java │ │ └── tokens │ │ ├── AbstractResultTokenMacro.java │ │ ├── AbstractAnnotationsCountTokenMacro.java │ │ ├── AbstractNewAnnotationsTokenMacro.java │ │ └── AbstractFixedAnnotationsTokenMacro.java └── test │ ├── resources │ └── hudson │ │ └── plugins │ │ └── analysis │ │ ├── util │ │ ├── l10n.properties │ │ ├── ActionBinding.cs │ │ ├── ActionBinding-Original-Formatting.cs │ │ ├── no-name-pom.xml │ │ ├── pom.xml │ │ ├── complicated-package-declaration.txt │ │ ├── MavenJavaTest.txt │ │ ├── MANIFEST.MF │ │ └── MANIFEST-NAME.MF │ │ └── views │ │ └── AbortException.txt │ └── java │ └── hudson │ └── plugins │ └── analysis │ ├── util │ ├── TrendReportHeightValidatorTest.java │ ├── LoggerFactoryTest.java │ ├── HtmlPrinterTest.java │ └── EncodingValidatorTest.java │ └── core │ ├── SerializableSettingsTest.java │ └── IsOverriddenTest.java ├── german.sh ├── .gitignore ├── release.bat ├── .settings ├── org.moreunit.prefs ├── org.eclipse.m2e.core.prefs └── org.eclipse.core.resources.prefs ├── release.sh ├── debug.sh ├── .travis.yml ├── clean.sh ├── go.sh ├── README.md ├── .pmd ├── .checkstyle ├── Jenkinsfile.local └── License.txt /Jenkinsfile: -------------------------------------------------------------------------------- 1 | buildPlugin() -------------------------------------------------------------------------------- /src/main/resources/result/taglib: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/main/resources/util/taglib: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /german.sh: -------------------------------------------------------------------------------- 1 | mvn stapler:i18n -Dlocale=de 2 | 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | *.eml 3 | .idea 4 | .DS_Store 5 | /work -------------------------------------------------------------------------------- /release.bat: -------------------------------------------------------------------------------- 1 | mvn -B -Djava.net.id=drulli release:prepare release:perform 2 | -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/views/TabDetail/types.properties: -------------------------------------------------------------------------------- 1 | undefined=(none) -------------------------------------------------------------------------------- /.settings/org.moreunit.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.moreunit.preferences.version=2 3 | -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/views/ErrorDetail/index_de.properties: -------------------------------------------------------------------------------- 1 | Errors=Fehler 2 | -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/views/TabDetail/categories.properties: -------------------------------------------------------------------------------- 1 | undefined=(none) 2 | -------------------------------------------------------------------------------- /src/main/resources/result/priorities-summary_de.properties: -------------------------------------------------------------------------------- 1 | Total=Gesamt 2 | Summary=Zusammenfassung 3 | -------------------------------------------------------------------------------- /src/main/resources/result/priorities-summary_ja.properties: -------------------------------------------------------------------------------- 1 | Total=\u5408\u8a08 2 | Summary=\u8981\u7d04 3 | -------------------------------------------------------------------------------- /src/test/resources/hudson/plugins/analysis/util/l10n.properties: -------------------------------------------------------------------------------- 1 | Bundle-Name=My Bundle 2 | Bundle-Vendor=My Vendor -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/views/SourceDetail/index.properties: -------------------------------------------------------------------------------- 1 | sourcedetail.header=Content of file {0} -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/core/AbstractProjectAction/floatingBox.properties: -------------------------------------------------------------------------------- 1 | enable.graph=Enable {0} 2 | -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/views/TabDetail/origin.properties: -------------------------------------------------------------------------------- 1 | commit-id=Commit ID 2 | Build=First occurrence -------------------------------------------------------------------------------- /src/main/resources/util/summary.properties: -------------------------------------------------------------------------------- 1 | error.message=During parsing an error has been reported. -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/views/FixedWarningsDetail/index_de.properties: -------------------------------------------------------------------------------- 1 | Fixed\ Warnings=Behobene Warnungen 2 | -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/views/SourceDetail/index_de.properties: -------------------------------------------------------------------------------- 1 | sourcedetail.header=Inhalt der Datei {0} 2 | -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/views/TabDetail/packages_de.properties: -------------------------------------------------------------------------------- 1 | Total=Gesamt 2 | Distribution=Verteilung 3 | -------------------------------------------------------------------------------- /src/main/resources/util/trend.properties: -------------------------------------------------------------------------------- 1 | configure=You can define the default values for the trend graph in a separate view. 2 | -------------------------------------------------------------------------------- /src/main/webapp/icons/NONE.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/analysis-core-plugin/master/src/main/webapp/icons/NONE.png -------------------------------------------------------------------------------- /release.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | git pull 4 | git push 5 | mvn -B -Djava.net.id=drulli release:prepare release:perform 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/main/webapp/icons/FIXED.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/analysis-core-plugin/master/src/main/webapp/icons/FIXED.png -------------------------------------------------------------------------------- /src/main/webapp/icons/HEALTH.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/analysis-core-plugin/master/src/main/webapp/icons/HEALTH.png -------------------------------------------------------------------------------- /src/main/webapp/icons/TOTALS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/analysis-core-plugin/master/src/main/webapp/icons/TOTALS.png -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/views/TabDetail/files_de.properties: -------------------------------------------------------------------------------- 1 | File=Datei 2 | Total=Gesamt 3 | Distribution=Verteilung 4 | -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/views/TabDetail/packages_ja.properties: -------------------------------------------------------------------------------- 1 | Total=\u5408\u8a08 2 | Distribution=\u5206\u5e03 3 | -------------------------------------------------------------------------------- /src/main/resources/result/fixed_ja.properties: -------------------------------------------------------------------------------- 1 | File=\u30d5\u30a1\u30a4\u30eb 2 | Warning\ Type=\u8b66\u544a\u306e\u30bf\u30a4\u30d7 3 | -------------------------------------------------------------------------------- /src/main/webapp/icons/PRIORITY.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/analysis-core-plugin/master/src/main/webapp/icons/PRIORITY.png -------------------------------------------------------------------------------- /src/main/webapp/icons/spinner.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/analysis-core-plugin/master/src/main/webapp/icons/spinner.gif -------------------------------------------------------------------------------- /src/main/resources/util/summary_de.properties: -------------------------------------------------------------------------------- 1 | error.message=Beim Analysieren der Dateien sind Fehler aufgetreten. 2 | -------------------------------------------------------------------------------- /src/main/webapp/icons/DIFFERENCE.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/analysis-core-plugin/master/src/main/webapp/icons/DIFFERENCE.png -------------------------------------------------------------------------------- /src/main/webapp/icons/clearpixel.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/analysis-core-plugin/master/src/main/webapp/icons/clearpixel.gif -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/views/TabDetail/modules_de.properties: -------------------------------------------------------------------------------- 1 | Module=Projekt 2 | Total=Gesamt 3 | Distribution=Verteilung 4 | -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/views/FixedWarningsDetail/index_ja.properties: -------------------------------------------------------------------------------- 1 | Fixed\ Warnings=\u4fee\u6b63\u3055\u308c\u305f\u8b66\u544a 2 | -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/views/SourceDetail/index_ja.properties: -------------------------------------------------------------------------------- 1 | sourcedetail.header=\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\uff1a {0} -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/views/TabDetail/details_ja.properties: -------------------------------------------------------------------------------- 1 | Priority=\u91cd\u8981\u5ea6 2 | Category=\u30ab\u30c6\u30b4\u30ea\u30fc 3 | -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/views/TabDetail/types_de.properties: -------------------------------------------------------------------------------- 1 | undefined=(ohne) 2 | Type=Typ 3 | Total=Gesamt 4 | Distribution=Verteilung 5 | -------------------------------------------------------------------------------- /src/main/resources/util/failed_de.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/analysis-core-plugin/master/src/main/resources/util/failed_de.properties -------------------------------------------------------------------------------- /src/main/resources/util/health_de.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/analysis-core-plugin/master/src/main/resources/util/health_de.properties -------------------------------------------------------------------------------- /src/main/resources/util/trend_de.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/analysis-core-plugin/master/src/main/resources/util/trend_de.properties -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/views/TabDetail/types_ja.properties: -------------------------------------------------------------------------------- 1 | Type=\u30bf\u30a4\u30d7 2 | Total=\u5408\u8a08 3 | Distribution=\u5206\u5e03 4 | -------------------------------------------------------------------------------- /src/main/resources/util/advanced_de.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/analysis-core-plugin/master/src/main/resources/util/advanced_de.properties -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/views/TabDetail/files_ja.properties: -------------------------------------------------------------------------------- 1 | File=\u30d5\u30a1\u30a4\u30eb 2 | Total=\u5408\u8a08 3 | Distribution=\u5206\u5e03 4 | -------------------------------------------------------------------------------- /src/main/resources/util/thresholds_de.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/analysis-core-plugin/master/src/main/resources/util/thresholds_de.properties -------------------------------------------------------------------------------- /.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | #Wed Jun 22 15:14:09 CEST 2011 2 | activeProfiles= 3 | eclipse.preferences.version=1 4 | resolveWorkspaceProjects=true 5 | version=1 6 | -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/views/TabDetail/categories_de.properties: -------------------------------------------------------------------------------- 1 | undefined=(ohne) 2 | Category=Kategorie 3 | Total=Gesamt 4 | Distribution=Verteilung 5 | -------------------------------------------------------------------------------- /src/main/resources/result/fixed_de.properties: -------------------------------------------------------------------------------- 1 | File=Datei 2 | Warning\ Type=Warnungstyp 3 | Line=Zeile 4 | Priority=Priorität 5 | Type=Typ 6 | Category=Kategorie 7 | -------------------------------------------------------------------------------- /debug.sh: -------------------------------------------------------------------------------- 1 | export MAVEN_OPTS="-Xmx1024m -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n" 2 | rm -rf $JENKINS_HOME/plugins/analysis-core* 3 | mvn hpi:run 4 | -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/views/TabDetail/modules_ja.properties: -------------------------------------------------------------------------------- 1 | Module=\u30e2\u30b8\u30e5\u30fc\u30eb 2 | Total=\u5408\u8a08 3 | Distribution=\u5206\u5e03 4 | -------------------------------------------------------------------------------- /src/main/resources/util/defaultEncoding_de.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/analysis-core-plugin/master/src/main/resources/util/defaultEncoding_de.properties -------------------------------------------------------------------------------- /src/main/resources/util/summary_ja.properties: -------------------------------------------------------------------------------- 1 | error.message=\u89e3\u6790\u4e2d\u306b \u30a8\u30e9\u30fc \u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002 -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: java 2 | jdk: oraclejdk8 3 | script: mvn clean verify jacoco:prepare-agent test jacoco:report 4 | after_success: 5 | - bash <(curl -s https://codecov.io/bash) -------------------------------------------------------------------------------- /clean.sh: -------------------------------------------------------------------------------- 1 | rm -rf $JENKINS_HOME/plugins/analysis-core* 2 | 3 | mvn clean install 4 | cp -f target/analysis-core.hpi $JENKINS_HOME/plugins/ 5 | 6 | cd $JENKINS_HOME 7 | ./go.sh 8 | -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/views/TabDetail/categories_ja.properties: -------------------------------------------------------------------------------- 1 | Category=\u30ab\u30c6\u30b4\u30ea\u30fc 2 | Total=\u5408\u8a08 3 | Distribution=\u5206\u5e03 4 | -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/dashboard/AbstractWarningsTablePortlet/portlet_de.properties: -------------------------------------------------------------------------------- 1 | Job=Job 2 | Total=Gesamt 3 | 4 | High=Hoch 5 | Normal=Normal 6 | Low=Niedrig 7 | -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/Messages_de.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/analysis-core-plugin/master/src/main/resources/hudson/plugins/analysis/Messages_de.properties -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/Messages_fr.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/analysis-core-plugin/master/src/main/resources/hudson/plugins/analysis/Messages_fr.properties -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/core/AbstractProjectAction/floatingBox_ja.properties: -------------------------------------------------------------------------------- 1 | Configure=\u8A2D\u5B9A 2 | Enlarge=\u62E1\u5927 3 | enable.graph={0} \u3092\u6709\u52B9\u5316 4 | -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/dashboard/AbstractWarningsTablePortlet/config_de.properties: -------------------------------------------------------------------------------- 1 | Name=Name 2 | Hide\ zero\ warnings\ projects=Zeige nur Projekte an, die Warnungen haben 3 | -------------------------------------------------------------------------------- /src/test/resources/hudson/plugins/analysis/util/ActionBinding.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/analysis-core-plugin/master/src/test/resources/hudson/plugins/analysis/util/ActionBinding.cs -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/dashboard/AbstractWarningsTablePortlet/portlet_ja.properties: -------------------------------------------------------------------------------- 1 | Job=\u30B8\u30E7\u30D6 2 | Total=\u5408\u8A08 3 | 4 | High=High 5 | Normal=Normal 6 | Low=Low 7 | -------------------------------------------------------------------------------- /src/main/resources/util/defaultEncoding.properties: -------------------------------------------------------------------------------- 1 | description.defaultEncoding=Default encoding when parsing or showing files. \ 2 | Leave this field empty to use the default encoding of the platform. 3 | -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/dashboard/AbstractWarningsGraphPortlet/main.properties: -------------------------------------------------------------------------------- 1 | no.results=There are no results available. Did you enable the plug-in in the jobs that are part of this view? 2 | -------------------------------------------------------------------------------- /src/main/resources/result/trend-summary_de.properties: -------------------------------------------------------------------------------- 1 | Warnings\ Trend=Vergleich mit letzter Analyse 2 | All\ Warnings=Alle Warnungen 3 | New\ Warnings=Neue Warnungen 4 | Fixed\ Warnings=Behobene Warnungen 5 | -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/dashboard/AbstractWarningsGraphPortlet/portlet.properties: -------------------------------------------------------------------------------- 1 | no.results=There are no results available. Did you enable the plug-in in the jobs that are part of this view? 2 | -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/views/TabDetail/details_de.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/analysis-core-plugin/master/src/main/resources/hudson/plugins/analysis/views/TabDetail/details_de.properties -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/views/TabDetail/origin_de.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/analysis-core-plugin/master/src/main/resources/hudson/plugins/analysis/views/TabDetail/origin_de.properties -------------------------------------------------------------------------------- /src/main/resources/hudson/plugins/analysis/views/TabDetail/warnings_de.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/analysis-core-plugin/master/src/main/resources/hudson/plugins/analysis/views/TabDetail/warnings_de.properties -------------------------------------------------------------------------------- /src/main/resources/index.jelly: -------------------------------------------------------------------------------- 1 |
12 |
18 |
20 |
23 |
AnnotationStream.
16 | */
17 | public AnnotationStream() {
18 | super();
19 |
20 | alias("annotation", FileAnnotation.class);
21 | alias("hudson.plugins.tasks.util.model.LineRange", LineRange.class);
22 | alias("range", LineRange.class);
23 | registerConverter(new HeapSpaceStringConverter(), HIGH_PRIORITY);
24 | registerConverter(new Priority.PriorityConverter(), HIGH_PRIORITY);
25 | addImmutableType(Priority.class);
26 | }
27 | }
28 |
29 |
--------------------------------------------------------------------------------
/src/main/java/hudson/plugins/analysis/core/AnalysisCorePlugin.java:
--------------------------------------------------------------------------------
1 | package hudson.plugins.analysis.core;
2 |
3 | import hudson.Plugin;
4 |
5 | /**
6 | * Provides unique keys for jelly scripts which can be accessed globally with
7 | * ${app.getPlugin('analysis-core')}.
8 | */
9 | public class AnalysisCorePlugin extends Plugin {
10 | /**
11 | * A number that can be used to generate unique ids within a request. This
12 | * will not work for repeatable blocks, but should work for view elements
13 | * that are lazy loaded.
14 | */
15 | private transient int counter;
16 |
17 | /**
18 | * Returns a new key. This number can be used to generate unique ids within
19 | * a request.
20 | *
21 | * @return a new key
22 | */
23 | @SuppressWarnings("PMD.AvoidSynchronizedAtMethodLevel")
24 | public synchronized int getNewId() {
25 | if (counter == Integer.MAX_VALUE) {
26 | counter = 0;
27 | }
28 | return counter++;
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/src/main/java/hudson/plugins/analysis/core/AnnotationParser.java:
--------------------------------------------------------------------------------
1 | package hudson.plugins.analysis.core;
2 |
3 | import java.io.File;
4 | import java.io.Serializable;
5 | import java.lang.reflect.InvocationTargetException;
6 | import java.util.Collection;
7 |
8 | import hudson.plugins.analysis.util.model.FileAnnotation;
9 |
10 | /**
11 | * A parser for annotations.
12 | *
13 | * @author Ulli Hafner
14 | */
15 | public interface AnnotationParser extends Serializable {
16 | /**
17 | * Returns the annotations found in the specified file.
18 | *
19 | * @param file
20 | * the file to parse
21 | * @param moduleName
22 | * name of the maven module
23 | * @return the parsed result (stored in the module instance)
24 | * @throws InvocationTargetException
25 | * if the file could not be parsed (wrap your exception in this exception)
26 | */
27 | Collectiontrue if the specified job type is a maven job, false otherwise
20 | */
21 | public static boolean isMavenProject(@SuppressWarnings("rawtypes") final Class extends AbstractProject> jobType) {
22 | return AbstractMavenProject.class.isAssignableFrom(jobType);
23 | }
24 |
25 | /**
26 | * Creates a new instance of {@link MavenProjectChecker}.
27 | */
28 | private MavenProjectChecker() {
29 | // prevents instantiation
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/src/main/java/hudson/plugins/analysis/tokens/AbstractAnnotationsCountTokenMacro.java:
--------------------------------------------------------------------------------
1 | package hudson.plugins.analysis.tokens;
2 |
3 | import hudson.plugins.analysis.core.BuildResult;
4 | import hudson.plugins.analysis.core.ResultAction;
5 |
6 | /**
7 | * Provides a token that evaluates to the number of annotations found by a
8 | * plug-in.
9 | *
10 | * @author Ulli Hafner
11 | */
12 | public class AbstractAnnotationsCountTokenMacro extends AbstractTokenMacro {
13 | /**
14 | * Creates a new instance of {@link AbstractAnnotationsCountTokenMacro}.
15 | * @param tokenName
16 | * the name of the token
17 | * @param resultActions
18 | * associated actions containing the build result
19 | */
20 | public AbstractAnnotationsCountTokenMacro(final String tokenName,
21 | final Class extends ResultAction extends BuildResult>>... resultActions) {
22 | super(tokenName, resultActions);
23 | }
24 |
25 | @Override
26 | protected String evaluate(final BuildResult result) {
27 | return String.valueOf(result.getNumberOfAnnotations());
28 | }
29 | }
30 |
31 |
--------------------------------------------------------------------------------
/src/main/java/hudson/plugins/analysis/tokens/AbstractNewAnnotationsTokenMacro.java:
--------------------------------------------------------------------------------
1 | package hudson.plugins.analysis.tokens;
2 |
3 | import hudson.plugins.analysis.core.BuildResult;
4 | import hudson.plugins.analysis.core.ResultAction;
5 |
6 | /**
7 | * Provides a token that evaluates to the number of new annotations found by a
8 | * plug-in.
9 | *
10 | * @author Ulli Hafner
11 | */
12 | public class AbstractNewAnnotationsTokenMacro extends AbstractTokenMacro {
13 | /**
14 | * Creates a new instance of {@link AbstractNewAnnotationsTokenMacro}.
15 | * @param tokenName
16 | * the name of the token
17 | * @param resultActions
18 | * associated actions containing the build result
19 | */
20 | public AbstractNewAnnotationsTokenMacro(final String tokenName,
21 | final Class extends ResultAction extends BuildResult>>... resultActions) {
22 | super(tokenName, resultActions);
23 | }
24 |
25 | @Override
26 | protected String evaluate(final BuildResult result) {
27 | return String.valueOf(result.getNumberOfNewWarnings());
28 | }
29 | }
30 |
31 |
--------------------------------------------------------------------------------
/src/main/java/hudson/plugins/analysis/tokens/AbstractFixedAnnotationsTokenMacro.java:
--------------------------------------------------------------------------------
1 | package hudson.plugins.analysis.tokens;
2 |
3 | import hudson.plugins.analysis.core.BuildResult;
4 | import hudson.plugins.analysis.core.ResultAction;
5 |
6 | /**
7 | * Provides a token that evaluates to the number of fixed annotations found by a
8 | * plug-in.
9 | *
10 | * @author Ulli Hafner
11 | */
12 | public class AbstractFixedAnnotationsTokenMacro extends AbstractTokenMacro {
13 | /**
14 | * Creates a new instance of {@link AbstractFixedAnnotationsTokenMacro}.
15 | * @param tokenName
16 | * the name of the token
17 | * @param resultActions
18 | * associated actions containing the build result
19 | */
20 | public AbstractFixedAnnotationsTokenMacro(final String tokenName,
21 | final Class extends ResultAction extends BuildResult>>... resultActions) {
22 | super(tokenName, resultActions);
23 | }
24 |
25 | @Override
26 | protected String evaluate(final BuildResult result) {
27 | return String.valueOf(result.getNumberOfFixedWarnings());
28 | }
29 | }
30 |
31 |
--------------------------------------------------------------------------------
/src/main/resources/result/priorities-summary.jelly:
--------------------------------------------------------------------------------
1 |
4 | | ${%Total} | 10 |${priority.longLocalizedString} | 12 |
| ${it.numberOfAnnotations} | 17 |
19 |
20 |
27 | |
28 |
true no logging statements are written to the console log
14 | */
15 | Boolean getQuietMode();
16 |
17 | /**
18 | * Returns whether a build should be failed if the parsed input file is invalid or corrupted.
19 | *
20 | * @return on true the build will be failed, on false an error message is reported
21 | */
22 | Boolean getFailOnCorrupt();
23 |
24 | /**
25 | * Returns whether author and commit information should be omitted.
26 | *
27 | * @return on true the SCM will not be called to obtain author and commit information,
28 | * on false author and commit information are created
29 | */
30 | Boolean getNoAuthors();
31 | }
32 |
--------------------------------------------------------------------------------
/src/main/java/hudson/plugins/analysis/util/model/JavaPackage.java:
--------------------------------------------------------------------------------
1 | package hudson.plugins.analysis.util.model;
2 |
3 | /**
4 | * A serializable Java Bean class representing a Java package.
5 | *
6 | * @author Ulli Hafner
7 | */
8 | public class JavaPackage extends AnnotationContainer {
9 | /** Unique identifier of this class. */
10 | private static final long serialVersionUID = 4034932648975191723L;
11 | /** Name of this package. */
12 | private String name; // NOPMD: backward compatibility
13 |
14 | /**
15 | * Creates a new instance of JavaPackage.
16 | *
17 | * @param packageName
18 | * the name of this package
19 | */
20 | public JavaPackage(final String packageName) {
21 | super(packageName, Hierarchy.PACKAGE);
22 | }
23 |
24 | /**
25 | * Rebuilds the priorities mapping.
26 | *
27 | * @return the created object
28 | */
29 | private Object readResolve() {
30 | setHierarchy(Hierarchy.PACKAGE);
31 | rebuildMappings();
32 | if (name != null) {
33 | setName(name);
34 | }
35 | return this;
36 | }
37 | }
38 |
39 |
--------------------------------------------------------------------------------
/src/main/resources/result/priority-graph.jelly:
--------------------------------------------------------------------------------
1 |
4 |
5 | | 16 | | 17 |20 | | 21 |24 | | 25 |27 | | 28 |
|
10 | |
16 |
|
19 |
20 |
23 | |
26 |
true if the current build uses ant,
21 | * false otherwise
22 | */
23 | public static boolean isAntBuild(final AbstractBuild, ?> build) {
24 | if (build.getProject() instanceof Project) {
25 | Project, ?> project = (Project, ?>)build.getProject();
26 | for (Builder builder : project.getBuilders()) {
27 | if (builder instanceof Ant) {
28 | return true;
29 | }
30 | }
31 | }
32 | return false;
33 | }
34 |
35 | /**
36 | * Creates a new instance of {@link AntBuilderCheck}.
37 | */
38 | private AntBuilderCheck() {
39 | // prevent instantiation
40 | }
41 | }
42 |
43 |
--------------------------------------------------------------------------------
/src/main/java/hudson/plugins/analysis/core/SerializableSettings.java:
--------------------------------------------------------------------------------
1 | package hudson.plugins.analysis.core;
2 |
3 | import java.io.Serializable;
4 |
5 | /**
6 | * Serializable settings that could be transferred to slaves.
7 | *
8 | * @author Ulli Hafner
9 | */
10 | public class SerializableSettings implements Settings, Serializable {
11 | private static final long serialVersionUID = 2078877884081589761L;
12 |
13 | private final boolean failOnCorrupt;
14 | private final boolean quietMode;
15 | /** @Since 1.88 */
16 | private final Boolean noAuthors;
17 |
18 | /**
19 | * Creates a new instance of {@link SerializableSettings}.
20 | *
21 | * @param original
22 | * the original settings
23 | */
24 | public SerializableSettings(final Settings original) {
25 | failOnCorrupt = original.getFailOnCorrupt();
26 | quietMode = original.getQuietMode();
27 | noAuthors = original.getNoAuthors();
28 | }
29 |
30 | @Override
31 | public Boolean getQuietMode() {
32 | return quietMode;
33 | }
34 |
35 | @Override
36 | public Boolean getFailOnCorrupt() {
37 | return failOnCorrupt;
38 | }
39 |
40 | @Override
41 | public Boolean getNoAuthors() {
42 | return noAuthors;
43 | }
44 | }
45 |
46 |
--------------------------------------------------------------------------------
/src/main/resources/hudson/plugins/analysis/core/AbstractProjectAction/floatingBox_es_ES.properties:
--------------------------------------------------------------------------------
1 | # The MIT License
2 | #
3 | # Copyright (c) 2004-2010, Sun Microsystems, Inc.
4 | #
5 | # Permission is hereby granted, free of charge, to any person obtaining a copy
6 | # of this software and associated documentation files (the "Software"), to deal
7 | # in the Software without restriction, including without limitation the rights
8 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | # copies of the Software, and to permit persons to whom the Software is
10 | # furnished to do so, subject to the following conditions:
11 | #
12 | # The above copyright notice and this permission notice shall be included in
13 | # all copies or substantial portions of the Software.
14 | #
15 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | # THE SOFTWARE.
22 |
23 | Configure=Configurar
24 |
--------------------------------------------------------------------------------
/src/main/resources/hudson/plugins/analysis/core/AbstractProjectAction/floatingBox_fr.properties:
--------------------------------------------------------------------------------
1 | # The MIT License
2 | #
3 | # Copyright (c) 2004-2010, Sun Microsystems, Inc.
4 | #
5 | # Permission is hereby granted, free of charge, to any person obtaining a copy
6 | # of this software and associated documentation files (the "Software"), to deal
7 | # in the Software without restriction, including without limitation the rights
8 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | # copies of the Software, and to permit persons to whom the Software is
10 | # furnished to do so, subject to the following conditions:
11 | #
12 | # The above copyright notice and this permission notice shall be included in
13 | # all copies or substantial portions of the Software.
14 | #
15 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | # THE SOFTWARE.
22 |
23 | Configure=Configurer
24 |
--------------------------------------------------------------------------------
/src/main/resources/hudson/plugins/analysis/core/AbstractProjectAction/floatingBox_nl.properties:
--------------------------------------------------------------------------------
1 | # The MIT License
2 | #
3 | # Copyright (c) 2004-2010, Sun Microsystems, Inc.
4 | #
5 | # Permission is hereby granted, free of charge, to any person obtaining a copy
6 | # of this software and associated documentation files (the "Software"), to deal
7 | # in the Software without restriction, including without limitation the rights
8 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | # copies of the Software, and to permit persons to whom the Software is
10 | # furnished to do so, subject to the following conditions:
11 | #
12 | # The above copyright notice and this permission notice shall be included in
13 | # all copies or substantial portions of the Software.
14 | #
15 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | # THE SOFTWARE.
22 |
23 | Configure=Configureer
24 |
--------------------------------------------------------------------------------
/src/main/resources/hudson/plugins/analysis/core/AbstractProjectAction/floatingBox_nb_NO.properties:
--------------------------------------------------------------------------------
1 | # The MIT License
2 | #
3 | # Copyright (c) 2004-2010, Sun Microsystems, Inc.
4 | #
5 | # Permission is hereby granted, free of charge, to any person obtaining a copy
6 | # of this software and associated documentation files (the "Software"), to deal
7 | # in the Software without restriction, including without limitation the rights
8 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | # copies of the Software, and to permit persons to whom the Software is
10 | # furnished to do so, subject to the following conditions:
11 | #
12 | # The above copyright notice and this permission notice shall be included in
13 | # all copies or substantial portions of the Software.
14 | #
15 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | # THE SOFTWARE.
22 |
23 | Configure=Konfigurere
24 |
--------------------------------------------------------------------------------
/src/main/resources/hudson/plugins/analysis/core/AbstractProjectAction/floatingBox_sv_SE.properties:
--------------------------------------------------------------------------------
1 | # The MIT License
2 | #
3 | # Copyright (c) 2004-2010, Sun Microsystems, Inc.
4 | #
5 | # Permission is hereby granted, free of charge, to any person obtaining a copy
6 | # of this software and associated documentation files (the "Software"), to deal
7 | # in the Software without restriction, including without limitation the rights
8 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | # copies of the Software, and to permit persons to whom the Software is
10 | # furnished to do so, subject to the following conditions:
11 | #
12 | # The above copyright notice and this permission notice shall be included in
13 | # all copies or substantial portions of the Software.
14 | #
15 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | # THE SOFTWARE.
22 |
23 | Configure=Konfigurera
24 |
--------------------------------------------------------------------------------
/src/main/resources/result/priorities-summary_zh_TW.properties:
--------------------------------------------------------------------------------
1 | # The MIT License
2 | #
3 | # Copyright (c) 2013, Chunghwa Telecom Co., Ltd., Pei-Tang Huang
4 | #
5 | # Permission is hereby granted, free of charge, to any person obtaining a copy
6 | # of this software and associated documentation files (the "Software"), to deal
7 | # in the Software without restriction, including without limitation the rights
8 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | # copies of the Software, and to permit persons to whom the Software is
10 | # furnished to do so, subject to the following conditions:
11 | #
12 | # The above copyright notice and this permission notice shall be included in
13 | # all copies or substantial portions of the Software.
14 | #
15 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | # THE SOFTWARE.
22 |
23 | Summary=\u6458\u8981
24 | Total=\u7e3d\u8a08
25 |
--------------------------------------------------------------------------------
/src/main/resources/hudson/plugins/analysis/views/TabDetail/packages_zh_TW.properties:
--------------------------------------------------------------------------------
1 | # The MIT License
2 | #
3 | # Copyright (c) 2013, Chunghwa Telecom Co., Ltd., Pei-Tang Huang
4 | #
5 | # Permission is hereby granted, free of charge, to any person obtaining a copy
6 | # of this software and associated documentation files (the "Software"), to deal
7 | # in the Software without restriction, including without limitation the rights
8 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | # copies of the Software, and to permit persons to whom the Software is
10 | # furnished to do so, subject to the following conditions:
11 | #
12 | # The above copyright notice and this permission notice shall be included in
13 | # all copies or substantial portions of the Software.
14 | #
15 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | # THE SOFTWARE.
22 |
23 | Total=\u7e3d\u8a08
24 | Distribution=\u5206\u4f48
25 |
--------------------------------------------------------------------------------
/src/main/resources/result/trend-summary.jelly:
--------------------------------------------------------------------------------
1 |
2 |
3 | | ${%All Warnings} | 11 |${%New Warnings} | 12 |${%Fixed Warnings} | 13 |
| ${it.numberOfAnnotations} | 17 |
18 | |
25 |
26 | |
33 |
true if the classifier accepts the specified file
38 | * for processing.
39 | */
40 | boolean accepts(String fileName);
41 | }
42 |
--------------------------------------------------------------------------------
/src/main/resources/result/priorities-summary_fr.properties:
--------------------------------------------------------------------------------
1 | # The MIT License
2 | #
3 | # Copyright (c) 2004-2010, Sun Microsystems, Inc.
4 | #
5 | # Permission is hereby granted, free of charge, to any person obtaining a copy
6 | # of this software and associated documentation files (the "Software"), to deal
7 | # in the Software without restriction, including without limitation the rights
8 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | # copies of the Software, and to permit persons to whom the Software is
10 | # furnished to do so, subject to the following conditions:
11 | #
12 | # The above copyright notice and this permission notice shall be included in
13 | # all copies or substantial portions of the Software.
14 | #
15 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | # THE SOFTWARE.
22 |
23 | High\ Priority=Haute priorit\u00E9
24 | Low\ Priority=Basse priorit\u00E9
25 | Normal\ Priority=Priorit\u00E9 normale
26 | Summary=R\u00E9sum\u00E9
27 | Total=Total
28 |
--------------------------------------------------------------------------------
/src/main/resources/util/trend_zh_TW.properties:
--------------------------------------------------------------------------------
1 | # The MIT License
2 | #
3 | # Copyright (c) 2013, Chunghwa Telecom Co., Ltd., Pei-Tang Huang
4 | #
5 | # Permission is hereby granted, free of charge, to any person obtaining a copy
6 | # of this software and associated documentation files (the "Software"), to deal
7 | # in the Software without restriction, including without limitation the rights
8 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | # copies of the Software, and to permit persons to whom the Software is
10 | # furnished to do so, subject to the following conditions:
11 | #
12 | # The above copyright notice and this permission notice shall be included in
13 | # all copies or substantial portions of the Software.
14 | #
15 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | # THE SOFTWARE.
22 |
23 | Trend\ graph=\u8da8\u52e2\u5716
24 | configure=\u60a8\u53ef\u4ee5\u5728\u7368\u7acb\u8996\u666f\u4e2d\u8a2d\u5b9a\u8da8\u52e2\u5716\u7684\u9810\u8a2d\u503c\u3002
25 |
--------------------------------------------------------------------------------
/src/test/java/hudson/plugins/analysis/core/IsOverriddenTest.java:
--------------------------------------------------------------------------------
1 | package hudson.plugins.analysis.core;
2 |
3 | import static org.junit.Assert.*;
4 |
5 | import org.junit.Test;
6 |
7 | import hudson.plugins.analysis.util.Compatibility;
8 |
9 | /**
10 | * Test for {@link Compatibility.isOverridden} method.
11 | */
12 | public class IsOverriddenTest {
13 |
14 | /**
15 | * Test that a method is found by isOverridden even when it is inherited from an intermediate class.
16 | */
17 | @Test
18 | public void isOverriddenTest() {
19 | assertTrue(Compatibility.isOverridden(Base.class, Derived.class, "method"));
20 | assertTrue(Compatibility.isOverridden(Base.class, Intermediate.class, "method"));
21 | assertFalse(Compatibility.isOverridden(Base.class, Base.class, "method"));
22 | }
23 |
24 | /**
25 | * Negative test.
26 | * Trying to check for a method which does not exist in the hierarchy,
27 | */
28 | @Test(expected = AssertionError.class)
29 | public void isOverriddenNegativeTest() {
30 | Compatibility.isOverridden(Base.class, Derived.class, "method2");
31 | }
32 |
33 | public abstract class Base {
34 | protected abstract void method();
35 | }
36 | public abstract class Intermediate extends Base {
37 | protected void method() {}
38 | }
39 | public class Derived extends Intermediate {}
40 |
41 | }
42 |
43 |
--------------------------------------------------------------------------------
/src/main/resources/hudson/plugins/analysis/dashboard/AbstractWarningsTablePortlet/config_zh_TW.properties:
--------------------------------------------------------------------------------
1 | # The MIT License
2 | #
3 | # Copyright (c) 2013, Chunghwa Telecom Co., Ltd., Pei-Tang Huang
4 | #
5 | # Permission is hereby granted, free of charge, to any person obtaining a copy
6 | # of this software and associated documentation files (the "Software"), to deal
7 | # in the Software without restriction, including without limitation the rights
8 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | # copies of the Software, and to permit persons to whom the Software is
10 | # furnished to do so, subject to the following conditions:
11 | #
12 | # The above copyright notice and this permission notice shall be included in
13 | # all copies or substantial portions of the Software.
14 | #
15 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | # THE SOFTWARE.
22 |
23 | Name=\u540d\u7a31
24 | Hide\ zero\ warnings\ projects=\u96b1\u85cf\u6c92\u6709\u8b66\u544a\u7684\u5c08\u6848
25 |
--------------------------------------------------------------------------------
/src/main/resources/hudson/plugins/analysis/dashboard/AbstractWarningsTablePortlet/portlet_zh_TW.properties:
--------------------------------------------------------------------------------
1 | # The MIT License
2 | #
3 | # Copyright (c) 2013, Chunghwa Telecom Co., Ltd., Pei-Tang Huang
4 | #
5 | # Permission is hereby granted, free of charge, to any person obtaining a copy
6 | # of this software and associated documentation files (the "Software"), to deal
7 | # in the Software without restriction, including without limitation the rights
8 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | # copies of the Software, and to permit persons to whom the Software is
10 | # furnished to do so, subject to the following conditions:
11 | #
12 | # The above copyright notice and this permission notice shall be included in
13 | # all copies or substantial portions of the Software.
14 | #
15 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | # THE SOFTWARE.
22 |
23 | Job=\u4f5c\u696d
24 | Total=\u7e3d\u8a08
25 |
26 | High=\u9ad8
27 | Normal=\u4e00\u822c
28 | Low=\u4f4e
29 |
--------------------------------------------------------------------------------
/src/main/resources/util/trend_fr.properties:
--------------------------------------------------------------------------------
1 | # The MIT License
2 | #
3 | # Copyright (c) 2004-2010, Sun Microsystems, Inc.
4 | #
5 | # Permission is hereby granted, free of charge, to any person obtaining a copy
6 | # of this software and associated documentation files (the "Software"), to deal
7 | # in the Software without restriction, including without limitation the rights
8 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | # copies of the Software, and to permit persons to whom the Software is
10 | # furnished to do so, subject to the following conditions:
11 | #
12 | # The above copyright notice and this permission notice shall be included in
13 | # all copies or substantial portions of the Software.
14 | #
15 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | # THE SOFTWARE.
22 |
23 | Trend\ graph=Graphique de la tendance
24 | configure=Vous pouvez d\u00E9finir les valeurs par d\u00E9faut pour le graphe illustrant la tendance actuelle dans une vue s\u00E9par\u00E9e.
25 |
--------------------------------------------------------------------------------
/src/main/resources/result/fixed_zh_TW.properties:
--------------------------------------------------------------------------------
1 | # The MIT License
2 | #
3 | # Copyright (c) 2013, Chunghwa Telecom Co., Ltd., Pei-Tang Huang
4 | #
5 | # Permission is hereby granted, free of charge, to any person obtaining a copy
6 | # of this software and associated documentation files (the "Software"), to deal
7 | # in the Software without restriction, including without limitation the rights
8 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | # copies of the Software, and to permit persons to whom the Software is
10 | # furnished to do so, subject to the following conditions:
11 | #
12 | # The above copyright notice and this permission notice shall be included in
13 | # all copies or substantial portions of the Software.
14 | #
15 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | # THE SOFTWARE.
22 |
23 | File=\u6a94\u6848
24 | Line=\u884c
25 | Warning\ Type=\u8b66\u544a\u985e\u578b
26 | Priority=\u512a\u5148\u9806\u5e8f
27 | Type=\u985e\u578b
28 | Category=\u985e\u5225
29 |
--------------------------------------------------------------------------------
/src/main/java/hudson/plugins/analysis/graph/EmptyGraph.java:
--------------------------------------------------------------------------------
1 | package hudson.plugins.analysis.graph;
2 |
3 | import java.util.Collection;
4 |
5 | import org.jfree.chart.JFreeChart;
6 | import org.jfree.data.xy.XYSeriesCollection;
7 |
8 | import hudson.plugins.analysis.Messages;
9 | import hudson.plugins.analysis.core.BuildResult;
10 | import hudson.plugins.analysis.core.ResultAction;
11 |
12 | /**
13 | * Empty graph. Null object: this graph does not render anything.
14 | *
15 | * @author Ulli Hafner
16 | */
17 | public class EmptyGraph extends BuildResultGraph {
18 | @Override
19 | public String getId() {
20 | return "NONE";
21 | }
22 |
23 | @Override
24 | public String getLabel() {
25 | return Messages.Trend_type_none();
26 | }
27 |
28 | @Override
29 | public JFreeChart create(final GraphConfiguration configuration,
30 | final ResultAction extends BuildResult> resultAction, final String pluginName) {
31 | return createXYChart(new XYSeriesCollection());
32 | }
33 |
34 | @Override
35 | public JFreeChart createAggregation(final GraphConfiguration configuration,
36 | final Collection| ${%Module} | 9 |${%Total} | 10 |${%Distribution} | 11 |
| 17 | ${container.name} 18 | | 19 |${container.numberOfAnnotations} 20 | | 21 |
22 | |
24 |
| ${%Total} | 28 |${it.container.numberOfAnnotations} | 29 |30 | |
| ${%File} | 9 |${%Total} | 10 |${%Distribution} | 11 |
| 17 | ${container.shortName} 18 | | 19 |${container.numberOfAnnotations} 20 | | 21 |
22 | |
24 |
| ${%Total} | 28 |${it.container.numberOfAnnotations} | 29 |30 | |
| Author | 9 |${%Total} | 10 |${%Distribution} | 11 |
| 17 | ${container.displayName} 18 | | 19 |${container.numberOfAnnotations} 20 | | 21 |
22 | |
24 |
| ${%Total} | 28 |${it.container.numberOfAnnotations} | 29 |30 | |
| ${it.container.packageCategoryName} | 9 |${%Total} | 10 |${%Distribution} | 11 |
| 17 | ${container.name} 18 | | 19 |${container.numberOfAnnotations} 20 | | 21 |
22 | |
24 |
| ${%Total} | 28 |${it.container.numberOfAnnotations} | 29 |30 | |
| ${%File} | 11 |${%Line} | 12 |${%Priority} | 13 |${%Type} | 14 |${%Category} | 15 |
| ${warning.shortFileName} | 20 |
21 | |
30 | ${warning.priority.localizedString} | 31 |${warning.type} | 32 |${warning.category} | 33 |
ToolTipBuilder.
18 | *
19 | * @param provider
20 | * the tool tip provider to use
21 | */
22 | public ToolTipBuilder(final ToolTipProvider provider) {
23 | this.provider = provider;
24 | }
25 |
26 | @Override
27 | public String generateToolTip(final CategoryDataset dataset, final int row, final int column) {
28 | StringBuilder tooltip = new StringBuilder();
29 | tooltip.append(provider.getTooltip(dataset.getValue(row, column).intValue()));
30 | tooltip.append(' ');
31 | tooltip.append(getShortDescription(row));
32 |
33 | return tooltip.toString();
34 | }
35 |
36 | /**
37 | * Returns a short description for of the selected row. This text is
38 | * appended to the number of elements message.
39 | *
40 | * @param row
41 | * the selected row
42 | * @return a short description
43 | */
44 | protected abstract String getShortDescription(int row);
45 | }
46 |
47 |
--------------------------------------------------------------------------------
/src/main/java/hudson/plugins/analysis/util/BoxRenderer.java:
--------------------------------------------------------------------------------
1 | package hudson.plugins.analysis.util;
2 |
3 | import org.jfree.chart.renderer.category.StackedBarRenderer;
4 | import org.jfree.chart.urls.CategoryURLGenerator;
5 | import org.jfree.data.category.CategoryDataset;
6 |
7 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
8 |
9 | /**
10 | * {@link StackedBarRenderer} that delegates tooltip and URL generation to
11 | * separate objects.
12 | *
13 | * @author Ulli Hafner
14 | */
15 | @SuppressFBWarnings("Eq")
16 | public class BoxRenderer extends ToolTipBoxRenderer implements CategoryURLGenerator {
17 | /** Unique identifier of this class. */
18 | private static final long serialVersionUID = 1827457945114238470L;
19 | /** The URL generator for the clickable map. */
20 | private final SerializableUrlGenerator urlGenerator;
21 |
22 | /**
23 | * Creates a new instance of {@link BoxRenderer}.
24 | *
25 | * @param urlGenerator
26 | * the URL generator for the clickable map
27 | * @param toolTipGenerator
28 | * the tooltip generator for the clickable map
29 | */
30 | public BoxRenderer(final SerializableUrlGenerator urlGenerator, final SerializableToolTipGenerator toolTipGenerator) {
31 | super(toolTipGenerator);
32 | this.urlGenerator = urlGenerator;
33 | setItemURLGenerator(this);
34 | }
35 |
36 | @Override
37 | public final String generateURL(final CategoryDataset dataset, final int row, final int column) {
38 | return urlGenerator.generateURL(dataset, row, column);
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/src/main/java/hudson/plugins/analysis/util/CsharpNamespaceDetector.java:
--------------------------------------------------------------------------------
1 | package hudson.plugins.analysis.util;
2 |
3 | import java.io.IOException;
4 | import java.io.InputStream;
5 |
6 | import org.apache.commons.io.IOUtils;
7 | import org.apache.commons.io.LineIterator;
8 | import org.apache.commons.lang.StringUtils;
9 |
10 | /**
11 | * Detects the namespace of a C# workspace file.
12 | *
13 | * @author Ulli Hafner
14 | */
15 | // CHECKSTYLE:CONSTANTS-OFF
16 | public class CsharpNamespaceDetector extends AbstractPackageDetector {
17 | @Override
18 | public boolean accepts(final String fileName) {
19 | return fileName.endsWith(".cs");
20 | }
21 |
22 | /** {@inheritDoc}*/
23 | @Override
24 | public String detectPackageName(final InputStream stream) {
25 | try {
26 | LineIterator iterator = IOUtils.lineIterator(stream, "UTF-8");
27 | while (iterator.hasNext()) {
28 | String line = iterator.nextLine();
29 | if (line.matches("^namespace .*$")) {
30 | if (line.contains("{")) {
31 | return StringUtils.substringBetween(line, " ", "{").trim();
32 | }
33 | else {
34 | return StringUtils.substringAfter(line, " ").trim();
35 | }
36 | }
37 | }
38 | }
39 | catch (IOException exception) {
40 | // ignore
41 | }
42 | finally {
43 | IOUtils.closeQuietly(stream);
44 | }
45 | return UNKNOWN_PACKAGE;
46 | }
47 | }
48 |
49 |
--------------------------------------------------------------------------------
/src/main/resources/hudson/plugins/analysis/views/TabDetail/types.jelly:
--------------------------------------------------------------------------------
1 |
2 | | ${%Type} | 9 |${%Total} | 10 |${%Distribution} | 11 |
|
17 | |
25 | ${container.numberOfAnnotations} 26 | | 27 |
28 | |
30 |
| ${%Total} | 34 |${it.container.numberOfAnnotations} | 35 |36 | |
| ${%Category} | 9 |${%Total} | 10 |${%Distribution} | 11 |
|
17 | |
25 | ${container.numberOfAnnotations} 26 | | 27 |
28 | |
30 |
| ${%Total} | 34 |${it.container.numberOfAnnotations} | 35 |36 | |
16 | ${%threshold.100.percent}
17 | |
18 |
19 | |
21 | 22 | |
23 | ${%threshold.0.percent}
24 | |
25 |
26 | |
28 |
T.
12 | *
13 | * @param true if the build is successful, false
58 | * if the build has been set to {@link Result#UNSTABLE} or
59 | * {@link Result#FAILURE} by this action.
60 | */
61 | boolean isSuccessful();
62 | }
63 |
--------------------------------------------------------------------------------
/src/test/resources/hudson/plugins/analysis/util/MANIFEST-NAME.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Bundle-ManifestVersion: 2
3 | Bundle-Name: %Bundle-Name
4 | Bundle-SymbolicName: de.faktorlogik.prototyp; singleton:=true
5 | Bundle-Version: 1.0.0.qualifier
6 | Bundle-Activator: de.faktorlogik.prototyp.internal.Activator
7 | Bundle-Vendor: %Bundle-Vendor
8 | Require-Bundle: org.eclipse.ui;bundle-version="3.6.0",
9 | org.eclipse.core.runtime;bundle-version="3.6.0",
10 | org.eclipse.core.databinding;bundle-version="1.3.100",
11 | org.eclipse.core.databinding.beans;bundle-version="1.2.100",
12 | org.eclipse.core.databinding.observable;bundle-version="1.3.0",
13 | org.eclipse.core.databinding.property;bundle-version="1.3.0",
14 | org.eclipse.jface.databinding;bundle-version="1.4.0",
15 | org.eclipse.zest.core;bundle-version="1.1.0",
16 | org.eclipse.zest.layouts;bundle-version="1.1.0",
17 | com.ibm.icu;bundle-version="4.2.1",
18 | com.google.guava;bundle-version="1.0.0",
19 | findbugs.annotations;bundle-version="1.3.9",
20 | findbugs.jsr305;bundle-version="1.3.9",
21 | net.ffxml.swtforms;bundle-version="0.9.1",
22 | commons-io;bundle-version="1.4.0",
23 | commons-lang;bundle-version="2.4.0",
24 | owlapiv3;bundle-version="2.2.2",
25 | aterm;bundle-version="2.2.2",
26 | xsdlib;bundle-version="2.2.2",
27 | relaxngDatatype;bundle-version="2.2.2",
28 | jgrapht;bundle-version="2.2.2",
29 | pellet-core;bundle-version="2.2.2",
30 | pellet-datatypes;bundle-version="2.2.2",
31 | pellet-el;bundle-version="2.2.2",
32 | pellet-modularity;bundle-version="2.2.2",
33 | pellet-owlapiv3;bundle-version="2.2.2",
34 | pellet-query;bundle-version="2.2.2",
35 | pellet-rules;bundle-version="2.2.2",
36 | de.faktorlogik.util;bundle-version="1.0.0",
37 | de.faktorlogik.eclipse.ui;bundle-version="1.0.0",
38 | de.faktorlogik.core;bundle-version="1.0.0"
39 | Bundle-RequiredExecutionEnvironment: JavaSE-1.6
40 | Bundle-ActivationPolicy: lazy
41 |
--------------------------------------------------------------------------------
/src/main/java/hudson/plugins/analysis/util/HtmlPrinter.java:
--------------------------------------------------------------------------------
1 | package hudson.plugins.analysis.util;
2 |
3 | /**
4 | * Simple wrapper of a {@link StringBuffer} that is capable of writing HTML sequences used in Jelly scripts.
5 | *
6 | * @author Ulli Hafner
7 | */
8 | public class HtmlPrinter {
9 | private final StringBuilder buffer = new StringBuilder();
10 |
11 | /**
12 | * Adds a list item.
13 | *
14 | * @param text
15 | * the item text
16 | * @return HTML item
17 | */
18 | public String item(final String text) {
19 | return String.format("