From 06dcba18e7750bb6dac359348d80ad68ea0b47b2 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Tue, 30 Aug 2022 23:57:01 +0100 Subject: [PATCH] Minor cleanup (#1) * Standardise xml file naming * Add .gitattributes * composer.json: Use tabs consistently for indenting * composer.json: Simplify scripts --- .gitattributes | 5 +++ phpcs.xml => .phpcs.xml | 0 composer.json | 62 ++++++++++++++++----------------- phpunit.xml => phpunit.xml.dist | 0 4 files changed, 36 insertions(+), 31 deletions(-) create mode 100644 .gitattributes rename phpcs.xml => .phpcs.xml (100%) rename phpunit.xml => phpunit.xml.dist (100%) diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..7d24524 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +.* export-ignore +tests/ export-ignore +composer.json export-ignore +composer.lock export-ignore +phpunit.xml.dist export-ignore diff --git a/phpcs.xml b/.phpcs.xml similarity index 100% rename from phpcs.xml rename to .phpcs.xml diff --git a/composer.json b/composer.json index 23f8dca..bd75be4 100644 --- a/composer.json +++ b/composer.json @@ -1,32 +1,32 @@ { - "name": "theresnotime/ipa-validator", - "description": "Composer package for validating and normalizing IPA", - "type": "library", - "license": "GPL-2.0-or-later", - "minimum-stability": "stable", - "support": { - "issues": "https://github.com/theresnotime/php-ipa-validator/issues" - }, - "autoload": { - "psr-4": { - "TheresNoTime\\IPAValidator\\": "src/" - } - }, - "authors": [ - { - "name": "TheresNoTime", - "email": "sam@theresnotime.co.uk" - } - ], - "require-dev": { - "mediawiki/mediawiki-codesniffer": "39.0.0", + "name": "theresnotime/ipa-validator", + "description": "Composer package for validating and normalizing IPA", + "type": "library", + "license": "GPL-2.0-or-later", + "minimum-stability": "stable", + "support": { + "issues": "https://github.com/theresnotime/php-ipa-validator/issues" + }, + "autoload": { + "psr-4": { + "TheresNoTime\\IPAValidator\\": "src/" + } + }, + "authors": [ + { + "name": "TheresNoTime", + "email": "sam@theresnotime.co.uk" + } + ], + "require-dev": { + "mediawiki/mediawiki-codesniffer": "39.0.0", "mediawiki/minus-x": "1.1.1", "mediawiki/mediawiki-phan-config": "0.11.1", "php-parallel-lint/php-console-highlighter": "1.0.0", "php-parallel-lint/php-parallel-lint": "1.3.2", - "phpunit/phpunit": "^9.5" - }, - "scripts": { + "phpunit/phpunit": "^9.5" + }, + "scripts": { "test": [ "parallel-lint . --exclude vendor --exclude node_modules", "@phpcs", @@ -36,14 +36,14 @@ "minus-x fix .", "phpcbf" ], - "full-test": [ - "parallel-lint . --exclude vendor --exclude node_modules", + "full-test": [ + "parallel-lint . --exclude vendor --exclude node_modules", "@phpcs", "minus-x check .", - "@phpunit" - ], - "phan": "./vendor/bin/phan -d . --long-progress-bar", - "phpcs": "./vendor/bin/phpcs -sp --cache", - "phpunit": "./vendor/bin/phpunit --colors=always -c phpunit.xml" + "@phpunit" + ], + "phan": "phan -d . --long-progress-bar", + "phpcs": "phpcs -sp --cache", + "phpunit": "phpunit --colors=always" } } diff --git a/phpunit.xml b/phpunit.xml.dist similarity index 100% rename from phpunit.xml rename to phpunit.xml.dist