public CodeInspectionResultGridViewItem(ICodeInspectionResult result)
        {
            _item      = result;
            _severity  = GetSeverityIcon(result.Severity);
            _selection = result.QualifiedSelection;
            _issue     = result.Name;
            _quickFix  = FirstOrDefaultQuickFix(result.GetQuickFixes());

            _project   = _selection.QualifiedName.ProjectName;
            _component = _selection.QualifiedName.ComponentName;
        }
Esempio n. 2
0
        private string FormatResultForClipboard(ICodeInspectionResult result)
        {
            var module = result.QualifiedSelection.QualifiedName;

            return(string.Format(
                       "{0}: {1} - {2}.{3}, line {4}",
                       result.Severity,
                       result.Name,
                       module.Project.Name,
                       module.Component.Name,
                       result.QualifiedSelection.Selection.StartLine));
        }
        public CodeInspectionResultGridViewItem(ICodeInspectionResult result)
        {
            _item = result;
            _icon = GetSeverityIcon(result.Severity);
            _severity = result.Severity;
            _selection = result.QualifiedSelection;
            _issue = result.Name;
            _quickFix = FirstOrDefaultQuickFix(result.GetQuickFixes());

            _project = _selection.QualifiedName.ProjectName;
            _component = _selection.QualifiedName.ComponentName;
        }
 public int CompareTo(ICodeInspectionResult other)
 {
     return(Inspection.CompareTo(other.Inspection));
 }
 private string FormatResultForClipboard(ICodeInspectionResult result)
 {
     var module = result.QualifiedSelection.QualifiedName;
     return string.Format(
         "{0}: {1} - {2}.{3}, line {4}",
         result.Severity,
         result.Name,
         module.ProjectName,
         module.ComponentName,
         result.QualifiedSelection.Selection.StartLine);
 }
 public int CompareTo(ICodeInspectionResult other)
 {
     return Inspection.CompareTo(other.Inspection);
 }