Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Sealights' Node.js agent provides the ability to exclude files or folders from the analysis.

  • In order to To ignore files from being scanned, create a file called .slignore and list in it the file names to match against

  • If you are using source maps, you can ignore original files from being included by creating a file called .slignore.generated

  • Both files use glob pattern aligned to .gitignore format

...

If you prefer the option to ignore the TS files, your .slignore.generated will be similar to

Code Block
**/*.spec.ts

...

Ignoring Angular bundle files

It is recommended for angular applications to add the following to your .slignore file:

Code Block
*vendor*.js
*runtime*.js
*inline*.js
*polyfills*.js

Ignoring common mapped files (

...

Images and

...

HTML)

It is recommended to ignore images Images and html HTML files (as they are listed in the source map files) by adding the following to your .slignore.generated file:

...

Code Block
#Ignore everything
*
#Include only files matching below patterns
*chunk*.js
*main*.js

Info

For more details about the format, please refer to the official git documentation that Sealights strictly aligns with.