Align search w/ gemnasium-maven using Readdirnames
What does this MR do?
Rewrite scanner/finder
using File.Readdirnames, similar to what already exists in gemnasium-maven
. Files contained in a directory are checked before entering sub-directory.
The new code contains TODOs for future changes that will ultimately unify the search across all Gemnasium projects.
Behavior doesn't change but the dependency files might be processed in a different order. This results in no different in the case of gemnasium
because it scans all supported files.
What are the relevant issue numbers?
gitlab-org/gitlab#263441 (closed)
Does this MR meet the acceptance criteria?
Changelog entry added- Documentation created/updated for GitLab EE, if necessary
-
Documentation created/updated for this project, if necessary -
Documentation reviewed by technical writer or follow-up review issue created -
Tests added for this feature/bug -
Job definition updated, if necessary -
Conforms to the code review guidelines -
Conforms to the Go guidelines -
Security reports checked/validated by reviewer
Edited by Fabien Catteau