This repository has been archived by the owner on Sep 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed warnings not showing properly after latest update
- Loading branch information
1 parent
d7bb081
commit a4fcb3d
Showing
2 changed files
with
39 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,23 @@ | ||
namespace SPCode.Utils | ||
using System.Text.RegularExpressions; | ||
|
||
namespace SPCode.Utils | ||
{ | ||
public class ErrorDataGridRow | ||
{ | ||
public string File { set; get; } | ||
public string Line { set; get; } | ||
public string Type { set; get; } | ||
public string Details { set; get; } | ||
public bool IsError => Type.Contains("error"); | ||
public bool IsWarning => Type.Contains("warning"); | ||
|
||
public string File { get; } | ||
public string Line { get; } | ||
public string Type { get; } | ||
public string Details { get; } | ||
|
||
public ErrorDataGridRow(Match match) | ||
{ | ||
File = match.Groups["File"].Value.Trim(); | ||
Line = match.Groups["Line"].Value.Trim(); | ||
Type = match.Groups["Type"].Value.Trim(); | ||
Details = match.Groups["Details"].Value.Trim(); | ||
} | ||
} | ||
} |