Skip to content

Commit 29237a7

Browse files
author
Tadas
committed
Added info about supressing errors for PHP Mess Detector
1 parent fa344af commit 29237a7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,16 @@ And then to use it, just:
308308
phpmdRule public methods under
309309
```
310310

311+
Whatever ruel is returned by phpmdRule call, supress it in PHP using dock block.
312+
313+
314+
```php
315+
/**
316+
* @SuppressWarnings(PHPMD.SomeRule)
317+
*/
318+
publinc function someMethod() { }
319+
```
320+
311321
### Markdown Links Checker
312322

313323
This is a small utility [bundled with this repo](./src/Markdown/LinksChecker.php)

0 commit comments

Comments
 (0)