Identify files based on rules for protected mode code validation
https://internal-tracker.builder.ai/#/projects/3651?storyId=1978875
Changes have been tested on the project https://gitlab.builder.ai/builder/builder-bx/Bx/assembler_projects/stg/autobxengpro06043183-178150-ruby/-/merge_requests
Add additional functionality for BE code validator so that the code validator will identify the list of files to be validated based on the following rules:
- Remove excluded dirs (vendor/ and tmp/)
- Remove binary files
We will not have the option of whitelisting files for BE repositories.
Additionaly, fixed BE code validator to handle the scenario where in, if the .validationignore
file specifies directories, the files in the specified directory should not be considered for code-validation.
This case was not correctly handled before for BE repositories operating with protected-mode flag,
Tests have been added to verify this functionality with both protected and customised area flags.