Skip to content
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: increase default levels deep to 2 for --all-projects #970

Merged
merged 1 commit into from
Jan 27, 2020

Conversation

lili2311
Copy link
Contributor

@lili2311 lili2311 commented Jan 24, 2020

  • Ready for review
  • Follows CONTRIBUTING rules
  • Reviewed by Snyk internal team

What does this PR do?

Enable the default detection depths to increase from 1 to 2 folders deep.

@lili2311 lili2311 requested a review from a team as a code owner January 24, 2020 10:39
@lili2311 lili2311 self-assigned this Jan 24, 2020
@ghost ghost requested review from aviadhahami and orsagie January 24, 2020 10:39
@lili2311 lili2311 force-pushed the feat/increase-default-depth-all-projects branch from b470cab to b1c0822 Compare January 24, 2020 10:56
@@ -24,7 +24,7 @@ export async function getDepsFromPlugin(
let inspectRes: pluginApi.InspectResult;

if (options.allProjects) {
const levelsDeep = options.detectionDepth || 1; // default to 1 level deep
const levelsDeep = options.detectionDepth;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default defined inside find function is 2

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can predict the future!
goes to buy lottery ticket

@gitphill
Copy link
Contributor

we could update help text with new default depth

@gitphill gitphill force-pushed the feat/increase-default-depth-all-projects branch from b1c0822 to a666a6c Compare January 24, 2020 20:30
For `--all-projects` arg only. Two was selected based on usage seen so
far.
Updated help text with new default.
@gitphill gitphill force-pushed the feat/increase-default-depth-all-projects branch from a666a6c to 7c60f77 Compare January 24, 2020 20:33
@lili2311 lili2311 merged commit d9af224 into master Jan 27, 2020
@lili2311 lili2311 deleted the feat/increase-default-depth-all-projects branch January 27, 2020 09:26
@snyksec
Copy link

snyksec commented Jan 27, 2020

🎉 This PR is included in version 1.281.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants