author | erikj |
Tue, 12 Sep 2017 19:03:39 +0200 | |
changeset 47216 | 71c04702a3d5 |
parent 11054 | langtools/make/conf/checkstyle-emacs.xsl@c4224d65eb3e |
permissions | -rw-r--r-- |
11054
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
1 |
<?xml version="1.0"?> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
2 |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
3 |
<xsl:output method="text" omit-xml-declaration="yes"/> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
4 |
|
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
5 |
<xsl:template match="/"> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
6 |
Coding Style Check Results |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
7 |
-------------------------- |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
8 |
Total files checked: <xsl:number level="any" value="count(descendant::file)"/> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
9 |
Files with errors: <xsl:number level="any" value="count(descendant::file[error])"/> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
10 |
Total errors: <xsl:number level="any" value="count(descendant::error)"/> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
11 |
Errors per file: <xsl:number level="any" value="count(descendant::error) div count(descendant::file)"/> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
12 |
<xsl:apply-templates/> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
13 |
</xsl:template> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
14 |
|
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
15 |
<xsl:template match="file[error]"> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
16 |
<xsl:apply-templates select="error"/> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
17 |
</xsl:template> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
18 |
|
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
19 |
<xsl:template match="error"> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
20 |
<xsl:value-of select="../@name"/>:<xsl:value-of select="@line"/><xsl:text>: </xsl:text><xsl:value-of select="@message"/><xsl:text> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
21 |
</xsl:text> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
22 |
</xsl:template> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
23 |
|
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
24 |
</xsl:stylesheet> |