AnalyzerOptions class

Options for analyzing LG templates.

Constructors

AnalyzerOptions(AnalyzerOptions | string[])

Initializes a new instance of the AnalyzerOptions class.

Properties

ThrowOnRecursive

Gets or sets a value determining if recursive calls throw an exception.

Methods

Merge(AnalyzerOptions)

Merge an incoming option to current option. If a property in incoming option is not null while it is null in current option, then the value of this property will be overwritten.

Constructor Details

AnalyzerOptions(AnalyzerOptions | string[])

Initializes a new instance of the AnalyzerOptions class.

new AnalyzerOptions(options?: AnalyzerOptions | string[])

Parameters

options

AnalyzerOptions | string[]

Optional. Instance to copy analyzer settings from or list of strings containing the options from an LG file.

Property Details

ThrowOnRecursive

Gets or sets a value determining if recursive calls throw an exception.

ThrowOnRecursive?: boolean = null

Property Value

boolean

Method Details

Merge(AnalyzerOptions)

Merge an incoming option to current option. If a property in incoming option is not null while it is null in current option, then the value of this property will be overwritten.

function Merge(opt: AnalyzerOptions): AnalyzerOptions

Parameters

opt
AnalyzerOptions

Incoming option for merging.

Returns

Result after merging.