# AnalysisGateDuplicationSettings

Settings that control duplication-specific gate behavior.

Class 

`IntelligenceX.Analysis`

**Namespace**

`IntelligenceX.Analysis`

**Assembly**

`IntelligenceX`

**Source**

[AnalysisSettings.cs:176](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Analysis/AnalysisSettings.cs#L176)

**Modifiers**

sealed

Settings that control duplication-specific gate behavior.

## Inheritance

- object
- AnalysisGateDuplicationSettings

## Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Property [AnalysisGateSettings.Duplication](/api/intelligencex-analysis-analysisgatesettings/#property-duplication)

Filter members 

Show inherited

## Constructors

`public AnalysisGateDuplicationSettings()` [#](#constructor-ctor)

[AnalysisSettings.cs:176](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Analysis/AnalysisSettings.cs#L176)

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public bool Enabled { get; set; }` [#](#property-enabled)

[AnalysisSettings.cs:172](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Analysis/AnalysisSettings.cs#L172)

Enables duplication gate checks based on duplication metrics produced by analyze run.

`public string MetricsPath { get; set; }` [#](#property-metricspath)

[AnalysisSettings.cs:176](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Analysis/AnalysisSettings.cs#L176)

Path to duplication metrics JSON emitted by analyze run.

`public IReadOnlyList<string> RuleIds { get; set; }` [#](#property-ruleids)

[AnalysisSettings.cs:180](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Analysis/AnalysisSettings.cs#L180)

Rule IDs to evaluate from the duplication metrics payload.

`public double? MaxFilePercent { get; set; }` [#](#property-maxfilepercent)

[AnalysisSettings.cs:184](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Analysis/AnalysisSettings.cs#L184)

Optional per-file duplication threshold override (0-100). When null, each rule's configured threshold is used.

`public double? MaxFilePercentIncrease { get; set; }` [#](#property-maxfilepercentincrease)

[AnalysisSettings.cs:189](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Analysis/AnalysisSettings.cs#L189)

Optional allowed per-file duplication increase (in percentage points, 0-100) compared to the baseline file snapshot. Requires analysis.gate.baselinePath to be configured and present.

`public double? MaxOverallPercent { get; set; }` [#](#property-maxoverallpercent)

[AnalysisSettings.cs:193](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Analysis/AnalysisSettings.cs#L193)

Optional overall duplication threshold (0-100) across all significant lines.

`public double? MaxOverallPercentIncrease { get; set; }` [#](#property-maxoverallpercentincrease)

[AnalysisSettings.cs:198](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Analysis/AnalysisSettings.cs#L198)

Optional allowed increase (in percentage points, 0-100) compared to the baseline overall duplication snapshot. Requires analysis.gate.baselinePath to be configured and present.

`public string Scope { get; set; }` [#](#property-scope)

[AnalysisSettings.cs:202](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Analysis/AnalysisSettings.cs#L202)

Scope used for duplication gating. Supported values: changed-files (default) and all.

`public bool ScopeExplicitlyConfigured { get; set; }` [#](#property-scopeexplicitlyconfigured)

[AnalysisSettings.cs:207](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Analysis/AnalysisSettings.cs#L207)

True when analysis.gate.duplication.scope was explicitly provided in config. Used to distinguish default scope fallback from an intentional strict scope selection.

`public bool NewIssuesOnly { get; set; }` [#](#property-newissuesonly)

[AnalysisSettings.cs:211](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Analysis/AnalysisSettings.cs#L211)

When true, duplication gate checks honor baseline/new-only suppression semantics.

`public bool FailOnUnavailable { get; set; }` [#](#property-failonunavailable)

[AnalysisSettings.cs:215](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Analysis/AnalysisSettings.cs#L215)

When true, unavailable duplication metrics fail the gate.

<!-- PowerForge markdown artifact sha256:3646631B1FF1D0B77545B8DEA045B7AC9AC15B4CD1319D2B94BB33AD496B3A9A -->
