Skip to content

Log different messages depending on analyzeAll setting

Bence Nagy requested to merge underyx/command:analyze-all-logs into main

What does this MR do?

Log different messages depending on analyzeAll setting

Previously, every run would log a subdirectory of the repository which matches the analyzer's path pattern. This was confusing when analyzeAll made it so all directories would be scanned anyway.

This commit updates logging so the matching subdirectory is printed only when analyzeAll is false. Otherwise, we log that the entire repository will be analyzed.

What are the relevant issue numbers?

Closes https://gitlab.com/gitlab-org/security-products/analyzers/semgrep/-/issues/5

Does this MR meet the acceptance criteria?

Edited by Zach Rice

Merge request reports