private static Configuration CreateConfiguration(IInspectionModel inspection)
        {
            var settings = new CodeInspectionSettings();

            settings.CodeInspections.Add(new CodeInspectionSetting {
                Description = inspection.Description, Severity = inspection.Severity
            });
            return(new Configuration {
                UserSettings = new UserSettings(null, null, null, settings, null, null, null)
            });
        }
 public CodeInspectionSetting(IInspectionModel inspection)
     : this(inspection.Name, inspection.Description, inspection.InspectionType, inspection.DefaultSeverity, inspection.Severity)
 {
 }
Пример #3
0
 public CodeInspectionSetting(IInspectionModel inspection)
     : this(inspection.Name, inspection.InspectionType, inspection.Severity)
 {
 }
 public GeneralConfigService(IInspectionModel inspection)
 {
     _configuration = CreateConfiguration(inspection);
 }
 public CodeInspectionSetting(IInspectionModel inspection)
     : this(inspection.Name, inspection.Description, inspection.InspectionType, inspection.DefaultSeverity, inspection.Severity)
 { }