Skip to content

Commit

Permalink
Intrafile and Singlefile expressions weren't respecting retry (#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddynaka committed Aug 14, 2021
1 parent a1cc4de commit f687e5e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Src/Sarif.PatternMatcher/ValidatorsCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ public ValidatorsCache(IEnumerable<string> validatorBinaryPaths = null, IFileSys
var flexMatchProperties = new Dictionary<string, FlexMatch>();
flexMatchProperties.AddProperties(properties);
flexMatchProperties["scanTargetFullPath"] = new FlexMatch { Value = filePath };
flexMatchProperties["retry"] = new FlexMatch { Value = context.Retry ? bool.TrueString : bool.FalseString };
flexMatchProperties["enhancedReporting"] = new FlexMatch { Value = context.EnhancedReporting ? bool.TrueString : bool.FalseString };


foreach (Dictionary<string, FlexMatch> groups in combinations)
{
Expand Down

0 comments on commit f687e5e

Please sign in to comment.