-
Notifications
You must be signed in to change notification settings - Fork 534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: multi level auto detect #932
Conversation
3354e14
to
73fc9a8
Compare
f8ea93e
to
e8061fa
Compare
e8061fa
to
60f62e3
Compare
60f62e3
to
1730f83
Compare
1730f83
to
9927aa5
Compare
69ef728
to
2b971a6
Compare
56ec020
to
79d06b9
Compare
@@ -26,9 +26,12 @@ export async function getMultiPluginResult( | |||
const allResults: ScannedProjectCustom[] = []; | |||
for (const targetFile of targetFiles) { | |||
const optionsClone = _.cloneDeep(options); | |||
optionsClone.file = path.basename(targetFile); | |||
optionsClone.file = path.relative( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make targetFile relative to the root where the command was run
1ef861f
to
0d181b9
Compare
0189f2d
to
755d3d0
Compare
755d3d0
to
8b5ae16
Compare
4c7f48e
to
e302a5c
Compare
Add --detection-depth arg. Add tests for detection-depth arg to test and monitor. Ensure targetFile is not sent when plugin does not require it (retains project name on existing projects).
b47e644
to
5eccd37
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
🎉 This PR is included in version 1.275.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What does this PR do?
Add support to CLI to auto detect projects in multiple level deep folders.
Added --detection-depth CLI argument to support user supplied folder depth to search.
How should this be manually tested?
snyk test --all-projects --detection-depth=2
To detect all projects in current directory and one subfolder.
What are the relevant tickets?
BST-1118
Screenshots
snyk test test/acceptance/workspaces/large-mono-repo --all-projects --detection-depth=2