Update Ci::Catalog::Resources::ValidationService to scan for components
What does this MR do and why?
Updates the Ci::Catalog::Resources::ValidationService
to include a new check that makes sure the repository contains at least one component.
- Adds
scan_directory_for_components
- Adds a
limit
argument tofetch_component_paths
, and establishes a limit of50
as a default. - Adds a
catalog_resource_components
trait to project to allow us to easily reference a properly structured project that would be a catalog resource with components
This is a broken down MR needed for: #415413 (closed)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.