Skip to main content

A setting for .snyk file exclusions in Snyk Code

New

Snyk Code now lets organization admins control whether the file exclusions defined in a repository's .snyk file are applied during scans.

What changes

The setting Apply file exclusions from .snyk is available under Settings > Snyk Code. It applies to SCM imports, recurring scans, pull request checks, the Snyk CLI and IDEs. It is enabled by default, so existing behavior is unchanged.

When an admin disables the setting, Snyk Code scans every file, including the paths that .snyk files exclude. In the Snyk CLI and IDEs, disabling the setting also turns off .dcignore rules. Organization admins can also read and change the setting through the Snyk API. Changes to the setting are recorded in the audit log.

The Snyk CLI and IDE extensions honor the setting starting with the upcoming v1.1310.0 CLI version, slated for release on December 7. Earlier versions continue to apply the exclusions until they are upgraded.

What to expect

Projects scanned with the setting disabled can report additional findings.

Learn more in Exclude directories and files from Project import.

Headshot of Sebastian Roth

Sebastian Roth | Senior Product Manager