-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/reviewer improvements (#153)
* Throw exception if OCR fails (instead of reporting as a Failure) * Increased progress report to every 5 seconds * Added conneciton testing prior to running * Added injection for redlist, ignore and targets * Support for custom patterns from gui * Added default CLI setting for RulesOnly (avoids unessesary updates) * Updated changelog Co-authored-by: abrooks <abrooks>
- Loading branch information
Showing
12 changed files
with
251 additions
and
41 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
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
14 changes: 14 additions & 0 deletions
14
src/applications/IsIdentifiableReviewer/Out/IRulePatternFactory.cs
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using Microservices.IsIdentifiable.Reporting; | ||
|
||
namespace IsIdentifiableReviewer.Out | ||
{ | ||
public interface IRulePatternFactory | ||
{ | ||
/// <summary> | ||
/// Returns a Regex for picking up the provided <paramref name="failure"/> | ||
/// </summary> | ||
/// <param name="failure"></param> | ||
/// <returns></returns> | ||
string GetPattern(Failure failure); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/applications/IsIdentifiableReviewer/Out/MatchWholeStringRulePatternFactory.cs
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System.Text.RegularExpressions; | ||
using Microservices.IsIdentifiable.Reporting; | ||
|
||
namespace IsIdentifiableReviewer.Out | ||
{ | ||
public class MatchWholeStringRulePatternFactory: IRulePatternFactory | ||
{ | ||
public string GetPattern(Failure failure) | ||
{ | ||
return "^" + Regex.Escape(failure.ProblemValue) + "$"; | ||
} | ||
} | ||
} |
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
Oops, something went wrong.