Skip to content

Commit

Permalink
Fix Issues with Confidence Display on Key Features Page of HTML Report (
Browse files Browse the repository at this point in the history
#553)

* Remove legacy files from separate rules repo

* Switch Tag Detection for Features page to Regex

And update all search patterns to be regular expression istead of exact match

* Update Dependencies
  • Loading branch information
gfs authored Jul 25, 2023
1 parent 774ba64 commit 4bb352a
Show file tree
Hide file tree
Showing 13 changed files with 114 additions and 253 deletions.
4 changes: 2 additions & 2 deletions AppInspector.Benchmarks/AppInspector.Benchmarks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.13.5" />
<PackageReference Include="BenchmarkDotNet.Diagnostics.Windows" Version="0.13.5" />
<PackageReference Include="BenchmarkDotNet" Version="0.13.6" />
<PackageReference Include="BenchmarkDotNet.Diagnostics.Windows" Version="0.13.6" />

</ItemGroup>
<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions AppInspector.CLI/AppInspector.CLI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@

<ItemGroup>
<PackageReference Include="DotLiquid" Version="2.2.692" />
<PackageReference Include="Sarif.Sdk" Version="4.2.0" />
<PackageReference Include="Serilog" Version="2.12.0" />
<PackageReference Include="Sarif.Sdk" Version="4.2.2" />
<PackageReference Include="Serilog" Version="3.0.1" />
<PackageReference Include="Serilog.Extensions.Logging" Version="7.0.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="4.1.0" />
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />
Expand Down
2 changes: 1 addition & 1 deletion AppInspector.CLI/Writers/AnalyzeHtmlWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public void PopulateTagGroups()
foreach (var pattern in tagGroup.Patterns ?? new List<TagSearchPattern>())
{
pattern.Detected = _appMetaData?.UniqueTags is not null &&
_appMetaData.UniqueTags.Any(v => v == pattern.SearchPattern);
_appMetaData.UniqueTags.Any(v => pattern.Expression.IsMatch(v));
if (unSupportedGroupsOrPatterns.Any(x => pattern.SearchPattern.ToLower().Contains(x)))
{
_logger.LogWarning(
Expand Down
Loading

0 comments on commit 4bb352a

Please sign in to comment.