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

Afficher le fichier Open project: SonarSource-VisualStudio/sonarlint-visualstudio Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public static CreateTestRuleSet ( int numRules, IEnumerable includes = null ) : RuleSet
numRules int
includes IEnumerable
Résultat RuleSet

CreateTestRuleSet() public static méthode

public static CreateTestRuleSet ( string fullPath ) : RuleSet
fullPath string
Résultat RuleSet

CreateTestRuleSet() public static méthode

public static CreateTestRuleSet ( string rootDir, string fileName ) : RuleSet
rootDir string
fileName string
Résultat RuleSet

CreateTestRuleSetWithRuleIds() public static méthode

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

RuleSetToXml() public static méthode

public static RuleSetToXml ( RuleSet ruleSet ) : string
ruleSet RuleSet
Résultat string

XmlToRuleSet() public static méthode

public static XmlToRuleSet ( string xml ) : RuleSet
xml string
Résultat RuleSet