forked from phpDocumentor/phpDocumentor
-
Notifications
You must be signed in to change notification settings - Fork 2
/
phpstan.neon
27 lines (27 loc) · 1.92 KB
/
phpstan.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
parameters:
ignoreErrors:
- '#Constructor of class phpDocumentor\\Plugin\\Twig\\Extension has an unused parameter \$transformation#'
- '#Call to an undefined method League\\Flysystem\\Filesystem::find()#'
- '#Call to an undefined method Zend\\Cache\\Storage\\Adapter\\AdapterOptions::setCacheDir()#'
- '#PHPDoc tag [a-zA-Z0-9@]+ has invalid value ([a-zA-Z0-9`\.@\s\(\)\{]+): Unexpected token "`", expected TOKEN_IDENTIFIER at offset#'
- '#Access to an undefined property phpDocumentor\\Descriptor\\Collection::\$[a-z]+#'
excludes_analyse:
#test data
- %currentWorkingDirectory%/tests/features/**/*.php
- %currentWorkingDirectory%/tests/data/*.php
- %currentWorkingDirectory%/tests/features/assets/**/*.php
- %currentWorkingDirectory%/tests/ReferenceImplementation.php
# files with issues because of removed validators
- %currentWorkingDirectory%/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xml.php
- %currentWorkingDirectory%/src/phpDocumentor/Plugin/Core/Transformer/Writer/Checkstyle.php
# use of magic methods
- %currentWorkingDirectory%/src/phpDocumentor/Plugin/Graphs/Writer/Graph.php
- %currentWorkingDirectory%/src/phpDocumentor/Parser/Command/Project/ParseCommand.php
# method doesn't exist??? phpDocumentor\Plugin\Scrybe\Converter\ToLatexInterface::setTableOfContents()
- %currentWorkingDirectory%/src/phpDocumentor/Plugin/Scrybe/Command/Manual/ToLatexCommand.php
# exclude scrybe, since this is not a working plugin at the moment
- %currentWorkingDirectory%/src/phpDocumentor/Plugin/Scrybe/**/*.php
# needs adjustment of interface in phpDocumentor/reflection in order to be able to typehint the command
- %currentWorkingDirectory%/src/phpDocumentor/Parser/Middleware/*.php
# phpunit TestCase while having to use a composer-global install ("Class PHPUnit\\Framework\\TestCase not found and could not be autoloaded")
- %currentWorkingDirectory%/tests/unit/**/*.php