-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add ignore dependencies option in config file #37
Conversation
This will enable project to ignore libraries while running the supported tool
23b4558
to
4c8df23
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.
looks great, few comments
@@ -38,6 +41,11 @@ async function main(cli, { policyDetails, setupProjectFn }) { | |||
`The dependency ${dep} was found multiple times in the config file. Please refer Rules section in configuration.md`, | |||
); | |||
} | |||
if (ignoredDependencies.includes(dep)) { | |||
throw new Error( | |||
`The dependency ${dep} was found in ignoredDependencies and custom configuration. Please refer Rules section in configuration.md`, |
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 is fine for now, but once #36 lands, we should create a shortend url for it and actually show a url here for people to lookup
This change will provide a way to enable config files to ignore dependencies. #36 has more information on this.
No CLI option to ignore dependencies for now.