From 602bfa72c7e31320ee826d96bdd42f9a33b2d65f Mon Sep 17 00:00:00 2001 From: Conor MacNeill Date: Thu, 3 Jul 2003 13:59:50 +0000 Subject: [PATCH] Checkstyle update I've updated the checkstyle buildfile (check.xml) to the latest version of checkstyle. I've also updated the HTML stylesheet and created two new stylesheets to render the checkstyle report in plain text and the xdoc format we use for the other Ant documentation. I've also moved the checkstyle related stuff into its own area. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274747 13f79535-47bb-0310-9956-ffa450edef68 --- check.xml | 52 +++++- src/etc/{ => checkstyle}/RequiredHeader.txt | 0 src/etc/checkstyle/checkstyle-config | 105 +++++++++++ .../{ => checkstyle}/checkstyle-frames.xsl | 36 ++-- src/etc/checkstyle/checkstyle-text.xsl | 70 ++++++++ src/etc/checkstyle/checkstyle-xdoc.xsl | 163 ++++++++++++++++++ 6 files changed, 402 insertions(+), 24 deletions(-) rename src/etc/{ => checkstyle}/RequiredHeader.txt (100%) create mode 100644 src/etc/checkstyle/checkstyle-config rename src/etc/{ => checkstyle}/checkstyle-frames.xsl (87%) create mode 100644 src/etc/checkstyle/checkstyle-text.xsl create mode 100644 src/etc/checkstyle/checkstyle-xdoc.xsl diff --git a/check.xml b/check.xml index 91ccf4168..a040e1332 100755 --- a/check.xml +++ b/check.xml @@ -1,20 +1,56 @@ - - + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + diff --git a/src/etc/RequiredHeader.txt b/src/etc/checkstyle/RequiredHeader.txt similarity index 100% rename from src/etc/RequiredHeader.txt rename to src/etc/checkstyle/RequiredHeader.txt diff --git a/src/etc/checkstyle/checkstyle-config b/src/etc/checkstyle/checkstyle-config new file mode 100644 index 000000000..0685c15f4 --- /dev/null +++ b/src/etc/checkstyle/checkstyle-config @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/etc/checkstyle-frames.xsl b/src/etc/checkstyle/checkstyle-frames.xsl similarity index 87% rename from src/etc/checkstyle-frames.xsl rename to src/etc/checkstyle/checkstyle-frames.xsl index 41cc16cd6..4d6822e65 100644 --- a/src/etc/checkstyle-frames.xsl +++ b/src/etc/checkstyle/checkstyle-frames.xsl @@ -6,7 +6,7 @@ @@ -84,7 +85,7 @@ - + @@ -99,7 +100,8 @@ <h2>Frame Alert</h2> <p> - This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. + This document is designed to be viewed using the frames feature. + If you see this message, you are using a non-frame-capable web client. </p> @@ -111,7 +113,9 @@

CheckStyle Audit

- Designed for use with CheckStyle and Ant. + Designed for use with + CheckStyle and + Ant.
@@ -201,8 +205,8 @@

- - + +

@@ -217,8 +221,8 @@ Name Errors - - + +
@@ -229,9 +233,9 @@ - files/.html + files/.html - + @@ -243,9 +247,9 @@ - files/.html + files/.html - + @@ -269,16 +273,16 @@ - + - stylesheet.css + stylesheet.css -

File

+

File

@@ -287,7 +291,7 @@ - + diff --git a/src/etc/checkstyle/checkstyle-text.xsl b/src/etc/checkstyle/checkstyle-text.xsl new file mode 100644 index 000000000..249db58d0 --- /dev/null +++ b/src/etc/checkstyle/checkstyle-text.xsl @@ -0,0 +1,70 @@ + + + + + + + + + + : + + : + + + + + + diff --git a/src/etc/checkstyle/checkstyle-xdoc.xsl b/src/etc/checkstyle/checkstyle-xdoc.xsl new file mode 100644 index 000000000..4b7e26f24 --- /dev/null +++ b/src/etc/checkstyle/checkstyle-xdoc.xsl @@ -0,0 +1,163 @@ + + + + + + + + + + + + + + Checkstyle Audit + + + + + + + + + + + + +
+
Error Description
+ + + + + + + +
NameErrors
+ +
+ + + + + + + + files.html + + + + + + + + + + + + + Checkstyle Audit + + + +
+ + + + + + + + + + + + +
Error DescriptionLine
+
+ +
+
+
+ + +
+ + + + + + + + + + + + +
FilesErrors
+
+
+ + + + oddrow + evenrow + + + +