From 0cb9e5c5a9824783f5b63fa0f5bdb1274355f258 Mon Sep 17 00:00:00 2001 From: "J. Peter M. Schuler" Date: Mon, 23 May 2022 19:10:21 +0200 Subject: [PATCH] [TASK] remove empty placeholder folders --- .php-cs-fixer.php | 4 +--- Configuration/.keep | 0 Documentation/Settings.cfg | 3 --- Tests/Unit/.keep | 0 composer.json | 9 ++++----- phpstan.neon | 4 ---- 6 files changed, 5 insertions(+), 15 deletions(-) delete mode 100644 Configuration/.keep delete mode 100644 Documentation/Settings.cfg delete mode 100644 Tests/Unit/.keep diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index 75f5301..3f57f60 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -33,9 +33,7 @@ } // Define in which folders to search and which folders to exclude $finder = (new PhpCsFixer\Finder()) - ->in('Classes') - ->in('Tests') - ->in('Configuration'); + ->in('Classes'); // Return a Code Sniffing configuration using // all sniffers needed for PSR-2 // and additionally: diff --git a/Configuration/.keep b/Configuration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Documentation/Settings.cfg b/Documentation/Settings.cfg deleted file mode 100644 index c5865f2..0000000 --- a/Documentation/Settings.cfg +++ /dev/null @@ -1,3 +0,0 @@ -[general] - -project = TemplaVoilà! Plus: Content Slide \ No newline at end of file diff --git a/Tests/Unit/.keep b/Tests/Unit/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/composer.json b/composer.json index dad1af6..18ebe1c 100644 --- a/composer.json +++ b/composer.json @@ -71,7 +71,7 @@ "@check:phpcs:dry-run", "@check:phpstan" ], - "check:php": "find *.php Classes Configuration Tests -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l", + "check:php": "find *.php Classes -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l", "check:php-cs-fixer": "php-cs-fixer fix", "check:php-cs-fixer:dry-run": "php-cs-fixer fix --dry-run --using-cache=no --diff", "check:php:podman": "@check:php:podman:all", @@ -85,11 +85,10 @@ "check:php:podman:php74": "podman run --rm -it -v $(pwd):/data thecodingmachine/php:7.4-v4-slim-cli /bin/bash -c \"cd /data; composer run check:php\"", "check:php:podman:php80": "podman run --rm -it -v $(pwd):/data thecodingmachine/php:8.0-v4-slim-cli /bin/bash -c \"cd /data; composer run check:php\"", "check:php:podman:php81": "podman run --rm -it -v $(pwd):/data thecodingmachine/php:8.1-v4-slim-cli /bin/bash -c \"cd /data; composer run check:php\"", - "check:phpcbf": "phpcbf Classes Configuration Tests", + "check:phpcbf": "phpcbf Classes", "check:phpcs": "@check:phpcbf", - "check:phpcs:dry-run": "phpcs Classes Configuration Tests", - "check:phpcs:dry-run:ci": "phpcs --report=full --report-\\Micheh\\PhpCodeSniffer\\Report\\Gitlab=report.phpcs.json Classes Configuration Tests", - "check:phpsniff:failOnWarnings": "phpcs Classes Configuration Tests", + "check:phpcs:dry-run": "phpcs Classes", + "check:phpsniff:failOnWarnings": "phpcs Classes ", "check:phpstan": "phpstan --level=$(composer config extra.phpstan.level 2> /dev/null || echo 5) --memory-limit=1G analyse", "check:phpstan:ci": "phpstan --level=$(composer config extra.phpstan.level 2> /dev/null || echo 5) --memory-limit=1G --no-progress --error-format gitlab analyse > report.phpstan.json", "check:phpstan:generateBaseline": "phpstan --level=$(composer config extra.phpstan.level 2> /dev/null || echo 5) --memory-limit=1G --generate-baseline=phpstan-baseline.neon analyse", diff --git a/phpstan.neon b/phpstan.neon index 823279e..af76447 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -3,11 +3,7 @@ includes: parameters: paths: - Classes - - Tests - excludePaths: - - Classes/Utility/Conf.php bootstrapFiles: - .Build/vendor/autoload.php scanDirectories: - Classes - - Tests