aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Kovesdan <gabor@FreeBSD.org>2013-07-22 15:59:22 +0000
committerGabor Kovesdan <gabor@FreeBSD.org>2013-07-22 15:59:22 +0000
commita47579024e6aac9c77db9074f0e91d1f9f7f1202 (patch)
treeb48947fe5bfeb5d164d4f377619603bbcd56c700
parent74d69e5e971c1d5ee1f8233512fe08daf4c5281f (diff)
downloaddoc-a47579024e6aac9c77db9074f0e91d1f9f7f1202.tar.gz
doc-a47579024e6aac9c77db9074f0e91d1f9f7f1202.zip
- Add constraints for filename vs. package
Notes
Notes: svn path=/projects/db5/; revision=42376
-rw-r--r--share/xml/freebsd.sch3
1 files changed, 3 insertions, 0 deletions
diff --git a/share/xml/freebsd.sch b/share/xml/freebsd.sch
index fe0b8ab1a9..73dc904ce0 100644
--- a/share/xml/freebsd.sch
+++ b/share/xml/freebsd.sch
@@ -18,6 +18,9 @@
<pattern name="Check filenames">
<rule context="//db:filename">
<report test="@role = 'directory'">Filename (<xsl:value-of select="."/>) has role="directory"; use class="directory"</report>
+ <report test="@role = 'package'">Filename (<xsl:value-of select="."/>) has role="package"; use the package element</report>
+ <report test="@role = 'port'">Filename (<xsl:value-of select="."/>) has role="port"; use the package element with role="port"</report>
+ <report test="@role != 'directory' and @role != 'package' and role != 'port'">Filename (<xsl:value-of select="."/>) has role attribute set; consider a properly set class attribute</report>
</rule>
</pattern>