1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

Test for dead code in travis

This commit is contained in:
Aidan Woods 2019-01-21 18:21:34 +00:00
parent 7f526c07a0
commit 2cfd05a00e
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9
2 changed files with 22 additions and 0 deletions

View File

@ -43,6 +43,7 @@ jobs:
- '[ -z "$TRAVIS_TAG" ] || [ "$TRAVIS_TAG" == "$(php -r "require(\"vendor/autoload.php\"); echo Erusev\Parsedown\Parsedown::version;")" ]' - '[ -z "$TRAVIS_TAG" ] || [ "$TRAVIS_TAG" == "$(php -r "require(\"vendor/autoload.php\"); echo Erusev\Parsedown\Parsedown::version;")" ]'
- composer test-static - composer test-static
- composer test-formatting - composer test-formatting
- composer test-dead-code
- stage: Test CommonMark (weak) - stage: Test CommonMark (weak)
php: 7.3 php: 7.3

View File

@ -7,4 +7,25 @@
<projectFiles> <projectFiles>
<directory name="src" /> <directory name="src" />
</projectFiles> </projectFiles>
<issueHandlers>
<PossiblyUnusedMethod>
<errorLevel type="suppress">
<referencedMethod name="Erusev\Parsedown\Components\Inlines\PlainText::text" />
<referencedMethod name="Erusev\Parsedown\Html\Renderables\Container::contents" />
<referencedMethod name="Erusev\Parsedown\Html\Renderables\Element::create" />
<referencedMethod name="Erusev\Parsedown\Html\Renderables\Element::attributes" />
<referencedMethod name="Erusev\Parsedown\Html\Renderables\Element::settingName" />
<referencedMethod name="Erusev\Parsedown\Html\Renderables\Element::settingAttributes" />
<referencedMethod name="Erusev\Parsedown\Html\Renderables\Element::settingContents" />
<referencedMethod name="Erusev\Parsedown\Html\Renderables\Text::getStringBacking" />
<referencedMethod name="Erusev\Parsedown\Parsedown::__construct" />
<referencedMethod name="Erusev\Parsedown\Parsedown::text" />
<referencedMethod name="Erusev\Parsedown\Parsing\Lines::appendingContext" />
<referencedMethod name="Erusev\Parsedown\State::get" />
<referencedMethod name="Erusev\Parsedown\Parsedown::line" />
<referencedMethod name="Erusev\Parsedown\Parsing\Lines::last" />
</errorLevel>
</PossiblyUnusedMethod>
</issueHandlers>
</psalm> </psalm>