Share via


RuleSet 類別

定義

表示規則集檔案中指定的一組規則。

public ref class RuleSet
public class RuleSet
type RuleSet = class
Public Class RuleSet
繼承
RuleSet

建構函式

RuleSet(String, ReportDiagnostic, ImmutableDictionary<String,ReportDiagnostic>, ImmutableArray<RuleSetInclude>)

建立 RuleSet。

屬性

FilePath

規則集檔案的檔案路徑。

GeneralDiagnosticOption

IncludeAll 標記所指定的全域選項。

Includes

此規則集包含的規則集清單。

SpecificDiagnosticOptions

個別規則識別碼及其相關聯的動作。

方法

GetDiagnosticOptionsFromRulesetFile(String, Dictionary<String,ReportDiagnostic>)

剖析指定 rulesetFileFullPath 位置的規則集檔案,並從剖析的檔案傳回下列診斷選項:

  1. specificDiagnosticOptions從規則識別碼對應至 ReportDiagnostic 選項。
  2. 規則集檔案中所有規則的全域 ReportDiagnostic 選項。
GetEffectiveIncludesFromFile(String)

從指定的檔案取得所有參與規則之規則集的檔案路徑。 另請參閱: LoadEffectiveRuleSetFromFile(String)

LoadEffectiveRuleSetFromFile(String)

從指定的檔案載入規則集。 此規則集也會包含從規則集檔案中指定的 包含解析的所有規則。 另請參閱: GetEffectiveIncludesFromFile(String)

WithEffectiveAction(ReportDiagnostic)

建立已套用全域有效動作的 RuleSet。

適用於