CleanCode v1.2.07 AntDoc

Press that icon in order to update AntDoc GUI

sourceforgeBuild
Target csharp.doc.checkMissing

csharp.doc.checkMissing


Detail:
<target name="csharp.doc.checkMissing">
	<-- check for missing doc elements, as sandcastle does not report -->
	<-- TODO: how to make these warnings instead of info messages -->

	<concat>
		<fileset
			dir="${mirror.api}/csharp/html"
			includes="*.htm"
		/>

		<filterchain>

			<linecontainsregexp>
				<regexp pattern="\[Missing.*[Dd]ocumentation for .*?\]"/>
			</linecontainsregexp>

			<tokenfilter>
				<-- grab the message then cleanup entities -->

				<replaceregex
					flags="i"
					pattern="^.*\[(Missing.*Documentation for .*?)\].*"
					replace="\1"
				/>

				<replaceregex
					pattern="&lt;(.*?)&gt;"
					replace="<\1>"
				/>

				<replaceregex
					pattern="&quot;(.*?)&quot;"
					replace=""\1""
				/>
			</tokenfilter>

			<-- <uniqfilter/> needs ant 1.8.0 or greater -->
		</filterchain>
	</concat>
	<-- Also look for non-fully-qualified references in see and seealso tags,
	         since those will *not* convert to links in Sandcastle output.	-->

	<sequential>

		<pathconvert property="nonFullyQualifiedList">
			<-- first find the files -->

			<path>
				<fileset
					dir="${csharp}"
					includes="**/*.cs"
				>
					<containsregexp expression="see(?:also)? cref="[MPTE]:[^.]*""/>
				</fileset>
			</path>
		</pathconvert>

		<for
			delimiter=";"
			list="${nonFullyQualifiedList}"
			param="file"
		>
			<sequential>
				<-- trim off common prefix from file name for brevity-->

				<propertyregex
					input="@{file}"
					override="true"
					property="shortfile"
					regexp=".*Projects.CleanCode.(.*\.cs)"
					replace="\1"
				/>

				<echo
					level="warning"
					message="${shortfile} has these non-fully qualified references:"
				/>

				<concat>
					<filelist files="@{file}"/>

					<filterchain>
						<linecontainsregexp>
							<regexp pattern="see(?:also)? cref="[MPTE]:[^.]*""/>
						</linecontainsregexp>
					</filterchain>
				</concat>
			</sequential>
		</for>
		<-- reset properties for next use -->

		<var
			name="nonFullyQualifiedList"
			unset="true"
		/>

		<var
			name="shortfile"
			unset="true"
		/>
	</sequential>
</target>


Edouard Mercier 2003.10.01 21:48:07 - AntDoc V0.8g - XSL Transformer Factory: org.apache.xalan.processor.TransformerFactoryImpl