How to use the snyk-policy.create function in snyk-policy

To help you get started, we’ve selected a few snyk-policy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github snyk / snyk / src / cli / commands / ignore.ts View on Github external
.catch((error) => {
          if (error.code === 'ENOENT') {
            // file does not exist - create it
            return policy.create();
          }
          throw Error('policyFile');
        })
        .then(function ignoreIssue(pol) {

snyk-policy

Snyk's policy parser and matching logic

Apache-2.0
Latest version published 10 months ago

Package Health Score

66 / 100
Full package analysis