-
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.
Merge pull request #177 from SMI/release/1.7.0
Release 1.7.0
- Loading branch information
Showing
40 changed files
with
670 additions
and
327 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
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
16 changes: 16 additions & 0 deletions
16
src/applications/IsIdentifiableReviewer/MainWindowHistory.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,16 @@ | ||
using IsIdentifiableReviewer.Out; | ||
|
||
namespace IsIdentifiableReviewer | ||
{ | ||
internal class MainWindowHistory | ||
{ | ||
public int Index { get;} | ||
public OutBase OutputBase { get; } | ||
|
||
public MainWindowHistory(int index, OutBase outputBase) | ||
{ | ||
Index = index; | ||
OutputBase = outputBase; | ||
} | ||
} | ||
} |
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
16 changes: 16 additions & 0 deletions
16
src/applications/IsIdentifiableReviewer/Out/OutBaseHistory.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,16 @@ | ||
using Microservices.IsIdentifiable.Rules; | ||
|
||
namespace IsIdentifiableReviewer.Out | ||
{ | ||
public class OutBaseHistory | ||
{ | ||
public IsIdentifiableRule Rule { get; } | ||
public string Yaml { get; } | ||
|
||
public OutBaseHistory(IsIdentifiableRule rule, string yaml) | ||
{ | ||
Rule = rule; | ||
Yaml = yaml; | ||
} | ||
} | ||
} |
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
31 changes: 31 additions & 0 deletions
31
src/applications/IsIdentifiableReviewer/Out/SymbolsRulesFactory.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,31 @@ | ||
using System.Text; | ||
using System.Text.RegularExpressions; | ||
using Microservices.IsIdentifiable.Reporting; | ||
|
||
namespace IsIdentifiableReviewer.Out | ||
{ | ||
public class SymbolsRulesFactory : IRulePatternFactory | ||
{ | ||
public string GetPattern(object sender, Failure failure) | ||
{ | ||
StringBuilder sb = new StringBuilder(); | ||
|
||
for (int i = 0; i < failure.ProblemValue.Length; i++) | ||
{ | ||
char cur = failure.ProblemValue[i]; | ||
|
||
if (char.IsDigit(cur)) | ||
sb.Append("\\d"); | ||
else | ||
if (char.IsLetter(cur)) | ||
sb.Append(char.IsUpper(cur) ? "[A-Z]" : "[a-z]"); | ||
else | ||
{ | ||
sb.Append(Regex.Escape(cur.ToString())); | ||
} | ||
} | ||
|
||
return "^" + sb + "$"; | ||
} | ||
} | ||
} |
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.