-
Notifications
You must be signed in to change notification settings - Fork 555
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:exit code 3 when no projects detected #1386
Conversation
ae28322
to
255a8e3
Compare
@@ -51,7 +51,9 @@ function executeTest(root, options) { | |||
return results; | |||
}); | |||
} catch (error) { | |||
return Promise.reject(chalk.red.bold(error)); | |||
return Promise.reject( | |||
chalk.red.bold(error.message ? error.message : error), |
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.
fix to drop Custom Error
from displayed errors.
@@ -10,9 +10,23 @@ Describe "Snyk test command" | |||
snyk test | |||
} | |||
|
|||
It "throws error when file does not exist" |
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.
255a8e3
to
809a73f
Compare
@@ -43,6 +43,7 @@ const debug = Debug('snyk'); | |||
const EXIT_CODES = { | |||
VULNS_FOUND: 1, | |||
ERROR: 2, | |||
NO_SUPPORTED_MANIFESTS_FOUND: 3, |
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.
Could you please also document this somewhere? Readme or help.txt
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.
Documented:
Expected release notes (by @lili2311) features: others (will not be included in Semantic-Release notes):
|
🎉 This PR is included in version 1.389.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What does this PR do?
Add a new Exit Code when non supported manifests were detected so we could not conduct a test.
https://github.com/snyk/snyk/issues/1135
Where should the reviewer start?
https://github.com/snyk/snyk/compare/feat/exit-code-for-no-projects#diff-ebd6539fe4cc61b013d83b586f268b8aR93
How should this be manually tested?
snyk test
run an empty folder for example