Skip to content

Commit c218837

Browse files
authored
README: mention excluder info in error message (#147)
1 parent 8c3abf4 commit c218837

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ parameters:
100100
- %currentWorkingDirectory%/tests
101101
```
102102

103+
With such setup, members used only in tests will be reported with corresponding message, e.g:
104+
105+
```
106+
Unused AddressValidator::isValidPostalCode (all usages excluded by tests excluder)
107+
```
108+
103109
## Customization:
104110
- If your application does some magic calls unknown to this library, you can implement your own usage provider.
105111
- Just tag it with `shipmonk.deadCode.memberUsageProvider` and implement `ShipMonk\PHPStan\DeadCode\Provider\MemberUsageProvider`

0 commit comments

Comments
 (0)