-
Bug
-
Resolution: Done
-
Major
-
2.5.0.Final
Add the following (after edit) to the docs, somewhere around <file>, <xmlfile> and <javaclass>:
The <has-hint> condition tests whether a file or a line has a hint attached to it.
It is used for two purposes:
1) to prevent adding classifications to a file if it already contains a hint.
2) To implement so-called "catchall rules" - see [DOCS LINK HERE].
Usage example:
<rule id="websphere-xml-06000"> <when> <file filename="ibm-web-bnd.{file_ext}" as="1"/> <xmlfile from="1" matches="/webappbnd:WebAppBinding" as="2"> <namespace prefix="webappbnd" uri="webappbnd.xmi"/> </xmlfile> </when> <perform> <iteration over="2"> <hint title="WebSphere web application binding" effort="5"> <message> <![CDATA[ This file configures the specific WebSphere Web application bindings. Configure EAP 6 Web subsystem accordingly using the CLI interface or web console. ]]> </message> <link title="Configure the EAP 6 Web Subsystem" href="https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.4/html-single/Administration_and_Configuration_Guide/index.html#chap-Web_Subsystem"/> <link href="http://docs.jboss.org/jbossweb/7.0.x/" title="JBoss Web configuration"/> </hint> </iteration> <iteration over="1"> <when> <not> <has-hint /> </not> </when> <classification title="WebSphere web application binding descriptor" effort="0"> <description>WebSphere 6 web application binding configuration file.</description> <link title="WebAppBinding javadoc" href="http://rjweb002.royalsun.com.br/configDocs/webappbnd/WebAppBinding.html"/> <tag>ejb</tag> <tag>websphere</tag> <tag>application-bindings</tag> </classification> </iteration> </perform> <where param="file_ext"> <matches pattern="xml|xmi" /> </where> </rule>
Usage scenario 1) is related to WINDUPRULE-164 and may be discouraged when WINDUP-1041 is implemented.
- relates to
-
WINDUP-1041 Classifications without story points should not be counted as "incidents"
- New
-
WINDUPRULE-164 Clean up and merge duplicate rules
- MODIFIED