Command Line Tool - ImportAnalysisTemplate
Introduction
Section titled “Introduction”The command imports analysis template from a file.
Enlight importAnalysisTemplate --template=<template file> [ --merge=<mode>] [ --enableRules=<rules>]Parameters
Section titled “Parameters”| Parameter | Description |
|---|---|
| template | Required. Location of the external analysis template file. |
| enableRules | Comma separated list of rules or groups which to be enabled after the template is imported. Use `*’ to enable all rules in the imported template or group name to enable all rules in a group. |
| merge | (Default: None) Template elements which to be merged. The option value can be all, rules or none. Valid values: None, All, Rules. |
Examples
Section titled “Examples”Merge only rules from external analysis template to the current template:
Enlight importAnalysisTemplate --merge=Rules --template=d:\exported-analysis-template.xmlMerge rules and groups from external analysis template to the current template:
Enlight importAnalysisTemplate --merge=All --template=d:\exported-analysis-template.xmlReplace the current analysis template and activate a set of analysis rules and groups:
Enlight importAnalysisTemplate --enableRules=sa0001,sa0078,sa0099,performance,design --template=d:\exported-analysis-template.xml