From 6fc8a5998fbd306bc6dc012a7b047b42eb82485d Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 10 Jun 2020 19:00:37 +0100 Subject: [PATCH] added phpstan configuration --- .gitignore | 5 ++++- phpstan-composer.json | 14 ++++++++++++++ phpstan.neon.dist | 6 ++++++ 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 phpstan-composer.json create mode 100644 phpstan.neon.dist diff --git a/.gitignore b/.gitignore index 23dc930..d1d73d2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ .idea/ -*.phar \ No newline at end of file +*.phar +/vendor +/phpstan-composer.lock +/phpstan.neon diff --git a/phpstan-composer.json b/phpstan-composer.json new file mode 100644 index 0000000..561a853 --- /dev/null +++ b/phpstan-composer.json @@ -0,0 +1,14 @@ +{ + "name": "pocketmine/phpstan-plugin-config", + "require": { + "phpstan/phpstan": "^0.12.26", + "pocketmine/pocketmine-mp": "^3.11.3", + "phpstan/phpstan-strict-rules": "^0.12.2", + "phpstan/extension-installer": "^1.0" + }, + "autoload": { + "psr-4": { + "": "./src" + } + } +} diff --git a/phpstan.neon.dist b/phpstan.neon.dist new file mode 100644 index 0000000..92ba9d6 --- /dev/null +++ b/phpstan.neon.dist @@ -0,0 +1,6 @@ +parameters: + level: 6 + paths: + - src + scanFiles: + - src/DevTools/ConsoleScript.php