...
To ignore files from being scanned, create a file called
.slignore
and list in it the file names to match againstIf 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
A common best practice is to analyze your project files via the output of a command like tree -I ‘node_modules|sl-dry-run-output|sl_dist' -P "*.[jt]s*"
When executed from the root of your project folder, it provides a detailed list of javascript and typescript files and helps to define accurate Ignore Rules as described below.
Ignoring test files
For example, a common best practice is to exclude all the test files from the Build Scan.
...