Skip to content

SAST execution should raise an error if project directory is empty

Gilbert Roulot requested to merge 6503_fail_if_project_directory_is_empty into master

What does this MR do?

It makes SAST fail and return exit code 4 when the project directory given to it for analyze is empty (as most likelly this happens due to an error in configuration)

Why was this MR needed?

To avoid giving a misleading error message, "project empty" instead of "No compatible analyzer can be found"

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/6503

Merge request reports