From 6db91b73b1ca46323705cf15d42a6c4cc36bd8f2 Mon Sep 17 00:00:00 2001 From: carstingaxion Date: Sun, 22 Oct 2023 14:45:54 +0000 Subject: [PATCH 1/2] Update changelog to 0.9.0 --- CHANGELOG.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 292ef72..eeca2cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,14 @@ All notable changes to this project will be documented in this file. -## [Unreleased](https://github.com/figuren-theater/code-quality/compare/0.8.1...HEAD) +## [Unreleased](https://github.com/figuren-theater/code-quality/compare/0.9.0...HEAD) + +## [0.9.0](https://github.com/figuren-theater/code-quality/compare/0.8.1...0.9.0) - 2023-10-22 + +### 🚀 Added + +- Update required php-version to be 8.1 (matching PRODUCTION) ([#60](https://github.com/figuren-theater/code-quality/pull/60)) +- Update 'Build, test & measure' status badge for label-printing & theater-production-blocks ([#58](https://github.com/figuren-theater/code-quality/pull/58)) ## [0.8.1](https://github.com/figuren-theater/code-quality/compare/0.8.0...0.8.1) - 2023-09-26 From cddaec68165acb5bdda7b83d11e1e847c4c3ea9e Mon Sep 17 00:00:00 2001 From: Carsten Bach Date: Tue, 21 Nov 2023 22:35:27 +0100 Subject: [PATCH 2/2] Upgrading figuren-theater/coding-standards (0.3.3 => 0.4.0) --- composer.lock | 404 +++++++++++++++++++++++++++++++++++--------------- 1 file changed, 288 insertions(+), 116 deletions(-) diff --git a/composer.lock b/composer.lock index 8c71c78..c0950ae 100644 --- a/composer.lock +++ b/composer.lock @@ -8,30 +8,32 @@ "packages": [ { "name": "automattic/vipwpcs", - "version": "2.0.0", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/Automattic/VIP-Coding-Standards.git", - "reference": "fc02f491dc9f51da7c32941ac579f70b9ed300c5" + "reference": "1b8960ebff9ea3eb482258a906ece4d1ee1e25fd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Automattic/VIP-Coding-Standards/zipball/fc02f491dc9f51da7c32941ac579f70b9ed300c5", - "reference": "fc02f491dc9f51da7c32941ac579f70b9ed300c5", + "url": "https://api.github.com/repos/Automattic/VIP-Coding-Standards/zipball/1b8960ebff9ea3eb482258a906ece4d1ee1e25fd", + "reference": "1b8960ebff9ea3eb482258a906ece4d1ee1e25fd", "shasum": "" }, "require": { - "php": ">=5.6", - "squizlabs/php_codesniffer": "^3.3.1", - "wp-coding-standards/wpcs": "^2.1" + "php": ">=5.4", + "phpcsstandards/phpcsextra": "^1.1.0", + "phpcsstandards/phpcsutils": "^1.0.8", + "sirbrillig/phpcs-variable-analysis": "^2.11.17", + "squizlabs/php_codesniffer": "^3.7.2", + "wp-coding-standards/wpcs": "^3.0" }, "require-dev": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.5", + "php-parallel-lint/php-console-highlighter": "^1.0.0", + "php-parallel-lint/php-parallel-lint": "^1.3.2", "phpcompatibility/php-compatibility": "^9", - "phpunit/phpunit": "^5 || ^6 || ^7" - }, - "suggest": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically." + "phpcsstandards/phpcsdevtools": "^1.0", + "phpunit/phpunit": "^4 || ^5 || ^6 || ^7" }, "type": "phpcodesniffer-standard", "notification-url": "https://packagist.org/downloads/", @@ -48,6 +50,7 @@ "keywords": [ "phpcs", "standards", + "static analysis", "wordpress" ], "support": { @@ -55,7 +58,7 @@ "source": "https://github.com/Automattic/VIP-Coding-Standards", "wiki": "https://github.com/Automattic/VIP-Coding-Standards/wiki" }, - "time": "2019-07-12T08:47:36+00:00" + "time": "2023-09-05T11:01:05+00:00" }, { "name": "dealerdirect/phpcodesniffer-composer-installer", @@ -544,73 +547,25 @@ }, "time": "2023-10-10T14:16:57+00:00" }, - { - "name": "fig-r/psr2r-sniffer", - "version": "0.5.2", - "source": { - "type": "git", - "url": "https://github.com/php-fig-rectified/psr2r-sniffer.git", - "reference": "7eb462bcf19abcae122855a6d79cc8f768c77880" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig-rectified/psr2r-sniffer/zipball/7eb462bcf19abcae122855a6d79cc8f768c77880", - "reference": "7eb462bcf19abcae122855a6d79cc8f768c77880", - "shasum": "" - }, - "require": { - "php": ">=5.4.16", - "squizlabs/php_codesniffer": "^3.0" - }, - "bin": [ - "bin/tokenize", - "bin/sniff" - ], - "type": "phpcodesniffer-standard", - "autoload": { - "psr-4": { - "PSR2R\\": "PSR2R" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Mark Scherer", - "homepage": "http://www.dereuromark.de", - "role": "Contributor" - } - ], - "description": "Code-Sniffer, Auto-Fixer and Tokenizer for PSR2-R", - "keywords": [ - "codesniffer", - "cs" - ], - "support": { - "issues": "https://github.com/php-fig-rectified/psr2r-sniffer/issues", - "source": "https://github.com/php-fig-rectified/psr2r-sniffer/tree/0.5.2" - }, - "time": "2019-07-30T11:13:07+00:00" - }, { "name": "figuren-theater/coding-standards", - "version": "0.3.3", + "version": "0.4.0", "source": { "type": "git", "url": "https://github.com/figuren-theater/coding-standards.git", - "reference": "42929bf1e4c18f6ea16ec0a935b001548b825b5e" + "reference": "93f1aa364cbd3d26e83f2c790c259e540554a31b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/figuren-theater/coding-standards/zipball/42929bf1e4c18f6ea16ec0a935b001548b825b5e", - "reference": "42929bf1e4c18f6ea16ec0a935b001548b825b5e", + "url": "https://api.github.com/repos/figuren-theater/coding-standards/zipball/93f1aa364cbd3d26e83f2c790c259e540554a31b", + "reference": "93f1aa364cbd3d26e83f2c790c259e540554a31b", "shasum": "" }, "require": { + "automattic/vipwpcs": "^3.0", "ergebnis/composer-normalize": "^2.31", - "humanmade/coding-standards": "^1.2" + "phpcompatibility/phpcompatibility-wp": "*", + "rarst/phpcs-cognitive-complexity": "^0.2.0" }, "type": "phpcodesniffer-standard", "notification-url": "https://packagist.org/downloads/", @@ -642,7 +597,7 @@ "issues": "https://github.com/figuren-theater/coding-standards/issues", "source": "https://github.com/figuren-theater/coding-standards" }, - "time": "2023-08-25T09:04:03+00:00" + "time": "2023-11-21T21:19:03+00:00" }, { "name": "figuren-theater/phpstan", @@ -702,44 +657,6 @@ }, "time": "2023-09-13T08:55:48+00:00" }, - { - "name": "humanmade/coding-standards", - "version": "v1.2.1", - "source": { - "type": "git", - "url": "https://github.com/humanmade/coding-standards.git", - "reference": "4b5aca25cb350f248f1797beed100edda9f32a0d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/humanmade/coding-standards/zipball/4b5aca25cb350f248f1797beed100edda9f32a0d", - "reference": "4b5aca25cb350f248f1797beed100edda9f32a0d", - "shasum": "" - }, - "require": { - "automattic/vipwpcs": "2.0.0", - "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", - "fig-r/psr2r-sniffer": "^0.5.0", - "php": ">=7.1", - "phpcompatibility/phpcompatibility-wp": "^2.0.0", - "squizlabs/php_codesniffer": "~3.5", - "wp-coding-standards/wpcs": "2.3.0" - }, - "require-dev": { - "phpunit/phpunit": "^7" - }, - "type": "phpcodesniffer-standard", - "notification-url": "https://packagist.org/downloads/", - "license": [ - "GPL-2.0-or-later" - ], - "description": "Human Made Coding Standards", - "support": { - "issues": "https://github.com/humanmade/coding-standards/issues", - "source": "https://github.com/humanmade/coding-standards/tree/v1.2.1" - }, - "time": "2022-09-14T09:35:02+00:00" - }, { "name": "justinrainbow/json-schema", "version": "v5.2.13", @@ -1130,6 +1047,142 @@ }, "time": "2022-10-24T09:00:36+00:00" }, + { + "name": "phpcsstandards/phpcsextra", + "version": "1.1.2", + "source": { + "type": "git", + "url": "https://github.com/PHPCSStandards/PHPCSExtra.git", + "reference": "746c3190ba8eb2f212087c947ba75f4f5b9a58d5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPCSStandards/PHPCSExtra/zipball/746c3190ba8eb2f212087c947ba75f4f5b9a58d5", + "reference": "746c3190ba8eb2f212087c947ba75f4f5b9a58d5", + "shasum": "" + }, + "require": { + "php": ">=5.4", + "phpcsstandards/phpcsutils": "^1.0.8", + "squizlabs/php_codesniffer": "^3.7.1" + }, + "require-dev": { + "php-parallel-lint/php-console-highlighter": "^1.0", + "php-parallel-lint/php-parallel-lint": "^1.3.2", + "phpcsstandards/phpcsdevcs": "^1.1.6", + "phpcsstandards/phpcsdevtools": "^1.2.1", + "phpunit/phpunit": "^4.5 || ^5.0 || ^6.0 || ^7.0" + }, + "type": "phpcodesniffer-standard", + "extra": { + "branch-alias": { + "dev-stable": "1.x-dev", + "dev-develop": "1.x-dev" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0-or-later" + ], + "authors": [ + { + "name": "Juliette Reinders Folmer", + "homepage": "https://github.com/jrfnl", + "role": "lead" + }, + { + "name": "Contributors", + "homepage": "https://github.com/PHPCSStandards/PHPCSExtra/graphs/contributors" + } + ], + "description": "A collection of sniffs and standards for use with PHP_CodeSniffer.", + "keywords": [ + "PHP_CodeSniffer", + "phpcbf", + "phpcodesniffer-standard", + "phpcs", + "standards", + "static analysis" + ], + "support": { + "issues": "https://github.com/PHPCSStandards/PHPCSExtra/issues", + "source": "https://github.com/PHPCSStandards/PHPCSExtra" + }, + "time": "2023-09-20T22:06:18+00:00" + }, + { + "name": "phpcsstandards/phpcsutils", + "version": "1.0.8", + "source": { + "type": "git", + "url": "https://github.com/PHPCSStandards/PHPCSUtils.git", + "reference": "69465cab9d12454e5e7767b9041af0cd8cd13be7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPCSStandards/PHPCSUtils/zipball/69465cab9d12454e5e7767b9041af0cd8cd13be7", + "reference": "69465cab9d12454e5e7767b9041af0cd8cd13be7", + "shasum": "" + }, + "require": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.4.1 || ^0.5 || ^0.6.2 || ^0.7 || ^1.0", + "php": ">=5.4", + "squizlabs/php_codesniffer": "^3.7.1 || 4.0.x-dev@dev" + }, + "require-dev": { + "ext-filter": "*", + "php-parallel-lint/php-console-highlighter": "^1.0", + "php-parallel-lint/php-parallel-lint": "^1.3.2", + "phpcsstandards/phpcsdevcs": "^1.1.6", + "yoast/phpunit-polyfills": "^1.0.5 || ^2.0.0" + }, + "type": "phpcodesniffer-standard", + "extra": { + "branch-alias": { + "dev-stable": "1.x-dev", + "dev-develop": "1.x-dev" + } + }, + "autoload": { + "classmap": [ + "PHPCSUtils/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0-or-later" + ], + "authors": [ + { + "name": "Juliette Reinders Folmer", + "homepage": "https://github.com/jrfnl", + "role": "lead" + }, + { + "name": "Contributors", + "homepage": "https://github.com/PHPCSStandards/PHPCSUtils/graphs/contributors" + } + ], + "description": "A suite of utility functions for use with PHP_CodeSniffer", + "homepage": "https://phpcsutils.com/", + "keywords": [ + "PHP_CodeSniffer", + "phpcbf", + "phpcodesniffer-standard", + "phpcs", + "phpcs3", + "standards", + "static analysis", + "tokens", + "utility" + ], + "support": { + "docs": "https://phpcsutils.com/", + "issues": "https://github.com/PHPCSStandards/PHPCSUtils/issues", + "source": "https://github.com/PHPCSStandards/PHPCSUtils" + }, + "time": "2023-07-16T21:39:41+00:00" + }, { "name": "phpstan/extension-installer", "version": "1.3.1", @@ -1236,6 +1289,110 @@ ], "time": "2023-10-17T15:46:26+00:00" }, + { + "name": "rarst/phpcs-cognitive-complexity", + "version": "0.2", + "source": { + "type": "git", + "url": "https://github.com/Rarst/phpcs-cognitive-complexity.git", + "reference": "b903498ba13b12cff037315a3b09ec67714b3a1d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Rarst/phpcs-cognitive-complexity/zipball/b903498ba13b12cff037315a3b09ec67714b3a1d", + "reference": "b903498ba13b12cff037315a3b09ec67714b3a1d", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "require-dev": { + "pds/skeleton": "^1.0", + "squizlabs/php_codesniffer": "^3.5" + }, + "suggest": { + "dealerdirect/phpcodesniffer-composer-installer": "Installer plugin for automatic standard registration." + }, + "type": "phpcodesniffer-standard", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andrey Savchenko", + "homepage": "https://www.Rarst.net/" + } + ], + "description": "Cognitive complexity implementation for PHP_CodeSniffer", + "keywords": [ + "phpcs", + "standards" + ], + "support": { + "issues": "https://github.com/Rarst/phpcs-cognitive-complexity/issues", + "source": "https://github.com/Rarst/phpcs-cognitive-complexity" + }, + "time": "2019-12-24T14:23:35+00:00" + }, + { + "name": "sirbrillig/phpcs-variable-analysis", + "version": "v2.11.17", + "source": { + "type": "git", + "url": "https://github.com/sirbrillig/phpcs-variable-analysis.git", + "reference": "3b71162a6bf0cde2bff1752e40a1788d8273d049" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sirbrillig/phpcs-variable-analysis/zipball/3b71162a6bf0cde2bff1752e40a1788d8273d049", + "reference": "3b71162a6bf0cde2bff1752e40a1788d8273d049", + "shasum": "" + }, + "require": { + "php": ">=5.4.0", + "squizlabs/php_codesniffer": "^3.5.6" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.7 || ^1.0", + "phpcsstandards/phpcsdevcs": "^1.1", + "phpstan/phpstan": "^1.7", + "phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.5 || ^7.0 || ^8.0 || ^9.0", + "sirbrillig/phpcs-import-detection": "^1.1", + "vimeo/psalm": "^0.2 || ^0.3 || ^1.1 || ^4.24 || ^5.0@beta" + }, + "type": "phpcodesniffer-standard", + "autoload": { + "psr-4": { + "VariableAnalysis\\": "VariableAnalysis/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-2-Clause" + ], + "authors": [ + { + "name": "Sam Graham", + "email": "php-codesniffer-variableanalysis@illusori.co.uk" + }, + { + "name": "Payton Swick", + "email": "payton@foolord.com" + } + ], + "description": "A PHPCS sniff to detect problems with variables.", + "keywords": [ + "phpcs", + "static analysis" + ], + "support": { + "issues": "https://github.com/sirbrillig/phpcs-variable-analysis/issues", + "source": "https://github.com/sirbrillig/phpcs-variable-analysis", + "wiki": "https://github.com/sirbrillig/phpcs-variable-analysis/wiki" + }, + "time": "2023-08-05T23:46:11+00:00" + }, { "name": "squizlabs/php_codesniffer", "version": "3.7.2", @@ -1436,30 +1593,38 @@ }, { "name": "wp-coding-standards/wpcs", - "version": "2.3.0", + "version": "3.0.1", "source": { "type": "git", "url": "https://github.com/WordPress/WordPress-Coding-Standards.git", - "reference": "7da1894633f168fe244afc6de00d141f27517b62" + "reference": "b4caf9689f1a0e4a4c632679a44e638c1c67aff1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/7da1894633f168fe244afc6de00d141f27517b62", - "reference": "7da1894633f168fe244afc6de00d141f27517b62", + "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/b4caf9689f1a0e4a4c632679a44e638c1c67aff1", + "reference": "b4caf9689f1a0e4a4c632679a44e638c1c67aff1", "shasum": "" }, "require": { + "ext-filter": "*", + "ext-libxml": "*", + "ext-tokenizer": "*", + "ext-xmlreader": "*", "php": ">=5.4", - "squizlabs/php_codesniffer": "^3.3.1" + "phpcsstandards/phpcsextra": "^1.1.0", + "phpcsstandards/phpcsutils": "^1.0.8", + "squizlabs/php_codesniffer": "^3.7.2" }, "require-dev": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || ^0.6", + "php-parallel-lint/php-console-highlighter": "^1.0.0", + "php-parallel-lint/php-parallel-lint": "^1.3.2", "phpcompatibility/php-compatibility": "^9.0", - "phpcsstandards/phpcsdevtools": "^1.0", + "phpcsstandards/phpcsdevtools": "^1.2.0", "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0" }, "suggest": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.6 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically." + "ext-iconv": "For improved results", + "ext-mbstring": "For improved results" }, "type": "phpcodesniffer-standard", "notification-url": "https://packagist.org/downloads/", @@ -1476,6 +1641,7 @@ "keywords": [ "phpcs", "standards", + "static analysis", "wordpress" ], "support": { @@ -1483,7 +1649,13 @@ "source": "https://github.com/WordPress/WordPress-Coding-Standards", "wiki": "https://github.com/WordPress/WordPress-Coding-Standards/wiki" }, - "time": "2020-05-13T23:57:56+00:00" + "funding": [ + { + "url": "https://opencollective.com/thewpcc/contribute/wp-php-63406", + "type": "custom" + } + ], + "time": "2023-09-14T07:06:09+00:00" } ], "packages-dev": [],