From ee1dafd8d8fb9d6c673666a68816d78095078bbc Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Thu, 18 Jun 2020 13:44:57 +0900 Subject: [PATCH] PHP stan settings update, vscode config file --- .vscode/bookmarks.json | 12 ++++++++++++ phpstan.neon | 14 ++++++++------ 2 files changed, 20 insertions(+), 6 deletions(-) create mode 100644 .vscode/bookmarks.json diff --git a/.vscode/bookmarks.json b/.vscode/bookmarks.json new file mode 100644 index 00000000..d648280a --- /dev/null +++ b/.vscode/bookmarks.json @@ -0,0 +1,12 @@ +[ + { + "path": "$ROOTPATH$/www/lib/CoreLibs/Basic.php", + "bookmarks": [ + { + "line": 534, + "column": 1, + "label": "" + } + ] + } +] \ No newline at end of file diff --git a/phpstan.neon b/phpstan.neon index a6b37d14..b0b95cae 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -5,14 +5,16 @@ parameters: level: 1 paths: - %currentWorkingDirectory%/www - #bootstrap: %currentWorkingDirectory%/phpstan-bootstrap.php - #bootstrap: phpstan-bootstrap.php - autoload_directories: - autoload_files: + bootstrapFiles: - %currentWorkingDirectory%/phpstan-bootstrap.php + scanDirectories: + - www/lib/Smarty + scanFiles: + - www/configs/config.php - www/configs/config.master.php - www/lib/autoloader.php - www/vendor/autoload.php + - www/lib/Smarty/Autoloader.php excludes_analyse: # no check admin - www/admin/qq_file_upload_front.php @@ -40,8 +42,8 @@ parameters: - www/tmp - www/lib/pChart - www/lib/pChart2.1.4 - - www/lib/Smarty/ - - www/lib/smarty-3.1.30/ + - www/lib/Smarty + - www/lib/smarty-3.1.30 # ignore composer - www/vendor # ignore errores with