Click or drag to resize

RuleSet Class



Represents a set of rules as specified in a ruleset file.
Inheritance Hierarchy
SystemObject
  Microsoft.CodeAnalysisRuleSet

Namespace:  Microsoft.CodeAnalysis
Assembly:  Microsoft.CodeAnalysis (in Microsoft.CodeAnalysis.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public class RuleSet

The RuleSet type exposes the following members.

Constructors
  NameDescription
Public methodRuleSet
Create a RuleSet.
Top
Properties
  NameDescription
Public propertyFilePath
The file path of the ruleset file.
Public propertyGeneralDiagnosticOption
The global option specified by the IncludeAll tag.
Public propertyIncludes
List of rulesets included by this ruleset.
Public propertySpecificDiagnosticOptions
Individual rule ids and their associated actions.
Top
Methods
  NameDescription
Public methodStatic memberGetDiagnosticOptionsFromRulesetFile
Public methodStatic memberGetEffectiveIncludesFromFile
Get the paths to all files contributing rules to the ruleset from the specified file. See also: .
Public methodStatic memberLoadEffectiveRuleSetFromFile
Load the ruleset from the specified file. This ruleset will contain all the rules resolved from the includes specified in the ruleset file as well. See also: .
Public methodWithEffectiveAction
Create a RuleSet with a global effective action applied on it.
Top
See Also