C# Class SonarLint.VisualStudio.Integration.UnitTests.TestRuleSetHelper

Show file Open project: SonarSource-VisualStudio/sonarlint-visualstudio Class Usage Examples

Public Methods

Method Description
CreateTestRuleSet ( int numRules, IEnumerable includes = null ) : RuleSet
CreateTestRuleSet ( string fullPath ) : RuleSet
CreateTestRuleSet ( string rootDir, string fileName ) : RuleSet
CreateTestRuleSetWithRuleIds ( IEnumerable ids, string analyzerId = "TestId", string ruleNamespace = "TestNamespace", RuleSet existingRuleSet = null ) : RuleSet
RuleSetToXml ( RuleSet ruleSet ) : string
XmlToRuleSet ( string xml ) : RuleSet

Method Details

CreateTestRuleSet() public static method

public static CreateTestRuleSet ( int numRules, IEnumerable includes = null ) : RuleSet
numRules int
includes IEnumerable
return RuleSet

CreateTestRuleSet() public static method

public static CreateTestRuleSet ( string fullPath ) : RuleSet
fullPath string
return RuleSet

CreateTestRuleSet() public static method

public static CreateTestRuleSet ( string rootDir, string fileName ) : RuleSet
rootDir string
fileName string
return RuleSet

CreateTestRuleSetWithRuleIds() public static method

public static CreateTestRuleSetWithRuleIds ( IEnumerable ids, string analyzerId = "TestId", string ruleNamespace = "TestNamespace", RuleSet existingRuleSet = null ) : RuleSet
ids IEnumerable
analyzerId string
ruleNamespace string
existingRuleSet RuleSet
return RuleSet

RuleSetToXml() public static method

public static RuleSetToXml ( RuleSet ruleSet ) : string
ruleSet RuleSet
return string

XmlToRuleSet() public static method

public static XmlToRuleSet ( string xml ) : RuleSet
xml string
return RuleSet