Skip to content

Commit

Permalink
variable rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Omotola committed Sep 28, 2023
1 parent 34918fc commit a11076e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ public async Task<ScanResult> ExecuteScanAsync(ScanSettings settings)

var detectorRestrictions = this.GetDetectorRestrictions(settings);
var detectors = this.detectors.ToList();
var restrictedDetectors = this.detectorRestrictionService.ApplyRestrictions(detectorRestrictions, detectors).ToImmutableList();
detectorRestrictions.DisabledDetectors = detectors.Except(restrictedDetectors).ToList();
var detectorsWithAppliedRestrictions = this.detectorRestrictionService.ApplyRestrictions(detectorRestrictions, detectors).ToImmutableList();
detectorRestrictions.DisabledDetectors = detectors.Except(detectorsWithAppliedRestrictions).ToList();

this.logger.LogDebug("Finished applying restrictions to detectors.");

var processingResult = await this.detectorProcessingService.ProcessDetectorsAsync(settings, restrictedDetectors, detectorRestrictions);
var processingResult = await this.detectorProcessingService.ProcessDetectorsAsync(settings, detectorsWithAppliedRestrictions, detectorRestrictions);
var scanResult = this.graphTranslationService.GenerateScanResultFromProcessingResult(processingResult, settings);

scanResult.DetectorsInScan = restrictedDetectors.Select(ConvertToContract).ToList();
scanResult.DetectorsInScan = detectorsWithAppliedRestrictions.Select(ConvertToContract).ToList();
scanResult.DetectorsNotInScan = detectorRestrictions.DisabledDetectors.Select(ConvertToContract).ToList();
scanResult.ResultCode = processingResult.ResultCode;

Expand Down

0 comments on commit a11076e

Please sign in to comment.