Ignore a specific file or directory
SymfonyInsight analyses all the files of your project, but it excludes by default the following directories, commonly used to store tests and third-party libraries:
vendor/
vendors/
test/
tests/
Tests/
spec/
features/
Fixtures/
DataFixtures/
var/
In case you need to exclude other files or directories in your projects,
you can use two configuration keys: global_exclude_dirs
and exclude_patterns
.
Note
You can learn more about how to configure SymfonyInsight on the dedicated documentation page.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
global_exclude_dirs:
- vendor
- vendors
- test
- tests
- Tests
- spec
- features
- Fixtures
- DataFixtures
- var
exclude_patterns:
- file.php
- build/*.php
If you want to completely override the directories that Insight excludes by
default, add an empty global_exclude_dirs
configuration option.