From 7c39038ba3502617f9e3b41665ac27d6069f8212 Mon Sep 17 00:00:00 2001 From: nicomiguelino Date: Fri, 31 Jan 2025 09:35:11 -0800 Subject: [PATCH] chore: associate the `lint` service to a new profile named `lint` --- .gitignore | 3 +++ README.md | 7 +++++++ composer.lock | 46 +++++++++++++++++++++++++--------------------- docker-compose.yml | 3 +++ 4 files changed, 38 insertions(+), 21 deletions(-) diff --git a/.gitignore b/.gitignore index 34dbe7d..1ac46a4 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,6 @@ # OS files .DS_Store Thumbs.db + +# PHP CodeSniffer +.phpcs-cache diff --git a/README.md b/README.md index 3470836..1d52797 100644 --- a/README.md +++ b/README.md @@ -111,6 +111,13 @@ docker compose --profile dev up --build docker compose --profile test up wordpress-test ``` +1. For running linting: + +```bash +# Run linting checks +docker compose --profile lint up +``` + ### Release Process 1. Update version and changelog: diff --git a/composer.lock b/composer.lock index 2bb1692..1b2fee7 100644 --- a/composer.lock +++ b/composer.lock @@ -217,16 +217,16 @@ }, { "name": "nikic/php-parser", - "version": "v5.3.1", + "version": "v5.4.0", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "8eea230464783aa9671db8eea6f8c6ac5285794b" + "reference": "447a020a1f875a434d62f2a401f53b82a396e494" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/8eea230464783aa9671db8eea6f8c6ac5285794b", - "reference": "8eea230464783aa9671db8eea6f8c6ac5285794b", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/447a020a1f875a434d62f2a401f53b82a396e494", + "reference": "447a020a1f875a434d62f2a401f53b82a396e494", "shasum": "" }, "require": { @@ -269,9 +269,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v5.3.1" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.4.0" }, - "time": "2024-10-08T18:51:32+00:00" + "time": "2024-12-30T11:07:19+00:00" }, { "name": "phar-io/manifest", @@ -527,16 +527,16 @@ }, { "name": "phpcompatibility/phpcompatibility-wp", - "version": "2.1.5", + "version": "2.1.6", "source": { "type": "git", "url": "https://github.com/PHPCompatibility/PHPCompatibilityWP.git", - "reference": "01c1ff2704a58e46f0cb1ca9d06aee07b3589082" + "reference": "80ccb1a7640995edf1b87a4409fa584cd5869469" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityWP/zipball/01c1ff2704a58e46f0cb1ca9d06aee07b3589082", - "reference": "01c1ff2704a58e46f0cb1ca9d06aee07b3589082", + "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityWP/zipball/80ccb1a7640995edf1b87a4409fa584cd5869469", + "reference": "80ccb1a7640995edf1b87a4409fa584cd5869469", "shasum": "" }, "require": { @@ -593,7 +593,7 @@ "type": "open_collective" } ], - "time": "2024-04-24T21:37:59+00:00" + "time": "2025-01-16T22:34:19+00:00" }, { "name": "phpcsstandards/phpcsextra", @@ -2260,16 +2260,16 @@ }, { "name": "squizlabs/php_codesniffer", - "version": "3.11.2", + "version": "3.11.3", "source": { "type": "git", "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git", - "reference": "1368f4a58c3c52114b86b1abe8f4098869cb0079" + "reference": "ba05f990e79cbe69b9f35c8c1ac8dca7eecc3a10" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/1368f4a58c3c52114b86b1abe8f4098869cb0079", - "reference": "1368f4a58c3c52114b86b1abe8f4098869cb0079", + "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/ba05f990e79cbe69b9f35c8c1ac8dca7eecc3a10", + "reference": "ba05f990e79cbe69b9f35c8c1ac8dca7eecc3a10", "shasum": "" }, "require": { @@ -2334,9 +2334,13 @@ { "url": "https://opencollective.com/php_codesniffer", "type": "open_collective" + }, + { + "url": "https://thanks.dev/phpcsstandards", + "type": "thanks_dev" } ], - "time": "2024-12-11T16:04:26+00:00" + "time": "2025-01-23T17:04:15+00:00" }, { "name": "theseer/tokenizer", @@ -2456,16 +2460,16 @@ }, { "name": "yoast/phpunit-polyfills", - "version": "2.0.2", + "version": "2.0.3", "source": { "type": "git", "url": "https://github.com/Yoast/PHPUnit-Polyfills.git", - "reference": "562f449a2ec8ab92fe7b30d94da9622c7b1345fe" + "reference": "f202832368f16ef2dc486678ac7569ee85c5fc6a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Yoast/PHPUnit-Polyfills/zipball/562f449a2ec8ab92fe7b30d94da9622c7b1345fe", - "reference": "562f449a2ec8ab92fe7b30d94da9622c7b1345fe", + "url": "https://api.github.com/repos/Yoast/PHPUnit-Polyfills/zipball/f202832368f16ef2dc486678ac7569ee85c5fc6a", + "reference": "f202832368f16ef2dc486678ac7569ee85c5fc6a", "shasum": "" }, "require": { @@ -2515,7 +2519,7 @@ "security": "https://github.com/Yoast/PHPUnit-Polyfills/security/policy", "source": "https://github.com/Yoast/PHPUnit-Polyfills" }, - "time": "2024-09-06T22:38:28+00:00" + "time": "2025-01-08T17:29:31+00:00" } ], "aliases": [], diff --git a/docker-compose.yml b/docker-compose.yml index d44ee43..457451f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -89,7 +89,10 @@ services: PHP_VERSION: ${PHP_VERSION:-7.4} volumes: - .:/var/www/html/wp-content/plugins/screenly-cast + entrypoint: [] command: bash -c "composer update && composer run lint" + profiles: + - lint volumes: wordpress_data: