Exemple #1
0
 public RuleResult(RuleName name, RuleResultType type, TLocation location, string description)
 {
     _name        = name;
     _type        = type;
     _location    = location;
     _description = description;
 }
 protected CSharpRuleBase(string category, string checkId)
 {
     _name = new RuleName(category, checkId);
 }
Exemple #3
0
 public static RuleResult <TLocation> Warning(RuleName name, TLocation location, string description)
 {
     return(new RuleResult <TLocation>(name, RuleResultType.Warning, location, description));
 }
Exemple #4
0
 public static RuleResult <TLocation> Information(RuleName name, TLocation location, string description)
 {
     return(new RuleResult <TLocation>(name, RuleResultType.Information, location, description));
 }
Exemple #5
0
 public static RuleResult <TLocation> Error(RuleName name, TLocation location, string description)
 {
     return(new RuleResult <TLocation>(name, RuleResultType.Error, location, description));
 }