You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-3
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ Found unused dependencies!
49
49
```
50
50
51
51
## Detected issues:
52
-
This tool reads your `composer.json` and scans all paths listed in `autoload` & `autoload-dev` sections while analysing:
52
+
This tool reads your `composer.json` and scans all paths listed in `autoload` & `autoload-dev` sections while analysing you dependencies (both **packages and PHP extensions**).
53
53
54
54
### Shadowed dependencies
55
55
- Those are dependencies of your dependencies, which are not listed in `composer.json`
@@ -84,6 +84,7 @@ This tool reads your `composer.json` and scans all paths listed in `autoload` &
84
84
-`--verbose` to see more example classes & usages
85
85
-`--show-all-usages` to see all usages
86
86
-`--format` to use different output format, available are: `console` (default), `junit`
87
+
-`--disable-ext-analysis` to disable php extensions analysis (e.g. `ext-xml`)
87
88
-`--ignore-unknown-classes` to globally ignore unknown classes
88
89
-`--ignore-unknown-functions` to globally ignore unknown functions
89
90
-`--ignore-shadow-deps` to globally ignore shadow dependencies
@@ -128,6 +129,7 @@ return $config
128
129
//// Adjust analysis
129
130
->enableAnalysisOfUnusedDevDependencies() // dev packages are often used only in CI, so this is not enabled by default
130
131
->disableReportingUnmatchedIgnores() // do not report ignores that never matched any error
132
+
->disableExtensionsAnalysis() // do not analyse ext-* dependencies
131
133
132
134
//// Use symbols from yaml/xml/neon files
133
135
// - designed for DIC config files (see below)
@@ -166,8 +168,8 @@ Another approach for DIC-only usages is to scan the generated php file, but that
0 commit comments