public static RuleDescription Convert(RuleDetail detail, string productVersion, AnalyzerLanguage language) { return new RuleDescription { Key = detail.Key, Data = new Dictionary<string, RuleMetaData> { { language.ToString(), new RuleMetaData { Title = detail.Title, Description = GetParameterDescription(detail.Parameters) + AddLinksBetweenRulesToDescription(detail.Description, productVersion) + GetCodeFixDescription(detail), Tags = detail.Tags, Severity = detail.Severity, IdeSeverity = detail.IdeSeverity } } } }; }
public QualityProfileRoot(AnalyzerLanguage language) { Rules = new List<QualityProfileRuleDescriptor>(); Language = language.ToString(); Name = "Sonar way"; }