Exclude/ignore certain folders or single files from the analysis
You can easily exclude certain folders or single files from being analyzed.
These cases include but are not limited to:
- mocks and tests
Add file ".dcignore"
This can be done by adding a special file called ".dcignore" in any of the analyzed project's sub-folders.
This file supports glob syntax with "*" and "**" to specify file masks and sub-folders.
You may create multiple .dcignore files in different sub-folders as you wish.
- in the directory where you want to ignore files, you should create/have a file named ".dcignore"
- In this file: you can list which files should be ignored: e.g. "directory/**" will ignore all files in a directory