diff --git a/.gitignore b/.gitignore index 33a1c33..3791aed 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,8 @@ # misc .DS_Store Thumbs.db + +# is created during composer install, +# when package is tested +# and not running within ft-platform +/wp-content/ diff --git a/.phpcs.xml b/.phpcs.xml index 246d8a6..e571c0d 100644 --- a/.phpcs.xml +++ b/.phpcs.xml @@ -1,14 +1,21 @@ Coding standards for project_urlname - + + . + + */wp-content/* + diff --git a/composer.json b/composer.json index edc47db..8c3a220 100644 --- a/composer.json +++ b/composer.json @@ -26,7 +26,7 @@ "source": "https://github.com/figuren-theater/project_urlname" }, "require-dev": { - "figuren-theater/code-quality": "^0" + "figuren-theater/code-quality": "*" }, "repositories": [ { diff --git a/phpstan.neon b/phpstan.neon index 9c7301e..dc6c2f5 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -9,7 +9,12 @@ parameters: excludePaths: analyse: - vendor/ + # "/wp-content/" is created during composer install, + # when package is tested + # and not running within ft-platform + - wp-content/ - tests/ ignoreErrors: - # Find a nicer way instead of ignoring this Error on every ft-module + # Find a nicer way instead of ignoring this Error on every ft-module - '#Function Altis\\register_module not found\.#' + - '#Function Figuren_Theater\\get_config not found\.#'