Detect Manifest Attribute (detectManifestAttribute)
<detectManifestAttribute> Element
The detectManifestAttribute rule is used to detect attributes in manifest files.
| Attribute Name | Type | Required | Description |
|---|---|---|---|
| name | String | Yes |
The manifest attribute name. |
| archiveName | Regex | No |
The name of the archive containing the manifest file. |
| value | Regex | No |
The manifest attribute value. |
| flagOnce | Boolean | No |
Indicates whether to flag once per archive. Defaults to false. |
| flagOncePerFile | Boolean | No |
Indicates whether to flag once per file. Defaults to false. |
| hideResult | Boolean | No |
Indicates whether results flagged by this rule should be hidden in the report. This attribute only hides results when used with rules under the <and> or <or> tags. Defaults to false. |
For example, to detect a Web-ContextPath attribute in an application's manifest file, specify:
<detectManifestAttribute name="Web-ContextPath"/>