Smarty extended class is now included in checks and is fixed. Add the lib/ folder to the composer.json autoloader block so we can use the composer autoloader and not the one from CoreLibs Added an autoloader load test backend file
58 lines
1.6 KiB
Plaintext
58 lines
1.6 KiB
Plaintext
# PHP Stan Config
|
|
|
|
parameters:
|
|
tmpDir: /tmp/phpstan-corelibs
|
|
level: max
|
|
paths:
|
|
- %currentWorkingDirectory%/www
|
|
bootstrapFiles:
|
|
- %currentWorkingDirectory%/phpstan-bootstrap.php
|
|
# - %currentWorkingDirectory%/www/lib/autoloader.php
|
|
- %currentWorkingDirectory%/www/vendor/autoload.php
|
|
scanDirectories:
|
|
- www/lib/Smarty
|
|
scanFiles:
|
|
- www/configs/config.php
|
|
- www/configs/config.master.php
|
|
# if composer.json autoloader defined, this is not needed
|
|
# - www/lib/autoloader.php
|
|
- www/vendor/autoload.php
|
|
- www/lib/Smarty/Autoloader.php
|
|
excludes_analyse:
|
|
# do not check old qq file uploader tests
|
|
- www/admin/qq_file_upload_*.php
|
|
# ignore all test files
|
|
- www/admin/class_test*php
|
|
- www/admin/error_test.php
|
|
# admin synlink files
|
|
- www/admin/edit_*.php
|
|
# ignore admin header stuff
|
|
# - www/includes/admin_header.php # ignore the admin include stuff
|
|
- www/includes/admin_footer.php # ignore the admin include stuff
|
|
# deprecated files
|
|
- www/includes/admin_set_paths.php # ignore the admin include stuff
|
|
- www/includes/admin_smarty.php # ignore the admin include stuff
|
|
# folders with data no check needed
|
|
- www/templates_c
|
|
- www/cache
|
|
- www/log
|
|
- www/media
|
|
- www/tmp
|
|
# external libs are not checked
|
|
- www/lib/pChart*
|
|
- www/lib/Smarty*
|
|
# ignore composer
|
|
- www/vendor
|
|
# ignore errores with
|
|
ignoreErrors:
|
|
# -
|
|
# message: '#Reflection error: [a-zA-Z0-9\\_]+ not found.#'
|
|
# path: www/includes/edit_base.php
|
|
#- 'error regex'
|
|
#-
|
|
# message: 'error regex'
|
|
# path: %currentWorkingDirectory%/www/some/*
|
|
# paths:
|
|
# - ...
|
|
# - ...
|