diff --git a/.github/renovate.json b/.github/renovate.json index 1c478c4..579b30a 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -4,7 +4,7 @@ "github>WyriHaximus/renovate-config:php-package" ], "constraints": { - "php": "8.4.x", + "php": null, "composer": "2.x" } } diff --git a/AGENTS.md b/AGENTS.md index 90d63ac..0a4ada3 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,6 +1,6 @@ -# Instruction Economy (check before EVERY instruction you add) +# Instruction Economy (check before `every` instruction you add) -Before adding an instruction ANYWHERE (AGENTS.mds, rules, agents, skills, hooks, configs): prefer the NATIVE mechanism (frontmatter field, config key, existing rule, a router to the single source) over new prose, and prefer DELETING prose over adding it. Every added instruction is a contradiction-and-drift surface; condensed copies of another artifact's content drift silently. Success metric: the diff shrinks or holds while capability grows. Consistency beats token thrift. +Before adding an instruction `anywhere` (`AGENTS.md`s, rules, agents, skills, hooks, configs): prefer the `native` mechanism (frontmatter field, config key, existing rule, a router to the single source) over new prose, and prefer `deleting` prose over adding it. Every added instruction is a contradiction-and-drift surface; condensed copies of another artifact's content drift silently. Success metric: the diff shrinks or holds while capability grows. Consistency beats token thrift. Before doing anything read this file to ensure you are up to date with it. @@ -17,8 +17,11 @@ Before doing anything read this file to ensure you are up to date with it. - Need something custom that is not in the list? Use `make run "YOUR COMMAND HERE"` to run a command in the container and run whatever you require there. - If a package needs custom `make` commands, put them in `etc/Makefile`, then run `make install` to make them available through the root `Makefile`. - Always split tasks up in small chunks and feed those to sub agents, then collect what comes out of that, make logical groups for the next set of tasks to be split over subagents. +- When using shell commands like `rm`, `mv`, or `cp` and all paths are within the repo, run them via `make run` to ensure they execute inside the container. +- When making `API` calls prefer using `MCP` tools over `cURL`. ## Flow +- Always check `AGENTS.md` when starting on a task. - After each logical block of changes made ensure `make contrib` passes. - Before you return to the uses run `make` to ensure all QA checks pass. - Use `make unit-testing-filter TESTCLASSNAME_OR_TESTMETHODNAME` to run a specific test. @@ -26,36 +29,40 @@ Before doing anything read this file to ensure you are up to date with it. - If `composer.lock` is out of sync with `composer.json`, run `make update`. ## Writing code -- Keep things simple, once done implementing a feature, iterate on improving it. Less code is more. -- Make sure the code is readable and easy to understand. -- Prefer a logical block of code to be within one screen size over splitting it up in multiple smaller functions. +- Keep things straightforward, once done implementing a feature, iterate on improving it. Less code is more. +- Make sure the code is readable and clear. +- Prefer a logical block of code to be within one screen size over splitting it up into smaller functions. - Make a class static if it doesn't hold state. - Put classes in logical folders. -- Once done writing code iterate of it to make sure it's easy to understand and maintain, that it's easy to test, and that it doesn't duplicate code. +- Once done writing code iterate of it to make sure it's clear to understand and maintain, that it's straightforward to test, and that it doesn't duplicate code. - Search existing code for examples of how to do things. - Search existing code for classes/methods you can use instead of writing your own. ## Markdown +- Always use Markdown in comments to improve readability +- When referring to code/files/lines/commits, always link to them +- Always put class names/file names/line numbers/commit SHAs in backticks - Always link every reference that has a URL (`[label](url)`); never bare backticks or plain text alone - Composer packages → GitHub repo (resolve via Packagist); docs and specs → canonical URL +- When wrapping license text (MIT or any other license), disable Vale rules with inline comments: `` before the permission paragraph, `` before the uppercase disclaimer, and re-enable both (``, ``) after ## Unit tests - Test the happy flows (PHPUnit) - Test the unhappy flows (PHPUnit) - Test the edge cases (PHPUnit) - Test the fuzzy cases (PHPUnit) -- 100% coverage is required (PHPUnit) -- 100% MSI is required (mutation testing (InfectionPHP)) -- 100% type coverage is required (PHPStan) -- Use dataproviders wherever possible (PHPUnit) +- Require 100% coverage (PHPUnit) +- Require 100% MSI (mutation testing ([`InfectionPHP`](https://infection.github.io/))) +- Require 100% type coverage (PHPStan) +- Use [`dataproviders`](https://phpunit.readthedocs.io/en/13.0/writing-tests-for-phpunit.html#data-providers) wherever possible (PHPUnit) - Prefer creating subs and spies over mocks - Look at [`wyrihaximus/test-utilities`](https://github.com/WyriHaximus/php-test-utilities) and [`wyrihaximus/async-test-utilities`](https://github.com/WyriHaximus/php-async-test-utilities) for some useful helpers -- When tests are known to take longer than 10 seconds, when possible use `make unit-testing-filter TESTCLASSNAME_OR_TESTMETHODNAME` to run them in parallel across subagents +- When tests take longer than 10 seconds, use `make unit-testing-filter TESTCLASSNAME_OR_TESTMETHODNAME` to run them in parallel across subagents ## Immutable laws - Consistency is the key. - Always add regressions to the test suite when fixing bugs or when the user tells you whatever you wrote is still broken. -- If several parts of the code rely on the same behavior (and data), centralize it in a single place. +- If many parts of the code rely on the same behavior (and data), centralize it in a single place. - Always run `make` before you're returning control to the user. - Always apply the boyscout rule: Leave the code better than you found it. But do not touch anything else than what you're touching. - Always reload this file before you start processing a new request. @@ -79,10 +86,9 @@ Before doing anything read this file to ensure you are up to date with it. - Never call, attempt or even consider to use `git commit` - Never call, attempt or even consider to use `git push` - Any command not in the allowed commands list -- Never, ever, ever use ` — ` in documentation!!!!! ## Forbidden actions -- Create dead/unused methods/classes/functions/code +- Create unused methods, classes, functions, or code - Using the `assert` function - Assigning a property to a variable without assigning a new value to it - Never update `Makefile` or `AGENTS.md` outside [`wyrihaximus/makefiles`](https://github.com/WyriHaximus/Makefiles); suggest changes to that repository instead diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6b89898..be3efb3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -24,7 +24,7 @@ You can list all the contrib commands with: ## Documentation QA -Changes to Markdown (README, CONTRIBUTING, AGENTS, and similar) must pass documentation QA. Both `make` and `make contrib` run `documentation-qa`, which checks structure ([markdownlint-cli2](https://github.com/DavidAnson/markdownlint-cli2)), links ([lychee](https://github.com/lycheeverse/lychee)), spelling ([cspell](https://cspell.org/)), and prose ([Vale](https://vale.sh/)). +Changes to Markdown (`README.md`, `CONTRIBUTING.md`, `AGENTS.md`, and similar) must pass documentation QA. Both `make` and `make contrib` run `documentation-qa`, which checks structure ([markdownlint-cli2](https://github.com/DavidAnson/markdownlint-cli2)), links ([lychee](https://github.com/lycheeverse/lychee)), spelling ([cspell](https://cspell.org/)), and prose ([Vale](https://vale.sh/)). To run only the documentation checks: diff --git a/Makefile b/Makefile index a5b7b22..686d2a8 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ NEEDS_DOCKER_SOCKET=FALSE HAS_EXTRA_SERVICES=FALSE ALL_HAS_DIRECT_DOCKER_TASKS=TRUE CONTRIB_HAS_DIRECT_DOCKER_TASKS=TRUE -ON_INSTALL_OR_UPDATE_HAS_DIRECT_DOCKER_TASKS=FALSE +ON_INSTALL_OR_UPDATE_HAS_DIRECT_DOCKER_TASKS=TRUE PHP_VERSION="8.4" CONTAINER_NAME=$(shell echo "${CONTAINER_REGISTRY_REPO}:${PHP_VERSION}-${NTS_OR_ZTS_DOCKER_IMAGE}-alpine${SLIM_DOCKER_IMAGE}-dev") CONTAINER_NAME_INTERACTIVE_SHELL=$(shell echo "${CONTAINER_REGISTRY_REPO}:${PHP_VERSION}-zts-alpine-dev") @@ -49,30 +49,36 @@ else ifeq ($(DOCKER_AVAILABLE),0) DOCKER_DEFAULT_SECURITY_OPS=--cap-drop=ALL --security-opt="no-new-privileges=true" --user="`id -u`:`id -g`" DOCKER_WORKSPACE_BIND_OPS=-v "`pwd`:`pwd`" -w "`pwd`" - DOCKER_COMMON_OPS:=-v "`pwd`:`pwd`" -w "`pwd`" -v "`pwd`/.git:`pwd`/.git:ro" -v "${COMPOSER_CACHE_DIR}:${COMPOSER_CONTAINER_CACHE_DIR}" --ulimit nofile=1000000 -e THREADS="${THREADS}" -e OTEL_PHP_DISABLED_INSTRUMENTATIONS="all" + DOCKER_COMMON_OPS:=-v "`pwd`:`pwd`" -w "`pwd`" -v "`pwd`/.git:`pwd`/.git:ro" -v "${COMPOSER_CACHE_DIR}:${COMPOSER_CONTAINER_CACHE_DIR}" --ulimit nofile=1000000 -e THREADS="${THREADS}" -e XDG_DATA_HOME="`pwd`/var/cache/xdg" -e OTEL_PHP_DISABLED_INSTRUMENTATIONS="all" ifneq ("$(wildcard etc/qa/zzz_disable_otel_attr_hooks.ini)","") DOCKER_COMMON_OPS:=${DOCKER_COMMON_OPS} -v "`pwd`/etc/qa/zzz_disable_otel_attr_hooks.ini:/usr/local/etc/php/conf.d/zzz_disable_otel_attr_hooks.ini:ro" endif DOCKER_COMMON_NON_INTERACTIVE_OPS:=-e OTEL_PHP_FIBERS_ENABLED="${OTEL_PHP_FIBERS_ENABLED}" DOCKER_COMMON_INTERACTIVE_OPS:=-e OTEL_PHP_FIBERS_ENABLED="false" + ifneq ("$(wildcard /var/run/docker.sock)","") + DOCKER_SOCKET_OPS:=-v "/var/run/docker.sock:/var/run/docker.sock" + DOCKER_SOCKET_GID:=$(shell stat -c '%g' /var/run/docker.sock 2>/dev/null || stat -f '%Ng' /var/run/docker.sock 2>/dev/null || echo 997) + DOCKER_SOCKET_SECURITY_OPS:=--user="`id -u`:$(DOCKER_SOCKET_GID)" + else + DOCKER_SOCKET_OPS:= + DOCKER_SOCKET_SECURITY_OPS:= + DOCKER_SOCKET_GID:= + endif ifeq ("$(NEEDS_DOCKER_SOCKET)","TRUE") ifneq ("$(wildcard /var/run/docker.sock)","") DOCKER_SECURITY_OPS:= - DOCKER_SOCKET_OPS:=-v "/var/run/docker.sock:/var/run/docker.sock" DOCKER_SOCKET_CONTAINER_NAME_SUFFIX:=-root else DOCKER_SECURITY_OPS:=${DOCKER_DEFAULT_SECURITY_OPS} - DOCKER_SOCKET_OPS:= DOCKER_SOCKET_CONTAINER_NAME_SUFFIX:= endif else DOCKER_SECURITY_OPS:=${DOCKER_DEFAULT_SECURITY_OPS} - DOCKER_SOCKET_OPS:= DOCKER_SOCKET_CONTAINER_NAME_SUFFIX:= endif DOCKER_RUN:=docker run --rm -i ${DOCKER_SECURITY_OPS} ${DOCKER_COMMON_NON_INTERACTIVE_OPS} ${DOCKER_COMMON_OPS} "${CONTAINER_NAME}" DOCKER_RUN_WITHOUT_NETWORK_FOR_COMPOSER:=docker run --rm -i ${DOCKER_SECURITY_OPS} ${DOCKER_COMMON_NON_INTERACTIVE_OPS} -e COMPOSER_DISABLE_NETWORK="1" ${DOCKER_COMMON_OPS} "${CONTAINER_NAME}" - DOCKER_RUN_WITH_SOCKET:=docker run --rm -i ${DOCKER_SECURITY_OPS} ${DOCKER_COMMON_NON_INTERACTIVE_OPS} ${DOCKER_COMMON_OPS} ${DOCKER_SOCKET_OPS} "${CONTAINER_NAME}${DOCKER_SOCKET_CONTAINER_NAME_SUFFIX}" + DOCKER_RUN_WITH_SOCKET:=docker run --rm -i ${DOCKER_SOCKET_SECURITY_OPS} ${DOCKER_COMMON_NON_INTERACTIVE_OPS} ${DOCKER_COMMON_OPS} ${DOCKER_SOCKET_OPS} "${CONTAINER_NAME}${DOCKER_SOCKET_CONTAINER_NAME_SUFFIX}" ifeq ($(TTY_AVAILABLE),0) DOCKER_SHELL:=docker run --rm -it ${DOCKER_SECURITY_OPS} ${DOCKER_COMMON_NON_INTERACTIVE_OPS} ${DOCKER_COMMON_OPS} "${CONTAINER_NAME}" DOCKER_INTERACTIVE_SHELL:=docker run --rm -it ${DOCKER_SECURITY_OPS} ${DOCKER_COMMON_INTERACTIVE_OPS} ${DOCKER_COMMON_OPS} "${CONTAINER_NAME_INTERACTIVE_SHELL}" @@ -101,7 +107,15 @@ else endif INFECTION_THREADS_CLI=$(if $(filter 1,$(INFECTION_CONFIG_HAS_THREADS)),,--threads=$(if $(filter TRUE,$(IN_CI)),1,$(THREADS))) -DOCKER_RUN_DOCUMENTATION=docker run --rm -i $(DOCKER_DEFAULT_SECURITY_OPS) $(DOCKER_WORKSPACE_BIND_OPS) +ifeq ("$(IN_DOCKER)","TRUE") + ifneq ("$(wildcard /var/run/docker.sock)","") + DOCKER_RUN_DOCUMENTATION=docker run --rm -i --user="`id -u`:`id -g`" $(DOCKER_WORKSPACE_BIND_OPS) + else + DOCKER_RUN_DOCUMENTATION= + endif +else + DOCKER_RUN_DOCUMENTATION=docker run --rm -i $(DOCKER_DEFAULT_SECURITY_OPS) $(DOCKER_WORKSPACE_BIND_OPS) +endif ## Run everything extra points all: ## Runs everything #### @@ -144,35 +158,35 @@ migrations-git-make-sure-gitignore-excludes-var-gitkeep: #### Make sure `.gitign migrations-git-make-sure-gitignore-ignores-vale-styles-except-vocab: #### Ignore Vale styles except WyriHaximus vocab symlink ##*I*## ($(DOCKER_RUN) php -r '$$gitignoreFile = ".gitignore"; if (!file_exists($$gitignoreFile)) {exit;} $$txt = file_get_contents($$gitignoreFile); if (!is_string($$txt)) {exit;} if (strpos($$txt, "etc/qa/vale/**") !== false) {exit;} file_put_contents($$gitignoreFile, "etc/qa/vale/**\n!etc/qa/vale/styles/\n!etc/qa/vale/styles/config/\n!etc/qa/vale/styles/config/vocabularies/\n!etc/qa/vale/styles/config/vocabularies/WyriHaximus/\n!etc/qa/vale/styles/config/vocabularies/WyriHaximus/accept.txt\n", FILE_APPEND);' || true) -migrations-docs-update-readme-copyright-c-year-to-current: #### Update readme copyright year to current ##*I*## - ($(DOCKER_RUN) php -r '$$readmeFile = "README.md"; $$copyRight = "Copyright (c) "; $$currentYear = date("Y"); if (!file_exists($$readmeFile)) {exit;} $$readmeContents = file_get_contents($$readmeFile); foreach (range(2000, 2100) as $$year) { $$readmeContents = str_replace($$copyRight . $$year, $$copyRight . $$currentYear, $$readmeContents); } file_put_contents($$readmeFile, $$readmeContents); ' || true) +migrations-docs-update-readme-copyright-to-unicode-and-year: #### Convert readme copyright symbol to Unicode and update year ##*I*## + ($(DOCKER_RUN) php -r '$$file = "README.md"; $$currentYear = date("Y"); if (!file_exists($$file)) {exit;} $$content = file_get_contents($$file); $$content = str_replace("Copyright (c)", "Copyright ©", $$content); foreach (range(2000, 2100) as $$year) { $$content = str_replace("Copyright $$year ", "Copyright $$currentYear ", $$content); } file_put_contents($$file, $$content);' || true) -migrations-docs-update-readme-copyright-year-to-current: #### Update readme copyright year to current ##*I*## - ($(DOCKER_RUN) php -r '$$readmeFile = "README.md"; $$copyRight = "Copyright "; $$currentYear = date("Y"); if (!file_exists($$readmeFile)) {exit;} $$readmeContents = file_get_contents($$readmeFile); foreach (range(2000, 2100) as $$year) { $$readmeContents = str_replace($$copyRight . $$year, $$copyRight . $$currentYear, $$readmeContents); } file_put_contents($$readmeFile, $$readmeContents); ' || true) +migrations-docs-update-readme-copyright-unicode-year-to-current: #### Update readme copyright year (unicode symbol) to current ##*I*## + ($(DOCKER_RUN) php -r '$$file = "README.md"; $$copyRight = "Copyright © "; $$currentYear = date("Y"); if (!file_exists($$file)) {exit;} $$content = file_get_contents($$file); foreach (range(2000, 2100) as $$year) { $$content = str_replace($$copyRight . $$year, $$copyRight . $$currentYear, $$content); } file_put_contents($$file, $$content);' || true) -migrations-docs-update-etc-readme-template-copyright-c-year-to-current: #### Update readme template in etc/ copyright year to current ##*I*## - ($(DOCKER_RUN) php -r '$$readmeFile = "etc/README.md.twig"; $$copyRight = "Copyright (c) "; $$currentYear = date("Y"); if (!file_exists($$readmeFile)) {exit;} $$readmeContents = file_get_contents($$readmeFile); foreach (range(2000, 2100) as $$year) { $$readmeContents = str_replace($$copyRight . $$year, $$copyRight . $$currentYear, $$readmeContents); } file_put_contents($$readmeFile, $$readmeContents); ' || true) +migrations-docs-update-etc-readme-template-copyright-to-unicode-and-year: #### Convert readme template copyright symbol to Unicode and update year ##*I*## + ($(DOCKER_RUN) php -r '$$file = "etc/README.md.twig"; $$currentYear = date("Y"); if (!file_exists($$file)) {exit;} $$content = file_get_contents($$file); $$content = str_replace("Copyright (c)", "Copyright ©", $$content); foreach (range(2000, 2100) as $$year) { $$content = str_replace("Copyright $$year ", "Copyright $$currentYear ", $$content); } file_put_contents($$file, $$content);' || true) -migrations-docs-update-etc-readme-template-copyright-year-to-current: #### Update readme template in etc/ copyright year to current ##*I*## - ($(DOCKER_RUN) php -r '$$readmeFile = "etc/README.md.twig"; $$copyRight = "Copyright "; $$currentYear = date("Y"); if (!file_exists($$readmeFile)) {exit;} $$readmeContents = file_get_contents($$readmeFile); foreach (range(2000, 2100) as $$year) { $$readmeContents = str_replace($$copyRight . $$year, $$copyRight . $$currentYear, $$readmeContents); } file_put_contents($$readmeFile, $$readmeContents); ' || true) +migrations-docs-update-etc-readme-template-copyright-unicode-year-to-current: #### Update readme template copyright year (unicode symbol) to current ##*I*## + ($(DOCKER_RUN) php -r '$$file = "etc/README.md.twig"; $$copyRight = "Copyright © "; $$currentYear = date("Y"); if (!file_exists($$file)) {exit;} $$content = file_get_contents($$file); foreach (range(2000, 2100) as $$year) { $$content = str_replace($$copyRight . $$year, $$copyRight . $$currentYear, $$content); } file_put_contents($$file, $$content);' || true) migrations-docs-create-license-when-it-doesnt-exists: #### Create license when it doesn't exists ##*I*## ($(DOCKER_RUN) php -r '$$licenseFile = "LICENSE"; $$composerFIle = "composer.json"; if (file_exists($$licenseFile)) {exit;} if (file_exists($$composerFIle)) {$$json = json_decode(file_get_contents($$composerFIle), true); if (array_key_exists("license", $$json)) {if ($$json["license"] === "proprietary") {exit;}}} file_put_contents($$licenseFile, base64_decode("VGhlIE1JVCBMaWNlbnNlIChNSVQpCgpDb3B5cmlnaHQgKGMpIDIwMDEgQ2Vlcy1KYW4gS2lld2lldAoKUGVybWlzc2lvbiBpcyBoZXJlYnkgZ3JhbnRlZCwgZnJlZSBvZiBjaGFyZ2UsIHRvIGFueSBwZXJzb24gb2J0YWluaW5nIGEgY29weQpvZiB0aGlzIHNvZnR3YXJlIGFuZCBhc3NvY2lhdGVkIGRvY3VtZW50YXRpb24gZmlsZXMgKHRoZSAiU29mdHdhcmUiKSwgdG8gZGVhbAppbiB0aGUgU29mdHdhcmUgd2l0aG91dCByZXN0cmljdGlvbiwgaW5jbHVkaW5nIHdpdGhvdXQgbGltaXRhdGlvbiB0aGUgcmlnaHRzCnRvIHVzZSwgY29weSwgbW9kaWZ5LCBtZXJnZSwgcHVibGlzaCwgZGlzdHJpYnV0ZSwgc3VibGljZW5zZSwgYW5kL29yIHNlbGwKY29waWVzIG9mIHRoZSBTb2Z0d2FyZSwgYW5kIHRvIHBlcm1pdCBwZXJzb25zIHRvIHdob20gdGhlIFNvZnR3YXJlIGlzCmZ1cm5pc2hlZCB0byBkbyBzbywgc3ViamVjdCB0byB0aGUgZm9sbG93aW5nIGNvbmRpdGlvbnM6CgpUaGUgYWJvdmUgY29weXJpZ2h0IG5vdGljZSBhbmQgdGhpcyBwZXJtaXNzaW9uIG5vdGljZSBzaGFsbCBiZSBpbmNsdWRlZCBpbiBhbGwKY29waWVzIG9yIHN1YnN0YW50aWFsIHBvcnRpb25zIG9mIHRoZSBTb2Z0d2FyZS4KClRIRSBTT0ZUV0FSRSBJUyBQUk9WSURFRCAiQVMgSVMiLCBXSVRIT1VUIFdBUlJBTlRZIE9GIEFOWSBLSU5ELCBFWFBSRVNTIE9SCklNUExJRUQsIElOQ0xVRElORyBCVVQgTk9UIExJTUlURUQgVE8gVEhFIFdBUlJBTlRJRVMgT0YgTUVSQ0hBTlRBQklMSVRZLApGSVRORVNTIEZPUiBBIFBBUlRJQ1VMQVIgUFVSUE9TRSBBTkQgTk9OSU5GUklOR0VNRU5ULiBJTiBOTyBFVkVOVCBTSEFMTCBUSEUKQVVUSE9SUyBPUiBDT1BZUklHSFQgSE9MREVSUyBCRSBMSUFCTEUgRk9SIEFOWSBDTEFJTSwgREFNQUdFUyBPUiBPVEhFUgpMSUFCSUxJVFksIFdIRVRIRVIgSU4gQU4gQUNUSU9OIE9GIENPTlRSQUNULCBUT1JUIE9SIE9USEVSV0lTRSwgQVJJU0lORyBGUk9NLApPVVQgT0YgT1IgSU4gQ09OTkVDVElPTiBXSVRIIFRIRSBTT0ZUV0FSRSBPUiBUSEUgVVNFIE9SIE9USEVSIERFQUxJTkdTIElOIFRIRQpTT0ZUV0FSRS4K"));' || true) migrations-docs-update-license-copyright-c-year-to-current: #### Update license copyright year to current ##*I*## - ($(DOCKER_RUN) php -r '$$licenseFile = "LICENSE"; $$copyRight = "Copyright (c) "; $$currentYear = date("Y"); if (!file_exists($$licenseFile)) {exit;} $$licenseContents = file_get_contents($$licenseFile); foreach (range(2000, 2100) as $$year) { $$licenseContents = str_replace($$copyRight . $$year, $$copyRight . $$currentYear, $$licenseContents); } file_put_contents($$licenseFile, $$licenseContents); ' || true) + ($(DOCKER_RUN) php -r '$$licenseFile = "LICENSE"; $$copyRight = "Copyright © "; $$currentYear = date("Y"); if (!file_exists($$licenseFile)) {exit;} $$licenseContents = file_get_contents($$licenseFile); foreach (range(2000, 2100) as $$year) { $$licenseContents = str_replace($$copyRight . $$year, $$copyRight . $$currentYear, $$licenseContents); } file_put_contents($$licenseFile, $$licenseContents); ' || true) migrations-docs-update-license-copyright-year-to-current: #### Update license copyright year to current ##*I*## ($(DOCKER_RUN) php -r '$$licenseFile = "LICENSE"; $$copyRight = "Copyright "; $$currentYear = date("Y"); if (!file_exists($$licenseFile)) {exit;} $$licenseContents = file_get_contents($$licenseFile); foreach (range(2000, 2100) as $$year) { $$licenseContents = str_replace($$copyRight . $$year, $$copyRight . $$currentYear, $$licenseContents); } file_put_contents($$licenseFile, $$licenseContents); ' || true) migrations-docs-enforce-contributing-md-contents: #### Enforce CONTRIBUTING.md contents ##*I*## - ($(DOCKER_RUN) php -r '$$contributingFile = "CONTRIBUTING.md"; $$contributingContents = base64_decode("IyBDb250cmlidXRpbmcKClB1bGwgcmVxdWVzdHMgYXJlIGhpZ2hseSBhcHByZWNpYXRlZC4gSGVyZSdzIGEgcXVpY2sgZ3VpZGUuCgpGb3JrLCB0aGVuIGNsb25lIHRoZSByZXBvOgoKICAgIGdpdCBjbG9uZSBnaXRAZ2l0aHViLmNvbTp5b3VyLXVzZXJuYW1lL1tyZXBvXS5naXQKCkluc3RhbGwgZGVwZW5kZW5jaWVzOgoKICAgIG1ha2UgaW5zdGFsbAoKV29yayBvbiB0aGUgY29udHJpYnV0aW9uIGFuZCBjaGVjayBpZiBpdCBwYXNzZXMgYWxsIFFBIGNoZWNrcyB3aXRoOgoKICAgIG1ha2UKCklmIHNvbWUgb2YgdGhlIFBIUFN0YW4gb3Igb3RoZXIgY2hlY2tzIGFyZSB0b28gc3RyaWN0IG9yIGludGltaWRhdGluZyB0aGF0IGlzIG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ZXN0cy9jb2xsYWJvcmF0aW5nLXdpdGgtcHVsbC1yZXF1ZXN0cy9wcm9wb3NpbmctY2hhbmdlcy10by15b3VyLXdvcmstd2l0aC1wdWxsLXJlcXVlc3RzL2NyZWF0aW5nLWEtcHVsbC1yZXF1ZXN0CgpDb250cmlidXRpbmcgd2l0aCBhbiBMTE0/IFRoaXMgcmVwbyBpbmNsdWRlcyBhbiBbYEFHRU5UUy5tZGBdKEFHRU5UUy5tZCkgd2l0aCBndWlkYW5jZSBmb3IgY29kaW5nIGFnZW50czsgcG9pbnRpbmcgeW91ciBhZ2VudCBhdCBpdCBoZWxwcyBhIGxvdC4gQmVmb3JlIHlvdSBvcGVuIGEgUFIsIHNraW0gdGhyb3VnaCB5b3VyIGNoYW5nZXMgc28geW91IGZlZWwgY29tZm9ydGFibGUgd2l0aCBldmVyeXRoaW5nIHlvdSdyZSBzdWJtaXR0aW5nLgo="); file_put_contents($$contributingFile, str_replace(["[repo]"], [basename(__DIR__)], $$contributingContents)); ' || true) + ($(DOCKER_RUN) php -r '$$contributingFile = "CONTRIBUTING.md"; $$contributingContents = base64_decode("IyBDb250cmlidXRpbmcKClB1bGwgcmVxdWVzdHMgYXJlIGhpZ2hseSBhcHByZWNpYXRlZC4gSGVyZSdzIGEgcXVpY2sgZ3VpZGUuCgpGb3JrLCB0aGVuIGNsb25lIHRoZSByZXBvOgoKICAgIGdpdCBjbG9uZSBnaXRAZ2l0aHViLmNvbTp5b3VyLXVzZXJuYW1lL1tyZXBvXS5naXQKCkluc3RhbGwgZGVwZW5kZW5jaWVzOgoKICAgIG1ha2UgaW5zdGFsbAoKV29yayBvbiB0aGUgY29udHJpYnV0aW9uIGFuZCBjaGVjayBpZiBpdCBwYXNzZXMgYWxsIFFBIGNoZWNrcyB3aXRoOgoKICAgIG1ha2UKCklmIHNvbWUgb2YgdGhlIFBIUFN0YW4gb3Igb3RoZXIgY2hlY2tzIGFyZSB0b28gc3RyaWN0IG9yIGludGltaWRhdGluZyB0aG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h1Yi5jb20vZW4vcHVsbC1yZXF1ZXN0cy9jb2xsYWJvcmF0aW5nLXdpdGgtcHVsbC1yZXF1ZXN0cy9wcm9wb3NpbmctY2hhbmdlcy10by15b3VyLXdvcmstd2l0aC1wdWxsLXJlcXVlc3RzL2NyZWF0aW5nLWEtcHVsbC1yZXF1ZXN0CgpDb250cmlidXRpbmcgd2l0aCBhbiBMTE0/IFRoaXMgcmVwbyBpbmNsdWRlcyBhbiBbYEFHRU5UUy5tZGBdKEFHRU5UUy5tZCkgd2l0aCBndWlkYW5jZSBmb3IgY29kaW5nIGFnZW50czsgcG9pbnRpbmcgeW91ciBhZ2VudCBhdCBpdCBoZWxwcyBhIGxvdC4gQmVmb3JlIHlvdSBvcGVuIGEgUFIsIHNraW0gdGhyb3VnaCB5b3VyIGNoYW5nZXMgc28geW91IGZlZWwgY29tZm9ydGFibGUgd2l0aCBldmVyeXRoaW5nIHlvdSdyZSBzdWJtaXR0aW5nLgo="); file_put_contents($$contributingFile, str_replace(["[repo]"], [basename(__DIR__)], $$contributingContents)); ' || true) migrations-docs-create-documentation-markdownlint-config-if-not-exists: #### Create `etc/qa/documentation.markdownlint-cli2.yaml` when missing ##*I*## - ($(DOCKER_RUN) php -r '$$configFile = "etc/qa/documentation.markdownlint-cli2.yaml"; if (file_exists($$configFile)) {exit;} if (!is_dir("etc/qa")) {mkdir("etc/qa", 0777, true);} file_put_contents($$configFile, base64_decode("Z2l0aWdub3JlOiB0cnVlCm5vUHJvZ3Jlc3M6IHRydWUKbm9CYW5uZXI6IHRydWUKZ2xvYnM6CiAgLSAiKiovKi5tZCIKaWdub3JlczoKICAtICJ2YXIvKioiCiAgLSAidmVuZG9yLyoqIgogIC0gIi5naXQvKioiCmNvbmZpZzoKICBNRDAwNDogZmFsc2UKICBNRDAwNzogZmFsc2UKICBNRDAxMjogZmFsc2UKICBNRDAxMzogZmFsc2UKICBNRDAyMjogZmFsc2UKICBNRDAyNTogZmFsc2UKICBNRDAyNjogZmFsc2UKICBNRDAzMjogZmFsc2UKICBNRDAzMzogZmFsc2UKICBNRDA0MDogZmFsc2UKICBNRDA0MTogZmFsc2UK"));' || true) + ($(DOCKER_RUN) php -r '$$configFile = "etc/qa/documentation.markdownlint-cli2.yaml"; if (file_exists($$configFile)) {exit;} if (!is_dir("etc/qa")) {mkdir("etc/qa", 0777, true);} file_put_contents($$configFile, base64_decode("Z2l0aWdub3JlOiB0cnVlCm5vUHJvZ3Jlc3M6IHRydWUKbm9CYW5uZXI6IHRydWUKZ2xvYnM6CiAgLSAiKiovKi5tZCIKaWdub3JlczoKICAtICJ2YXIvKioiCiAgLSAidmVuZG9yLyoqIgogIC0gIi4qLyoqIgpjb25maWc6CiAgTUQwMDQ6IGZhbHNlCiAgTUQwMDc6IGZhbHNlCiAgTUQwMTI6IGZhbHNlCiAgTUQwMTM6IGZhbHNlCiAgTUQwMjI6IGZhbHNlCiAgTUQwMjU6IGZhbHNlCiAgTUQwMjY6IGZhbHNlCiAgTUQwMzI6IGZhbHNlCiAgTUQwMzM6IGZhbHNlCiAgTUQwNDA6IGZhbHNlCiAgTUQwNDE6IGZhbHNlCg=="));' || true) migrations-docs-create-lychee-config-if-not-exists: #### Create `etc/qa/lychee.toml` when missing ##*I*## - ($(DOCKER_RUN) php -r '$$configFile = "etc/qa/lychee.toml"; if (file_exists($$configFile)) {exit;} if (!is_dir("etc/qa")) {mkdir("etc/qa", 0777, true);} file_put_contents($$configFile, base64_decode("dmVyYm9zZSA9ICJ3YXJuIgpub19wcm9ncmVzcyA9IHRydWUKdGltZW91dCA9IDEyMAptYXhfcmV0cmllcyA9IDYKcmV0cnlfd2FpdF90aW1lID0gMwpleGNsdWRlX3BhdGggPSBbIl52YXIvIiwgIl52ZW5kb3IvIiwgIl5cXC5naXQvIl0KCltob3N0cy4iZG9jcy5naXRodWIuY29tIl0KaGVhZGVycyA9IHsgQWNjZXB0LUVuY29kaW5nID0gInpzdGQsIGJyLCBnemlwLCBkZWZsYXRlIiB9Cg=="));' || true) + ($(DOCKER_RUN) php -r '$$configFile = "etc/qa/lychee.toml"; if (file_exists($$configFile)) {exit;} if (!is_dir("etc/qa")) {mkdir("etc/qa", 0777, true);} file_put_contents($$configFile, base64_decode("dmVyYm9zZSA9ICJ3YXJuIgpub19wcm9ncmVzcyA9IHRydWUKdGltZW91dCA9IDEyMAptYXhfcmV0cmllcyA9IDYKcmV0cnlfd2FpdF90aW1lID0gMwpleGNsdWRlX3BhdGggPSBbIl52YXIvIiwgIl52ZW5kb3IvIl0KCltob3N0cy4iZG9jcy5naXRodWIuY29tIl0KaGVhZGVycyA9IHsgQWNjZXB0LUVuY29kaW5nID0gInpzdGQsIGJyLCBnemlwLCBkZWZsYXRlIiB9Cg=="));' || true) migrations-docs-prepend-lychee-timeout-if-missing: #### Prepend Lychee timeout 120 to etc/qa/lychee.toml when missing ##*I*## ($(DOCKER_RUN) php -r '$$configFile = "etc/qa/lychee.toml"; $$line = "timeout = 120\n"; if (!file_exists($$configFile)) {exit;} $$content = file_get_contents($$configFile); if (!is_string($$content) || preg_match("/^\s*timeout\s*=/m", $$content)) {exit;} file_put_contents($$configFile, $$line . $$content);' || true) @@ -184,23 +198,32 @@ migrations-docs-prepend-lychee-retry-wait-time-if-missing: #### Prepend Lychee r ($(DOCKER_RUN) php -r '$$configFile = "etc/qa/lychee.toml"; $$line = "retry_wait_time = 3\n"; if (!file_exists($$configFile)) {exit;} $$content = file_get_contents($$configFile); if (!is_string($$content) || preg_match("/^\s*retry_wait_time\s*=/m", $$content)) {exit;} file_put_contents($$configFile, $$line . $$content);' || true) migrations-docs-enforce-cspell-config-contents: #### Enforce `etc/qa/cspell.json` contents ##*I*## - ($(DOCKER_RUN) php -r '$$configFile = "etc/qa/cspell.json"; if (!is_dir("etc/qa")) {mkdir("etc/qa", 0777, true);} file_put_contents($$configFile, base64_decode("ewogICAgInZlcnNpb24iOiAiMC4yIiwKICAgICJsYW5ndWFnZSI6ICJlbiIsCiAgICAiYWxsb3dDb21wb3VuZFdvcmRzIjogdHJ1ZSwKICAgICJpZ25vcmVQYXRocyI6IFsKICAgICAgICAidmFyLyoqIiwKICAgICAgICAidmVuZG9yLyoqIiwKICAgICAgICAiLmdpdC8qKiIsCiAgICAgICAgIi5pZGVhLyoqIiwKICAgICAgICAiLmhlbG0vKioiLAogICAgICAgICIudGVycmFmb3JtLyoqIgogICAgXSwKICAgICJ3b3JkcyI6IFsKICAgICAgICAiQWlUZWxscyIsCiAgICAgICAgIkFzeW5jIiwKICAgICAgICAiQ1NwZWxsIiwKICAgICAgICAiQ2Vlcy1KYW4iLAogICAgICAgICJDb21wb3NlciIsCiAgICAgICAgIkRpYXRheGlzIiwKICAgICAgICAiRmlnbGV0IiwKICAgICAgICAiR0hBIiwKICAgICAgICAiR2l0SHViIiwKICAgICAgICAiSW5mZWN0aW9uUEhQIiwKICAgICAgICAiS2lld2lldCIsCiAgICAgICAgIk1TSSIsCiAgICAgICAgIk1ha2VmaWxlIiwKICAgICAgICAiTWFrZWZpbGVzIiwKICAgICAgICAiTWFtbWF0dXMiLAogICAgICAgICJNYW1tYXR1c1BIUCIsCiAgICAgICAgIk1vbm9sb2ciLAogICAgICAgICJOVFMiLAogICAgICAgICJPVEVMIiwKICAgICAgICAiUEhQQ1MiLAogICAgICAgICJQSFBTdGFuIiwKICAgICAgICAiUEhQVW5pdCIsCiAgICAgICAgIlBTUiIsCiAgICAgICAgIlBhY2thZ2lzdCIsCiAgICAgICAgIlJlbm92YXRlIiwKICAgICAgICAiUmV0cmlhYmxlIiwKICAgICAgICAiUm9hdmUiLAogICAgICAgICJSeFBIUCIsCiAgICAgICAgIlZhbGUiLAogICAgICAgICJXU0wiLAogICAgICAgICJXeXJpSGF4aW11cyIsCiAgICAgICAgIlpUUyIsCiAgICAgICAgImJhY2t0aWNrIiwKICAgICAgICAiYm95c2NvdXQiLAogICAgICAgICJjb2Rlc3BlbGwiLAogICAgICAgICJjb25maWciLAogICAgICAgICJjb25maWdzIiwKICAgICAgICAiZGF0YXByb3ZpZGVyIiwKICAgICAgICAiZGF0YXByb3ZpZGVycyIsCiAgICAgICAgImZyb250bWF0dGVyIiwKICAgICAgICAiZ2hjciIsCiAgICAgICAgImhlYWx0aHoiLAogICAgICAgICJseWNoZWUiLAogICAgICAgICJseWNoZWV2ZXJzZSIsCiAgICAgICAgIm1ha2VmaWxlcyIsCiAgICAgICAgIm1hcmtkb3dubGludCIsCiAgICAgICAgInBocHN0YW4iLAogICAgICAgICJwaHB1bml0IiwKICAgICAgICAicmVwbyIsCiAgICAgICAgInN1YmFnZW50IiwKICAgICAgICAic3ViYWdlbnRzIiwKICAgICAgICAic3VibGljZW5zZSIsCiAgICAgICAgInZob3N0cyIsCiAgICAgICAgInd5cmloYXhpbXVzIiwKICAgICAgICAid3lyaWhheGltdXNuZXQiCiAgICBdCn0K"));' || true) + ($(DOCKER_RUN) php -r '$$configFile = "etc/qa/cspell.json"; if (!is_dir("etc/qa")) {mkdir("etc/qa", 0777, true);} file_put_contents($$configFile, base64_decode("ewogICAgInZlcnNpb24iOiAiMC4yIiwKICAgICJsYW5ndWFnZSI6ICJlbiIsCiAgICAiYWxsb3dDb21wb3VuZFdvcmRzIjogdHJ1ZSwKICAgICJpZ25vcmVQYXRocyI6IFsKICAgICAgICAidmFyLyoqIiwKICAgICAgICAidmVuZG9yLyoqIiwKICAgICAgICAiLiovKioiCiAgICBdLAogICAgIndvcmRzIjogWwogICAgICAgICJBaVRlbGxzIiwKICAgICAgICAiQXN5bmMiLAogICAgICAgICJDU3BlbGwiLAogICAgICAgICJDZWVzLUphbiIsCiAgICAgICAgIkNvbXBvc2VyIiwKICAgICAgICAiRGlhdGF4aXMiLAogICAgICAgICJGaWdsZXQiLAogICAgICAgICJHSEEiLAogICAgICAgICJHaXRIdWIiLAogICAgICAgICJJbmZlY3Rpb25QSFAiLAogICAgICAgICJLaWV3aWV0IiwKICAgICAgICAiTVNJIiwKICAgICAgICAiTWFrZWZpbGUiLAogICAgICAgICJNYWtlZmlsZXMiLAogICAgICAgICJNYW1tYXR1cyIsCiAgICAgICAgIk1hbW1hdHVzUEhQIiwKICAgICAgICAiTW9ub2xvZyIsCiAgICAgICAgIk5UUyIsCiAgICAgICAgIk9URUwiLAogICAgICAgICJQSFBDUyIsCiAgICAgICAgIlBIUFN0YW4iLAogICAgICAgICJQSFBVbml0IiwKICAgICAgICAiUFNSIiwKICAgICAgICAiUGFja2FnaXN0IiwKICAgICAgICAiUmVub3ZhdGUiLAogICAgICAgICJSZXRyaWFibGUiLAogICAgICAgICJSb2F2ZSIsCiAgICAgICAgIlJ4UEhQIiwKICAgICAgICAiU0hBcyIsCiAgICAgICAgIlRlc3Rjb250YWluZXJzIiwKICAgICAgICAiVmFsZSIsCiAgICAgICAgIldTTCIsCiAgICAgICAgIld5cmlIYXhpbXVzIiwKICAgICAgICAiWlRTIiwKICAgICAgICAiYmFja3RpY2siLAogICAgICAgICJib3lzY291dCIsCiAgICAgICAgImNvZGVzcGVsbCIsCiAgICAgICAgImNvbmZpZyIsCiAgICAgICAgImNvbmZpZ3MiLAogICAgICAgICJkYXRhcHJvdmlkZXIiLAogICAgICAgICJkYXRhcHJvdmlkZXJzIiwKICAgICAgICAiZGVwcyIsCiAgICAgICAgImRldiIsCiAgICAgICAgImZyb250bWF0dGVyIiwKICAgICAgICAiZ2hjciIsCiAgICAgICAgImhlYWx0aHoiLAogICAgICAgICJpbmxpbmVkIiwKICAgICAgICAibHljaGVlIiwKICAgICAgICAibHljaGVldmVyc2UiLAogICAgICAgICJtYWtlZmlsZXMiLAogICAgICAgICJtYXJrZG93bmxpbnQiLAogICAgICAgICJwaHBzdGFuIiwKICAgICAgICAicGhwdW5pdCIsCiAgICAgICAgInByZXBlbmRzIiwKICAgICAgICAicmVwbyIsCiAgICAgICAgInJlcG9zIiwKICAgICAgICAic3ViYWdlbnQiLAogICAgICAgICJzdWJhZ2VudHMiLAogICAgICAgICJzdWJsaWNlbnNlIiwKICAgICAgICAic3VidGFyZ2V0cyIsCiAgICAgICAgInZhcmlhZGljIiwKICAgICAgICAidmhvc3RzIiwKICAgICAgICAid29yZGxpc3RzIiwKICAgICAgICAid3lyaWhheGltdXMiLAogICAgICAgICJ3eXJpaGF4aW11c25ldCIKICAgIF0KfQo="));' || true) migrations-docs-enforce-vale-config-contents: #### Enforce `etc/qa/vale.ini` contents ##*I*## - ($(DOCKER_RUN) php -r '$$configFile = "etc/qa/vale.ini"; if (!is_dir("etc/qa")) {mkdir("etc/qa", 0777, true);} file_put_contents($$configFile, base64_decode("U3R5bGVzUGF0aCA9IHZhbGUvc3R5bGVzCk1pbkFsZXJ0TGV2ZWwgPSB3YXJuaW5nClZvY2FiID0gV3lyaUhheGltdXMKUGFja2FnZXMgPSBodHRwczovL2dpdGh1Yi5jb20vamRrYXRvL2RpYXRheGlzL3JlbGVhc2VzL2Rvd25sb2FkL3YwLjEuMC9EaWF0YXhpcy56aXAsIFwKICAgICAgICAgICBodHRwczovL2dpdGh1Yi5jb20vdmFsZS1jbGkvd3JpdGUtZ29vZC9yZWxlYXNlcy9kb3dubG9hZC92MC40LjEvd3JpdGUtZ29vZC56aXAsIFwKICAgICAgICAgICBodHRwczovL2dpdGh1Yi5jb20vdmFsZS1jbGkvcmVhZGFiaWxpdHkvcmVsZWFzZXMvZG93bmxvYWQvdjAuMi4wL1JlYWRhYmlsaXR5LnppcCwgXAogICAgICAgICAgIGh0dHBzOi8vZ2l0aHViLmNvbS92YWxlLWNsaS9wcm9zZWxpbnQvcmVsZWFzZXMvZG93bmxvYWQvdjAuMy40L3Byb3NlbGludC56aXAsIFwKICAgICAgICAgICBodHRwczovL2dpdGh1Yi5jb20vdmFsZS1jbGkvYWxleC9yZWxlYXNlcy9kb3dubG9hZC92MC4yLjMvYWxleC56aXAsIFwKICAgICAgICAgICBodHRwczovL2dpdGh1Yi5jb20vYTExeWZyZWQvbmVpZ2hib3IvcmVsZWFzZXMvZG93bmxvYWQvdjIuMi4wL25laWdoYm9yLnppcCwgXAogICAgICAgICAgIGh0dHBzOi8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VGVsbHMsIEV4cGxhbmF0aW9uCgpbQ09OVFJJQlVUSU5HLm1kXQpCYXNlZE9uU3R5bGVzID0gVmFsZSwgd3JpdGUtZ29vZCwgUmVhZGFiaWxpdHksIHByb3NlbGludCwgYWxleCwgbmVpZ2hib3IsIEExMXksIEFpVGVsbHMsIEhvd1RvCgpbZXRjL2FpLyoqLm1kXQpCYXNlZE9uU3R5bGVzID0gVmFsZSwgd3JpdGUtZ29vZCwgUmVhZGFiaWxpdHksIHByb3NlbGludCwgYWxleCwgbmVpZ2hib3IsIEExMXksIEFpVGVsbHMsIFJlZmVyZW5jZQo="));' || true) + ($(DOCKER_RUN) php -r '$$configFile = "etc/qa/vale.ini"; if (!is_dir("etc/qa")) {mkdir("etc/qa", 0777, true);} file_put_contents($$configFile, base64_decode("U3R5bGVzUGF0aCA9IHZhbGUvc3R5bGVzCk1pbkFsZXJ0TGV2ZWwgPSB3YXJuaW5nClZvY2FiID0gV3lyaUhheGltdXMKUGFja2FnZXMgPSBodHRwczovL2dpdGh1Yi5jb20vamRrYXRvL2RpYXRheGlzL3JlbGVhc2VzL2Rvd25sb2FkL3YwLjEuMC9EaWF0YXhpcy56aXAsIFwKICAgICAgICAgICBodHRwczovL2dpdGh1Yi5jb20vdmFsZS1jbGkvd3JpdGUtZ29vZC9yZWxlYXNlcy9kb3dubG9hZC92MC40LjEvd3JpdGUtZ29vZC56aXAsIFwKICAgICAgICAgICBodHRwczovL2dpdGh1Yi5jb20vdmFsZS1jbGkvcmVhZGFiaWxpdHkvcmVsZWFzZXMvZG93bmxvYWQvdjAuMi4wL1JlYWRhYmlsaXR5LnppcCwgXAogICAgICAgICAgIGh0dHBzOi8vZ2l0aHViLmNvbS92YWxlLWNsaS9wcm9zZWxpbnQvcmVsZWFzZXMvZG93bmxvYWQvdjAuMy40L3Byb3NlbGludC56aXAsIFwKICAgICAgICAgICBodHRwczovL2dpdGh1Yi5jb20vdmFsZS1jbGkvYWxleC9yZWxlYXNlcy9kb3dubG9hZ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enforce-vale-vocab-contents: #### Enforce `etc/qa/vale-vocab.txt` contents ##*I*## - ($(DOCKER_RUN) php -r '$$configFile = "etc/qa/vale-vocab.txt"; if (!is_dir("etc/qa")) {mkdir("etc/qa", 0777, true);} file_put_contents($$configFile, base64_decode("QWlUZWxscwpBc3luYwpDU3BlbGwKQ2Vlcy1KYW4KQ29tcG9zZXIKRGlhdGF4aXMKRmlnbGV0CkdIQQpHaXRIdWIKSW5mZWN0aW9uUEhQCktpZXdpZXQKTVNJCk1ha2VmaWxlCk1ha2VmaWxlcwpNYW1tYXR1cwpNYW1tYXR1c1BIUApNb25vbG9nCk5UUwpPVEVMClBIUENTClBIUFN0YW4KUEhQVW5pdApQU1IKUGFja2FnaXN0ClJlbm92YXRlClJldHJpYWJsZQpSb2F2ZQpSeFBIUApWYWxlCldTTApXeXJpSGF4aW11cwpaVFMKYmFja3RpY2sKYm95c2NvdXQKY29kZXNwZWxsCmNvbmZpZwpjb25maWdzCmRhdGFwcm92aWRlcgpkYXRhcHJvdmlkZXJzCmZyb250bWF0dGVyCmdoY3IKaGVhbHRoegpseWNoZWUKbHljaGVldmVyc2UKbWFrZWZpbGVzCm1hcmtkb3dubGludApwaHBzdGFuCnBocHVuaXQKcmVwbwpzdWJhZ2VudApzdWJhZ2VudHMKc3VibGljZW5zZQp2aG9zdHMKd3lyaWhheGltdXMKd3lyaWhheGltdXNuZXQK"));' || true) + ($(DOCKER_RUN) php -r '$$configFile = "etc/qa/vale-vocab.txt"; if (!is_dir("etc/qa")) {mkdir("etc/qa", 0777, true);} file_put_contents($$configFile, base64_decode("QWlUZWxscwpBc3luYwpDU3BlbGwKQ2Vlcy1KYW4KQ29tcG9zZXIKRGlhdGF4aXMKRmlnbGV0CkdIQQpHaXRIdWIKSW5mZWN0aW9uUEhQCktpZXdpZXQKTVNJCk1ha2VmaWxlCk1ha2VmaWxlcwpNYW1tYXR1cwpNYW1tYXR1c1BIUApNb25vbG9nCk5UUwpPVEVMClBIUENTClBIUFN0YW4KUEhQVW5pdApQU1IKUGFja2FnaXN0ClJlbm92YXRlClJldHJpYWJsZQpSb2F2ZQpSeFBIUApTSEFzClRlc3Rjb250YWluZXJzClZhbGUKV1NMCld5cmlIYXhpbXVzClpUUwpiYWNrdGljawpib3lzY291dApjb2Rlc3BlbGwKY29uZmlnCmNvbmZpZ3MKZGF0YXByb3ZpZGVyCmRhdGFwcm92aWRlcnMKZGVwcwpkZXYKZnJvbnRtYXR0ZXIKZ2hjcgpoZWFsdGh6CmlubGluZWQKbHljaGVlCmx5Y2hlZXZlcnNlCm1ha2VmaWxlcwptYXJrZG93bmxpbnQKcGhwc3RhbgpwaHB1bml0CnByZXBlbmRzCnJlcG8KcmVwb3MKc3ViYWdlbnQKc3ViYWdlbnRzCnN1YmxpY2Vuc2UKc3VidGFyZ2V0cwp2YXJpYWRpYwp2aG9zdHMKd29yZGxpc3RzCnd5cmloYXhpbXVzCnd5cmloYXhpbXVzbmV0Cg=="));' || true) migrations-docs-enrich-qa-wordlists-with-php-symbols: #### Merge PHP symbol and Composer package names into etc/qa documentation wordlists ##*I*## ($(DOCKER_RUN) php -r '$$autoload = getcwd() . "/vendor/autoload.php"; if (!is_file($$autoload)) {exit;} require $$autoload; \WyriHaximus\Makefiles\Documentation\WordlistDocumentationConfigSync::enrichQaWordlistsWithPhpSymbols(getcwd());' || true) +migrations-docs-sync-wordlist-to-qa-wordlists: #### Merge etc/wordlist.txt into etc/qa documentation wordlists ##*I*## + ($(DOCKER_RUN) php -r '$$autoload = getcwd() . "/vendor/autoload.php"; if (!is_file($$autoload)) {exit;} require $$autoload; \WyriHaximus\Makefiles\Documentation\WordlistDocumentationConfigSync::syncWordlistToQaWordlists(getcwd());' || true) + migrations-docs-create-vale-vocab-symlink-if-not-exists: #### Create WyriHaximus Vale vocab symlink when missing ##*I*## ($(DOCKER_RUN) php -r '$$link = "etc/qa/vale/styles/config/vocabularies/WyriHaximus/accept.txt"; if (is_link($$link)) {exit;} if (!is_dir("etc/qa")) {mkdir("etc/qa", 0777, true);} if (!is_dir(dirname($$link))) {mkdir(dirname($$link), 0777, true);} symlink("../../../../../vale-vocab.txt", $$link);' || true) migrations-docs-update-readme-github-actions-badge-yml-to-yaml: #### Update GitHub Actions badge workflow file extension from `.yml` to `.yaml` in `README.md` ##*I*## ($(DOCKER_RUN) php -r '$$readmeFile = "README.md"; if (!file_exists($$readmeFile)) {exit;} $$readmeContents = file_get_contents($$readmeFile); if (!is_string($$readmeContents)) {exit;} if (str_contains($$readmeContents, "[![") && str_contains($$readmeContents, "badge.svg")) { $$readmeContents = preg_replace_callback("#(https://github\.com/[^/\s\)]+/[^/\s\)]+/actions/workflows/[^/\s\)\?]+)\.yml#", function($$m) { return $$m[1] . ".yaml"; }, $$readmeContents); file_put_contents($$readmeFile, $$readmeContents); }' || true) +migrations-docs-update-agents-phpunit-version: #### Update PHPUnit version in AGENTS.md dataproviders link to match installed version ##*I*## + ($(DOCKER_RUN) php -r '$$agentsFile = "AGENTS.md"; if (!file_exists($$agentsFile)) {exit;} $$agentsContents = file_get_contents($$agentsFile); if (!is_string($$agentsContents)) {exit;} $$versionLine = trim(shell_exec("composer show phpunit/phpunit 2>/dev/null | grep versions")); if (!$$versionLine) {exit;} if (!preg_match("/^\s*versions\s*:\s*\*\s*(\d+)\./", $$versionLine, $$matches)) {exit;} $$majorVersion = $$matches[1]; $$agentsContents = preg_replace_callback("#(https://phpunit\.readthedocs\.io/en/)\d+\.0/writing-tests-for-phpunit\.html\#data-providers#", function($$m) use ($$majorVersion) { return $$m[1] . "$$majorVersion.0/writing-tests-for-phpunit.html#data-providers"; }, $$agentsContents); file_put_contents($$agentsFile, $$agentsContents);' || true) + +migrations-docs-add-readme-license-vale-comments: #### Add Vale annotation comments to MIT license block in README.md ##*I*## + ($(DOCKER_RUN) php -r '$$readmeFile = "README.md"; if (!file_exists($$readmeFile)) {exit;} $$readmeContents = file_get_contents($$readmeFile); if (!is_string($$readmeContents)) {exit;} $$readmeContents = str_replace(base64_decode("U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pb25zIG9mIHRoZSBTb2Z0d2FyZS4KCjwhLS0gdmFsZSBuZWlnaGJvci5BbGxDYXBzUHJvc2UgPSBOTyAtLT4KVEhFIFNPRlRXQVJFIElTIFBST1ZJREVEICJBUyBJUyIsIFdJVEhPVVQgV0FSUkFOVFkgT0YgQU5ZIEtJTkQsIEVYUFJFU1MgT1IKSU1QTElFRCwgSU5DTFVESU5HIEJVVCBOT1QgTElNSVRFRCBUTyBUSEUgV0FSUkFOVElFUyBPRiBNRVJDSEFOVEFCSUxJVFksCkZJVE5FU1MgRk9SIEEgUEFSVElDVUxBUiBQVVJQT1NFIEFORCBOT05JTkZSSU5HRU1FTlQuIElOIE5PIEVWRU5UIFNIQUxMIFRIRQpBVVRIT1JTIE9SIENPUFlSSUdIVCBIT0xERVJTIEJFIExJQUJMRSBGT1IgQU5ZIENMQUlNLCBEQU1BR0VTIE9SIE9USEVSCkxJQUJJTElUWSwgV0hFVEhFUiBJTiBBTiBBQ1RJT04gT0YgQ09OVFJBQ1QsIFRPUlQgT1IgT1RIRVJXSVNFLCBBUklTSU5HIEZST00sCk9VVCBPRiBPUiBJTiBDT05ORUNUSU9OIFdJVEggVEhFIFNPRlRXQVJFIE9SIFRIRSBVU0UgT1IgT1RIRVIgREVBTElOR1MgSU4gVEhFClNPRlRXQVJFLgo8IS0tIHZhbGUgbmVpZ2hib3IuQWxsQ2Fwc1Byb3NlID0geWVzIC0tPgo8IS0tIHZhbGUgd3JpdGUtZ29vZCA9IHllcyAtLT4K"), $$readmeContents); file_put_contents($$readmeFile, $$readmeContents);' || true) + migrations-php-make-sure-var-exists: #### Make sure `var/` exists ##*I*## ($(DOCKER_RUN) mkdir var || true) @@ -241,7 +264,7 @@ migrations-php-remove-old-travis-yml-config: #### Make sure we remove `.travis.y ($(DOCKER_RUN) rm .travis.yml || true) migrations-php-ensure-etc-ci-markdown-link-checker-json-exists: #### Make sure we have `etc/ci/markdown-link-checker.json` ##*I*## - ($(DOCKER_RUN) php -r '$$markdownLinkCheckerFile = "etc/ci/markdown-link-checker.json"; $$json = json_decode("{\"httpHeaders\": [{\"urls\": [\"https://docs.github.com/\"],\"headers\": {\"Accept-Encoding\": \"zstd, br, gzip, deflate\"}}]}"); if (file_exists($$markdownLinkCheckerFile)) {exit;} file_put_contents($$markdownLinkCheckerFile, json_encode($$json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\r\n");' || true) + ($(DOCKER_RUN) php -r '$$markdownLinkCheckerFile = "etc/ci/markdown-link-checker.json"; $$json = json_decode("{\"httpHeaders\": [{\"urls\": [\"https://docs.github.com/\"],\"headers\": {\"Accept-Encoding\": \"zstd, br, gzip, deflate\"}}]}"); if (file_exists($$markdownLinkCheckerFile)) {exit;} file_put_contents($$markdownLinkCheckerFile, json_encode($$json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\n");' || true) migrations-php-ensure-etc-qa-coverage-guard-php-exists: #### Make sure we have `etc/qa/coverage-guard.php` ##*I*## ($(DOCKER_RUN) php -r '$$coverageGuardFile = "etc/qa/coverage-guard.php"; $$coverageGuardConfig = base64_decode("PD9waHAKCmRlY2xhcmUoc3RyaWN0X3R5cGVzPTEpOwoKdXNlIFNoaXBNb25rXENvdmVyYWdlR3VhcmRcQ29uZmlnOwp1c2UgU2hpcE1vbmtcQ292ZXJhZ2VHdWFyZFxFeGNsdWRlclxJZ25vcmVUaHJvd05ld0V4Y2VwdGlvbkxpbmVFeGNsdWRlcjsKdXNlIFNoaXBNb25rXENvdmVyYWdlR3VhcmRcUnVsZVxFbmZvcmNlQ292ZXJhZ2VGb3JNZXRob2RzUnVsZTsKCnJldHVybiAoc3RhdGljIGZ1bmN0aW9uICgpOiBDb25maWcgewogICAgJGNvbmZpZyA9IG5ldyBDb25maWcoKTsKCiAgICAkY29uZmlnLT5hZGRSdWxlKG5ldyBFbmZvcmNlQ292ZXJhZ2VGb3JNZXRob2RzUnVsZSgKICAgICAgICByZXF1aXJlZENvdmVyYWdlUGVyY2VudGFnZTogODAsCiAgICAgICAgbWluRXhlY3V0YWJsZUxpbmVzOiAxLAogICAgKSk7CgogICAgJGNvbmZpZy0+YWRkRXhlY3V0YWJsZUxpbmVFeGNsdWRlcihuZXcgSWdub3JlVGhyb3dOZXdFeGNlcHRpb25MaW5lRXhjbHVkZXIoWwogICAgICAgIFJ1bnRpbWVFeGNlcHRpb246OmNsYXNzLAogICAgXSkpOwoKICAgIHJldHVybiAkY29uZmlnOwp9KSgpOwo="); if (file_exists($$coverageGuardFile)) {exit;} file_put_contents($$coverageGuardFile, $$coverageGuardConfig);' || true) @@ -256,31 +279,31 @@ migrations-php-infection-create-config-if-not-exists: #### Create Infection conf ($(DOCKER_RUN) php -r '$$infectionFile = "etc/qa/infection.json5"; $$infectionConfig = base64_decode("ewogICAgInRocmVhZHMiOiA2NCwKICAgICJ0aW1lb3V0IjogMTIwLAogICAgInNvdXJjZSI6IHsKICAgICAgICAiZGlyZWN0b3JpZXMiOiBbCiAgICAgICAgICAgICJzcmMiCiAgICAgICAgXQogICAgfSwKICAgICJsb2dzIjogewogICAgICAgICJ0ZXh0IjogIi4uLy4uL3Zhci9pbmZlY3Rpb24ubG9nIiwKICAgICAgICAic3VtbWFyeSI6ICIuLi8uLi92YXIvaW5mZWN0aW9uLXN1bW1hcnkubG9nIiwKICAgICAgICAianNvbiI6ICIuLi8uLi92YXIvaW5mZWN0aW9uLmpzb24iLAogICAgICAgICJwZXJNdXRhdG9yIjogIi4uLy4uL3Zhci9pbmZlY3Rpb24tcGVyLW11dGF0b3IubWQiLAogICAgICAgICJnaXRodWIiOiB0cnVlCiAgICB9LAogICAgIm1pbk1zaSI6IDEwMCwKICAgICJtaW5Db3ZlcmVkTXNpIjogMTAwLAogICAgImlnbm9yZU1zaVdpdGhOb011dGF0aW9ucyI6IHRydWUsCiAgICAibXV0YXRvcnMiOiB7CiAgICAgICAgIkBkZWZhdWx0IjogdHJ1ZQogICAgfQp9Cg=="); if (file_exists($$infectionFile)) {exit;} file_put_contents($$infectionFile, $$infectionConfig);' || true) migrations-php-remove-phpunit-config-dir-from-infection: #### Drop XXX from `etc/qa/infection.json5` ##*I*## - ($(DOCKER_RUN) php -r '$$infectionFile = "etc/qa/infection.json5"; if (!file_exists($$infectionFile)) {exit;} $$json = json_decode(file_get_contents($$infectionFile), true); if (!is_array($$json)) {exit;} if (!array_key_exists("phpUnit", $$json)) {exit;} unset($$json["phpUnit"]); file_put_contents($$infectionFile, json_encode($$json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\r\n");' || true) + ($(DOCKER_RUN) php -r '$$infectionFile = "etc/qa/infection.json5"; if (!file_exists($$infectionFile)) {exit;} $$json = json_decode(file_get_contents($$infectionFile), true); if (!is_array($$json)) {exit;} if (!array_key_exists("phpUnit", $$json)) {exit;} unset($$json["phpUnit"]); file_put_contents($$infectionFile, json_encode($$json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\n");' || true) migrations-php-fix-logs-relative-paths-for-infection: #### Fix logs paths in `etc/qa/infection.json5` ##*I*## - ($(DOCKER_RUN) php -r '$$infectionFile = "etc/qa/infection.json5"; if (!file_exists($$infectionFile)) {exit;} $$json = json_decode(file_get_contents($$infectionFile), true); if (!is_array($$json)) {exit;} if (!array_key_exists("logs", $$json)) {exit;} foreach ($$json["logs"] as $$logsKey => $$logsPath) { if (is_string($$json["logs"][$$logsKey]) && str_starts_with($$json["logs"][$$logsKey], "./var/infection")) { $$json["logs"][$$logsKey] = str_replace("./var/infection", "../../var/infection", $$json["logs"][$$logsKey]); } } file_put_contents($$infectionFile, json_encode($$json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\r\n");' || true) + ($(DOCKER_RUN) php -r '$$infectionFile = "etc/qa/infection.json5"; if (!file_exists($$infectionFile)) {exit;} $$json = json_decode(file_get_contents($$infectionFile), true); if (!is_array($$json)) {exit;} if (!array_key_exists("logs", $$json)) {exit;} foreach ($$json["logs"] as $$logsKey => $$logsPath) { if (is_string($$json["logs"][$$logsKey]) && str_starts_with($$json["logs"][$$logsKey], "./var/infection")) { $$json["logs"][$$logsKey] = str_replace("./var/infection", "../../var/infection", $$json["logs"][$$logsKey]); } } file_put_contents($$infectionFile, json_encode($$json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\n");' || true) migrations-php-infection-ensure-log-text-has-the-correct-path: #### Ensure infection's log.text has config directive has the correct path ##*I*## - ($(DOCKER_RUN) php -r '$$infectionFile = "etc/qa/infection.json5"; if (!file_exists($$infectionFile)) {exit;} $$json = json_decode(file_get_contents($$infectionFile), true); if (!is_array($$json)) {exit;} if (!array_key_exists("logs", $$json)) { $$json["logs"] = []; } $$json["logs"]["text"] = "../../var/infection.log"; file_put_contents($$infectionFile, json_encode($$json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\r\n");' || true) + ($(DOCKER_RUN) php -r '$$infectionFile = "etc/qa/infection.json5"; if (!file_exists($$infectionFile)) {exit;} $$json = json_decode(file_get_contents($$infectionFile), true); if (!is_array($$json)) {exit;} if (!array_key_exists("logs", $$json)) { $$json["logs"] = []; } $$json["logs"]["text"] = "../../var/infection.log"; file_put_contents($$infectionFile, json_encode($$json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\n");' || true) migrations-php-infection-ensure-log-summary-has-the-correct-path: #### Ensure infection's log.summary has config directive has the correct path ##*I*## - ($(DOCKER_RUN) php -r '$$infectionFile = "etc/qa/infection.json5"; if (!file_exists($$infectionFile)) {exit;} $$json = json_decode(file_get_contents($$infectionFile), true); if (!is_array($$json)) {exit;} if (!array_key_exists("logs", $$json)) { $$json["logs"] = []; } $$json["logs"]["summary"] = "../../var/infection-summary.log"; file_put_contents($$infectionFile, json_encode($$json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\r\n");' || true) + ($(DOCKER_RUN) php -r '$$infectionFile = "etc/qa/infection.json5"; if (!file_exists($$infectionFile)) {exit;} $$json = json_decode(file_get_contents($$infectionFile), true); if (!is_array($$json)) {exit;} if (!array_key_exists("logs", $$json)) { $$json["logs"] = []; } $$json["logs"]["summary"] = "../../var/infection-summary.log"; file_put_contents($$infectionFile, json_encode($$json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\n");' || true) migrations-php-infection-ensure-log-json-has-the-correct-path: #### Ensure infection's log.json has config directive has the correct path ##*I*## - ($(DOCKER_RUN) php -r '$$infectionFile = "etc/qa/infection.json5"; if (!file_exists($$infectionFile)) {exit;} $$json = json_decode(file_get_contents($$infectionFile), true); if (!is_array($$json)) {exit;} if (!array_key_exists("logs", $$json)) { $$json["logs"] = []; } $$json["logs"]["json"] = "../../var/infection.json"; file_put_contents($$infectionFile, json_encode($$json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\r\n");' || true) + ($(DOCKER_RUN) php -r '$$infectionFile = "etc/qa/infection.json5"; if (!file_exists($$infectionFile)) {exit;} $$json = json_decode(file_get_contents($$infectionFile), true); if (!is_array($$json)) {exit;} if (!array_key_exists("logs", $$json)) { $$json["logs"] = []; } $$json["logs"]["json"] = "../../var/infection.json"; file_put_contents($$infectionFile, json_encode($$json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\n");' || true) migrations-php-infection-ensure-log-per-mutator-has-the-correct-path: #### Ensure infection's log.perMutator has config directive has the correct path ##*I*## - ($(DOCKER_RUN) php -r '$$infectionFile = "etc/qa/infection.json5"; if (!file_exists($$infectionFile)) {exit;} $$json = json_decode(file_get_contents($$infectionFile), true); if (!is_array($$json)) {exit;} if (!array_key_exists("logs", $$json)) { $$json["logs"] = []; } $$json["logs"]["perMutator"] = "../../var/infection-per-mutator.md"; file_put_contents($$infectionFile, json_encode($$json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\r\n");' || true) + ($(DOCKER_RUN) php -r '$$infectionFile = "etc/qa/infection.json5"; if (!file_exists($$infectionFile)) {exit;} $$json = json_decode(file_get_contents($$infectionFile), true); if (!is_array($$json)) {exit;} if (!array_key_exists("logs", $$json)) { $$json["logs"] = []; } $$json["logs"]["perMutator"] = "../../var/infection-per-mutator.md"; file_put_contents($$infectionFile, json_encode($$json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\n");' || true) migrations-php-add-github-true-to-for-infection: #### Ensure we configure infection to emit logs to GitHub in `etc/qa/infection.json5` ##*I*## - ($(DOCKER_RUN) php -r '$$infectionFile = "etc/qa/infection.json5"; if (!file_exists($$infectionFile)) {exit;} $$json = json_decode(file_get_contents($$infectionFile), true); if (!is_array($$json)) {exit;} if (!array_key_exists("logs", $$json)) {exit;} if (array_key_exists("github", $$json["logs"])) {exit;} $$json["logs"]["github"] = true; file_put_contents($$infectionFile, json_encode($$json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\r\n");' || true) + ($(DOCKER_RUN) php -r '$$infectionFile = "etc/qa/infection.json5"; if (!file_exists($$infectionFile)) {exit;} $$json = json_decode(file_get_contents($$infectionFile), true); if (!is_array($$json)) {exit;} if (!array_key_exists("logs", $$json)) {exit;} if (array_key_exists("github", $$json["logs"])) {exit;} $$json["logs"]["github"] = true; file_put_contents($$infectionFile, json_encode($$json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\n");' || true) migrations-php-infection-add-threads-64-to-config: #### Ensure `threads` is set to `64` in `etc/qa/infection.json5` ##*I*## - ($(DOCKER_RUN) php -r '$$infectionFile = "etc/qa/infection.json5"; if (!file_exists($$infectionFile)) {exit;} $$json = json_decode(file_get_contents($$infectionFile), true); if (!is_array($$json)) {exit;} if (array_key_exists("threads", $$json)) {exit;} $$json["threads"] = 64; file_put_contents($$infectionFile, json_encode($$json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\r\n");' || true) + ($(DOCKER_RUN) php -r '$$infectionFile = "etc/qa/infection.json5"; if (!file_exists($$infectionFile)) {exit;} $$json = json_decode(file_get_contents($$infectionFile), true); if (!is_array($$json)) {exit;} if (array_key_exists("threads", $$json)) {exit;} $$json["threads"] = 64; file_put_contents($$infectionFile, json_encode($$json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\n");' || true) migrations-php-make-paths-compatible-with-infection-0-32: #### We update path to be relative to `etc/qa/infection.json5` as of 0.32 ##*I*## - ($(DOCKER_RUN) php -r '$$infectionFile = "etc/qa/infection.json5"; if (!file_exists($$infectionFile)) {exit;} $$json = json_decode(file_get_contents($$infectionFile), true); if (!is_array($$json)) {exit;} if (!array_key_exists("source", $$json)) {exit;} if (!array_key_exists("directories", $$json["source"])) {exit;} foreach ($$json["source"]["directories"] as $$key => $$value) { if (!str_starts_with($$value, "../../")) {$$json["source"]["directories"][$$key] = "../../" . $$value;} } file_put_contents($$infectionFile, json_encode($$json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\r\n");' || true) + ($(DOCKER_RUN) php -r '$$infectionFile = "etc/qa/infection.json5"; if (!file_exists($$infectionFile)) {exit;} $$json = json_decode(file_get_contents($$infectionFile), true); if (!is_array($$json)) {exit;} if (!array_key_exists("source", $$json)) {exit;} if (!array_key_exists("directories", $$json["source"])) {exit;} foreach ($$json["source"]["directories"] as $$key => $$value) { if (!str_starts_with($$value, "../../")) {$$json["source"]["directories"][$$key] = "../../" . $$value;} } file_put_contents($$infectionFile, json_encode($$json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\n");' || true) migrations-php-set-phpunit-ensure-config-file-exists: #### Make sure we have a PHPUnit config file at `etc/qa/phpunit.xml` ##*I*## ($(DOCKER_RUN) php -r '$$phpUnitConfigFIle = "etc/qa/phpunit.xml"; if (file_exists($$phpUnitConfigFIle)) {exit;} file_put_contents($$phpUnitConfigFIle, base64_decode("PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHBocHVuaXQKICAgIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiCiA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AgICAgICA8aHRtbCBvdXRwdXREaXJlY3Rvcnk9Ii4uLy4uL3Zhci90ZXN0cy91bml0L2NvdmVyYWdlLWh0bWwiLz4KICAgICAgICA8L3JlcG9ydD4KICAgIDwvY292ZXJhZ2U+CiAgICA8ZXh0ZW5zaW9ucz4KICAgICAgICA8Ym9vdHN0cmFwIGNsYXNzPSJFcmdlYm5pc1xQSFBVbml0XFNsb3dUZXN0RGV0ZWN0b3JcRXh0ZW5zaW9uIi8+CiAgICA8L2V4dGVuc2lvbnM+CjwvcGhwdW5pdD4K"));' || true) @@ -337,7 +360,7 @@ migrations-php-composer-unused-drop-commented-out-line-scattered-across-my-repos ($(DOCKER_RUN) php -r '$$composerUnusedConfigFile = "etc/qa/composer-unused.php"; if (!file_exists($$composerUnusedConfigFile)) {exit;} $$php = file_get_contents($$composerUnusedConfigFile); if (!is_string($$php)) {exit;} $$php = str_replace(base64_decode("Ly8gICAgICAgIC0+YWRkTmFtZWRGaWx0ZXIoTmFtZWRGaWx0ZXI6OmZyb21TdHJpbmcoJ3d5cmloYXhpbXVzL3BocHN0YW4tcnVsZXMtd3JhcHBlcicpKTsK"), "", $$php); file_put_contents($$composerUnusedConfigFile, $$php);' || true) migrations-php-migrate-composer-unused-from-extra-unused-to-etc-qa-composer-used-php: #### Migrate Compose Unused from `composer.json` extra unused to `etc/qa/composer-unused.php` ##*I*## - ($(DOCKER_RUN) php -r '$$composerJsonFile = "composer.json"; $$composerUnusedFile = "etc/qa/composer-unused.php"; if (!file_exists($$composerJsonFile)) {exit;} $$json = json_decode(file_get_contents($$composerJsonFile), true); if (!is_array($$json)) {exit;} if (!array_key_exists("extra", $$json)) {exit;} if (!array_key_exists("unused", $$json["extra"])) {exit;} foreach ($$json["extra"]["unused"] as $$unusedPAckage) { file_put_contents($$composerUnusedFile, str_replace(base64_decode("cmV0dXJuIHN0YXRpYyBmbiAoQ29uZmlndXJhdGlvbiAkY29uZmlnKTogQ29uZmlndXJhdGlvbiA9PiAkY29uZmlnCg=="), base64_decode("cmV0dXJuIHN0YXRpYyBmbiAoQ29uZmlndXJhdGlvbiAkY29uZmlnKTogQ29uZmlndXJhdGlvbiA9PiAkY29uZmlnCg==") . "\r\n" . base64_decode("ICAgIC0+YWRkTmFtZWRGaWx0ZXIoXENvbXBvc2VyVW51c2VkXENvbXBvc2VyVW51c2VkXENvbmZpZ3VyYXRpb25cTmFtZWRGaWx0ZXI6OmZyb21TdHJpbmcoJwo=") . $$unusedPAckage . base64_decode("Jykp"), file_get_contents($$composerUnusedFile))); } unset($$json["extra"]["unused"]); file_put_contents($$composerJsonFile, json_encode($$json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\r\n");' || true) + ($(DOCKER_RUN) php -r '$$composerJsonFile = "composer.json"; $$composerUnusedFile = "etc/qa/composer-unused.php"; if (!file_exists($$composerJsonFile)) {exit;} $$json = json_decode(file_get_contents($$composerJsonFile), true); if (!is_array($$json)) {exit;} if (!array_key_exists("extra", $$json)) {exit;} if (!array_key_exists("unused", $$json["extra"])) {exit;} foreach ($$json["extra"]["unused"] as $$unusedPAckage) { file_put_contents($$composerUnusedFile, str_replace(base64_decode("cmV0dXJuIHN0YXRpYyBmbiAoQ29uZmlndXJhdGlvbiAkY29uZmlnKTogQ29uZmlndXJhdGlvbiA9PiAkY29uZmlnCg=="), base64_decode("cmV0dXJuIHN0YXRpYyBmbiAoQ29uZmlndXJhdGlvbiAkY29uZmlnKTogQ29uZmlndXJhdGlvbiA9PiAkY29uZmlnCg==") . "\n" . base64_decode("ICAgIC0+YWRkTmFtZWRGaWx0ZXIoXENvbXBvc2VyVW51c2VkXENvbXBvc2VyVW51c2VkXENvbmZpZ3VyYXRpb25cTmFtZWRGaWx0ZXI6OmZyb21TdHJpbmcoJwo=") . $$unusedPAckage . base64_decode("Jykp"), file_get_contents($$composerUnusedFile))); } unset($$json["extra"]["unused"]); file_put_contents($$composerJsonFile, json_encode($$json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\n");' || true) migrations-php-move-phpcs: #### Move `phpcs.xml.dist` to `etc/qa/phpcs.xml` ##*I*## ($(DOCKER_RUN) mv phpcs.xml.dist etc/qa/phpcs.xml || true) @@ -491,13 +514,13 @@ migrations-renovate-point-at-correct-config: #### Ensure `.github/renovate.json` ($(DOCKER_RUN) php -r '$$renovateFIle = ".github/renovate.json"; if (!file_exists($$renovateFIle)) {exit;} file_put_contents($$renovateFIle, str_replace("local>WyriHaximus/renovate-config", "github>WyriHaximus/renovate-config:php-package", file_get_contents($$renovateFIle)));' || true) migrations-renovate-set-php-constraint: #### Always keep renovate's constraints.php in sync with `composer.json`'s `config.platform.php` ##*I*## - ($(DOCKER_RUN) php -r '$$composerFIle = "composer.json"; if (!file_exists($$composerFIle)) {exit;} $$json = json_decode(file_get_contents($$composerFIle), true); if (!array_key_exists("config", $$json)) {exit;} if (!array_key_exists("platform", $$json["config"])) {exit;} if (!array_key_exists("php", $$json["config"]["platform"])) {exit;} $$phpVersionConstraint = str_replace(".13", ".x", $$json["config"]["platform"]["php"]); $$renovateFIle = ".github/renovate.json"; if (!file_exists($$renovateFIle)) {exit;} $$json = json_decode(file_get_contents($$renovateFIle), true); if (!is_array($$json)) {exit;} if (!array_key_exists("constraints", $$json)) {$$json["constraints"] = [];} $$json["constraints"]["php"] = $$phpVersionConstraint; file_put_contents($$renovateFIle, json_encode($$json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\r\n");' || true) + ($(DOCKER_RUN) php -r '$$composerFIle = "composer.json"; if (!file_exists($$composerFIle)) {exit;} $$json = json_decode(file_get_contents($$composerFIle), true); if (!array_key_exists("config", $$json)) {exit;} if (!array_key_exists("platform", $$json["config"])) {exit;} if (!array_key_exists("php", $$json["config"]["platform"])) {exit;} $$phpVersionConstraint = preg_replace("/\.\d+$/", ".x", $$json["config"]["platform"]["php"]); $$renovateFIle = ".github/renovate.json"; if (!file_exists($$renovateFIle)) {exit;} $$json = json_decode(file_get_contents($$renovateFIle), true); if (!is_array($$json)) {exit;} if (!array_key_exists("constraints", $$json)) {$$json["constraints"] = [];} $$json["constraints"]["php"] = $$phpVersionConstraint; file_put_contents($$renovateFIle, json_encode($$json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\n");' || true) migrations-renovate-set-composer-constraint: #### Always keep renovate's `constraints.composer` at `2.x` ##*I*## - ($(DOCKER_RUN) php -r '$$renovateFIle = ".github/renovate.json"; if (!file_exists($$renovateFIle)) {exit;} $$json = json_decode(file_get_contents($$renovateFIle), true); if (!is_array($$json)) {exit;} if (!array_key_exists("constraints", $$json)) {$$json["constraints"] = [];} $$json["constraints"]["composer"] = "2.x"; file_put_contents($$renovateFIle, json_encode($$json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\r\n");' || true) + ($(DOCKER_RUN) php -r '$$renovateFIle = ".github/renovate.json"; if (!file_exists($$renovateFIle)) {exit;} $$json = json_decode(file_get_contents($$renovateFIle), true); if (!is_array($$json)) {exit;} if (!array_key_exists("constraints", $$json)) {$$json["constraints"] = [];} $$json["constraints"]["composer"] = "2.x"; file_put_contents($$renovateFIle, json_encode($$json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\n");' || true) migrations-git-enforce-agents-md-contents: #### Enforce `AGENTS.md` contents ##*I*## - ($(DOCKER_RUN) php -r 'file_put_contents("AGENTS.md", base64_decode("IyBJbnN0cnVjdGlvbiBFY29ub215IChjaGVjayBiZWZvcmUgRVZFUlkgaW5zdHJ1Y3Rpb24geW91IGFkZCkKCkJlZm9yZSBhZGRpbmcgYW4gaW5zdHJ1Y3Rpb24gQU5ZV0hFUkUgKEFHRU5UUy5tZHMsIHJ1bGVzLCBhZ2VudHMsIHNraWxscywgaG9va3MsIGNvbmZpZ3MpOiBwcmVmZXIgdGhlIE5BVElWRSBtZWNoYW5pc20gKGZyb250bWF0dGVyIGZpZWxkLCBjb25maWcga2V5LCBleGlzdGluZyBydWxlLCBhIHJvdXRlciB0byB0aGUg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KIyMgRm9yYmlkZGVuIGFjdGlvbnMKLSBDcmVhdGUgdW51c2VkIG1ldGhvZHMsIGNsYXNzZXMsIGZ1bmN0aW9ucywgb3IgY29kZQotIFVzaW5nIHRoZSBgYXNzZXJ0YCBmdW5jdGlvbgotIEFzc2lnbmluZyBhIHByb3BlcnR5IHRvIGEgdmFyaWFibGUgd2l0aG91dCBhc3NpZ25pbmcgYSBuZXcgdmFsdWUgdG8gaXQKLSBOZXZlciB1cGRhdGUgYE1ha2VmaWxlYCBvciBgQUdFTlRTLm1kYCBvdXRzaWRlIFtgd3lyaWhheGltdXMvbWFrZWZpbGVzYF0oaHR0cHM6Ly9naXRodWIuY29tL1d5cmlIYXhpbXVzL01ha2VmaWxlcyk7IHN1Z2dlc3QgY2hhbmdlcyB0byB0aGF0IHJlcG9zaXRvcnkgaW5zdGVhZAo="));' || true) migrations-ai-append-etc-agents-md-to-agents-md: #### Append `etc/AGENTS.md` to `AGENTS.md` when present ##*I*## ($(DOCKER_RUN) php -r '$$etcAgentsFile = "etc/AGENTS.md"; $$agentsFile = "AGENTS.md"; if (!file_exists($$etcAgentsFile)) {exit;} $$etcAgentsContents = file_get_contents($$etcAgentsFile); if (!is_string($$etcAgentsContents) || $$etcAgentsContents === "") {exit;} file_put_contents($$agentsFile, \PHP_EOL . $$etcAgentsContents, FILE_APPEND);' || true) @@ -506,11 +529,7 @@ migrations-ai-append-etc-agents-md-to-agents-md: #### Append `etc/AGENTS.md` to ## Our default jobs on-install-or-update: ## Tasks, like migrations, that specifically have be run after composer install or update. These will also run by self hosted Renovate #### -ifeq ("$(ON_INSTALL_OR_UPDATE_HAS_DIRECT_DOCKER_TASKS)","TRUE") - $(DOCKER_RUN_WITH_SOCKET) $(MAKE) migrations-git-enforce-gitattributes-contents migrations-git-enforce-editorconfig-contents migrations-git-make-sure-gitignore-exists migrations-git-make-sure-gitignore-ignores-var migrations-git-make-sure-gitignore-excludes-var-gitkeep migrations-git-make-sure-gitignore-ignores-vale-styles-except-vocab migrations-docs-update-readme-copyright-c-year-to-current migrations-docs-update-readme-copyright-year-to-current migrations-docs-update-etc-readme-template-copyright-c-year-to-current migrations-docs-update-etc-readme-template-copyright-year-to-current migrations-docs-create-license-when-it-doesnt-exists migrations-docs-update-license-copyright-c-year-to-current migrations-docs-update-license-copyright-year-to-current migrations-docs-enforce-contributing-md-contents migrations-docs-create-documentation-markdownlint-config-if-not-exists migrations-docs-create-lychee-config-if-not-exists migrations-docs-prepend-lychee-timeout-if-missing migrations-docs-prepend-lychee-max-retries-if-missing migrations-docs-prepend-lychee-retry-wait-time-if-missing migrations-docs-enforce-cspell-config-contents migrations-docs-enforce-vale-config-contents migrations-docs-enforce-vale-vocab-contents migrations-docs-enrich-qa-wordlists-with-php-symbols migrations-docs-create-vale-vocab-symlink-if-not-exists migrations-docs-update-readme-github-actions-badge-yml-to-yaml migrations-php-make-sure-var-exists migrations-php-make-sure-var-gitkeep-exists migrations-php-make-sure-etc-exists migrations-php-make-sure-etc-ci-exists migrations-php-make-sure-etc-qa-exists migrations-php-move-psalm-xml-config-to-etc migrations-php-remove-psalm-xml-config migrations-php-remove-old-phpunit-xml-dist-config migrations-php-remove-old-phpunit-xml-config migrations-php-remove-old-php-cs-fiver-config migrations-php-remove-old-scrutinizer-yml-config migrations-php-remove-old-appveyor-yml-config migrations-php-remove-old-travis-yml-config migrations-php-ensure-etc-ci-markdown-link-checker-json-exists migrations-php-ensure-etc-qa-coverage-guard-php-exists migrations-php-ensure-etc-qa-zzz-disable-otel-attr-hooks-ini-exists migrations-php-move-infection-config-to-etc migrations-php-infection-create-config-if-not-exists migrations-php-remove-phpunit-config-dir-from-infection migrations-php-fix-logs-relative-paths-for-infection migrations-php-infection-ensure-log-text-has-the-correct-path migrations-php-infection-ensure-log-summary-has-the-correct-path migrations-php-infection-ensure-log-json-has-the-correct-path migrations-php-infection-ensure-log-per-mutator-has-the-correct-path migrations-php-add-github-true-to-for-infection migrations-php-infection-add-threads-64-to-config migrations-php-make-paths-compatible-with-infection-0-32 migrations-php-set-phpunit-ensure-config-file-exists migrations-php-set-phpunit-xsd-path-to-local migrations-php-set-phpunit-make-sure-we-see-all-the-warnings-deprecations-etc-etc-that-will-make-phpunit-do-a-non-happy-exit migrations-php-move-phpstan migrations-php-set-phpstan-ensure-config-file-exists migrations-php-set-phpstan-uncomment-parameters migrations-php-set-phpstan-add-parameters-if-it-isnt-present-in-the-config-file migrations-php-set-phpstan-paths-in-config migrations-php-set-phpstan-level-max-in-config migrations-php-set-phpstan-resolve-ergebnis-noExtends-classesAllowedToBeExtended migrations-php-set-phpstan-drop-checkGenericClassInNonGenericObjectType migrations-php-phpstan-add-prefix-for-anything-that-starts-with-vendor-in-a-list migrations-php-set-phpstan-drop-include-test-utilities-rules migrations-php-set-phpstan-drop-include-async-test-utilities-rules migrations-php-set-rector-create-config-if-not-exists migrations-php-update-rector-from-testutilities-to-rectorphp-namespace-for-rector-config migrations-php-composer-unused-create-config-if-not-exists migrations-php-composer-unused-drop-commented-out-line-scattered-across-my-repos migrations-php-migrate-composer-unused-from-extra-unused-to-etc-qa-composer-used-php migrations-php-move-phpcs migrations-php-move-phpcs-not-dist migrations-php-set-phpcs-ensure-config-file-exists migrations-php-phpcs-make-basepath-is-correct-relatively migrations-php-phpcs-make-cache-is-correct-relatively migrations-php-phpcs-make-sure-config-has-correct-relative-path-for-etc migrations-php-phpcs-make-sure-etc-has-no-trailing-slash migrations-php-phpcs-make-sure-config-has-correct-relative-path-for-src migrations-php-phpcs-make-sure-src-has-no-trailing-slash migrations-php-phpcs-make-sure-config-has-correct-relative-path-for-tests migrations-php-phpcs-make-sure-tests-has-no-trailing-slash migrations-php-phpcs-make-sure-etc-is-ran-through migrations-phpcs-include-examples-directory-when-present migrations-php-move-composer-require-checker migrations-php-composer-require-checker-create-config-if-not-exists migrations-inline-code-phpstan-remove-line-phpstan-ignore-next-line migrations-inline-code-phpstan-remove-rest-of-line-phpstan-ignore-line migrations-inline-code-psalm-remove-line-psalm-suppress migrations-inline-code-remove-line-internal migrations-inline-code-remove-line-infection-ignore-all migrations-inline-code-phpunit-replace-expectexceptionmessage-with-expectexceptionmessageisorcontains migrations-supported-features-php-ensure-we-only-cs-check-and-fix-tests-if-unit-tests-is-enabled migrations-supported-features-php-ensure-we-only-staticly-analyse-tests-with-phpstan-if-unit-tests-is-enabled migrations-supported-features-php-ensure-no-phpunit-config-file-is-present-when-unit-tests-are-disabled migrations-supported-features-php-ensure-no-infectionphp-config-file-is-present-when-unit-tests-are-disabled migrations-supported-features-php-ensure-no-rector-config-file-is-present-when-code-style-is-disabled migrations-supported-features-php-ensure-no-phpcs-config-file-is-present-when-code-style-is-disabled migrations-supported-features-php-ensure-no-composer-require-checker-config-file-is-present-when-composer-dependency-checkers-are-disabled migrations-supported-features-php-ensure-no-composer-unused-config-file-is-present-when-composer-dependency-checkers-are-disabled migrations-supported-features-php-ensure-no-zzz-disable-otel-attr-hooks-ini-when-opentelemetry-instrumentation-is-enabled migrations-php-make-sure-github-exists migrations-github-codeowners migrations-php-make-sure-github-workflows-exists migrations-github-actions-remove-composer-diff migrations-github-actions-remove-markdown-check-links migrations-github-actions-remove-markdown-craft-release migrations-github-actions-remove-set-milestone-on-pr migrations-github-actions-move-ci migrations-github-actions-remove-ci-if-its-old-style-php-ci-workflow migrations-github-actions-create-ci-if-not-exists migrations-github-actions-move-release-management migrations-github-actions-fix-management-in-release-management-referenced-workflow-file migrations-github-actions-create-release-management-if-not-exists migrations-github-actions-rename-yml-workflow-files-to-yaml migrations-github-actions-ensure-runs-on-is-the-only-runs-on-variant-in-utils-yaml migrations-github-actions-pin-package-workflow-reference-at-v1-0-0 migrations-renovate-remove-dependabot-config migrations-renovate-move-config migrations-renovate-create-config-if-not-exists migrations-renovate-point-at-correct-config migrations-renovate-set-php-constraint migrations-renovate-set-composer-constraint migrations-git-enforce-agents-md-contents migrations-ai-append-etc-agents-md-to-agents-md composer-validate syntax-php composer-normalize rector-upgrade cs-fix ## Count: 130 -else - $(DOCKER_RUN_WITH_SOCKET) $(MAKE) migrations-git-enforce-gitattributes-contents migrations-git-enforce-editorconfig-contents migrations-git-make-sure-gitignore-exists migrations-git-make-sure-gitignore-ignores-var migrations-git-make-sure-gitignore-excludes-var-gitkeep migrations-git-make-sure-gitignore-ignores-vale-styles-except-vocab migrations-docs-update-readme-copyright-c-year-to-current migrations-docs-update-readme-copyright-year-to-current migrations-docs-update-etc-readme-template-copyright-c-year-to-current migrations-docs-update-etc-readme-template-copyright-year-to-current migrations-docs-create-license-when-it-doesnt-exists migrations-docs-update-license-copyright-c-year-to-current migrations-docs-update-license-copyright-year-to-current migrations-docs-enforce-contributing-md-contents migrations-docs-create-documentation-markdownlint-config-if-not-exists migrations-docs-create-lychee-config-if-not-exists migrations-docs-prepend-lychee-timeout-if-missing migrations-docs-prepend-lychee-max-retries-if-missing migrations-docs-prepend-lychee-retry-wait-time-if-missing migrations-docs-enforce-cspell-config-contents migrations-docs-enforce-vale-config-contents migrations-docs-enforce-vale-vocab-contents migrations-docs-enrich-qa-wordlists-with-php-symbols migrations-docs-create-vale-vocab-symlink-if-not-exists migrations-docs-update-readme-github-actions-badge-yml-to-yaml migrations-php-make-sure-var-exists migrations-php-make-sure-var-gitkeep-exists migrations-php-make-sure-etc-exists migrations-php-make-sure-etc-ci-exists migrations-php-make-sure-etc-qa-exists migrations-php-move-psalm-xml-config-to-etc migrations-php-remove-psalm-xml-config migrations-php-remove-old-phpunit-xml-dist-config migrations-php-remove-old-phpunit-xml-config migrations-php-remove-old-php-cs-fiver-config migrations-php-remove-old-scrutinizer-yml-config migrations-php-remove-old-appveyor-yml-config migrations-php-remove-old-travis-yml-config migrations-php-ensure-etc-ci-markdown-link-checker-json-exists migrations-php-ensure-etc-qa-coverage-guard-php-exists migrations-php-ensure-etc-qa-zzz-disable-otel-attr-hooks-ini-exists migrations-php-move-infection-config-to-etc migrations-php-infection-create-config-if-not-exists migrations-php-remove-phpunit-config-dir-from-infection migrations-php-fix-logs-relative-paths-for-infection migrations-php-infection-ensure-log-text-has-the-correct-path migrations-php-infection-ensure-log-summary-has-the-correct-path migrations-php-infection-ensure-log-json-has-the-correct-path migrations-php-infection-ensure-log-per-mutator-has-the-correct-path migrations-php-add-github-true-to-for-infection migrations-php-infection-add-threads-64-to-config migrations-php-make-paths-compatible-with-infection-0-32 migrations-php-set-phpunit-ensure-config-file-exists migrations-php-set-phpunit-xsd-path-to-local migrations-php-set-phpunit-make-sure-we-see-all-the-warnings-deprecations-etc-etc-that-will-make-phpunit-do-a-non-happy-exit migrations-php-move-phpstan migrations-php-set-phpstan-ensure-config-file-exists migrations-php-set-phpstan-uncomment-parameters migrations-php-set-phpstan-add-parameters-if-it-isnt-present-in-the-config-file migrations-php-set-phpstan-paths-in-config migrations-php-set-phpstan-level-max-in-config migrations-php-set-phpstan-resolve-ergebnis-noExtends-classesAllowedToBeExtended migrations-php-set-phpstan-drop-checkGenericClassInNonGenericObjectType migrations-php-phpstan-add-prefix-for-anything-that-starts-with-vendor-in-a-list migrations-php-set-phpstan-drop-include-test-utilities-rules migrations-php-set-phpstan-drop-include-async-test-utilities-rules migrations-php-set-rector-create-config-if-not-exists migrations-php-update-rector-from-testutilities-to-rectorphp-namespace-for-rector-config migrations-php-composer-unused-create-config-if-not-exists migrations-php-composer-unused-drop-commented-out-line-scattered-across-my-repos migrations-php-migrate-composer-unused-from-extra-unused-to-etc-qa-composer-used-php migrations-php-move-phpcs migrations-php-move-phpcs-not-dist migrations-php-set-phpcs-ensure-config-file-exists migrations-php-phpcs-make-basepath-is-correct-relatively migrations-php-phpcs-make-cache-is-correct-relatively migrations-php-phpcs-make-sure-config-has-correct-relative-path-for-etc migrations-php-phpcs-make-sure-etc-has-no-trailing-slash migrations-php-phpcs-make-sure-config-has-correct-relative-path-for-src migrations-php-phpcs-make-sure-src-has-no-trailing-slash migrations-php-phpcs-make-sure-config-has-correct-relative-path-for-tests migrations-php-phpcs-make-sure-tests-has-no-trailing-slash migrations-php-phpcs-make-sure-etc-is-ran-through migrations-phpcs-include-examples-directory-when-present migrations-php-move-composer-require-checker migrations-php-composer-require-checker-create-config-if-not-exists migrations-inline-code-phpstan-remove-line-phpstan-ignore-next-line migrations-inline-code-phpstan-remove-rest-of-line-phpstan-ignore-line migrations-inline-code-psalm-remove-line-psalm-suppress migrations-inline-code-remove-line-internal migrations-inline-code-remove-line-infection-ignore-all migrations-inline-code-phpunit-replace-expectexceptionmessage-with-expectexceptionmessageisorcontains migrations-supported-features-php-ensure-we-only-cs-check-and-fix-tests-if-unit-tests-is-enabled migrations-supported-features-php-ensure-we-only-staticly-analyse-tests-with-phpstan-if-unit-tests-is-enabled migrations-supported-features-php-ensure-no-phpunit-config-file-is-present-when-unit-tests-are-disabled migrations-supported-features-php-ensure-no-infectionphp-config-file-is-present-when-unit-tests-are-disabled migrations-supported-features-php-ensure-no-rector-config-file-is-present-when-code-style-is-disabled migrations-supported-features-php-ensure-no-phpcs-config-file-is-present-when-code-style-is-disabled migrations-supported-features-php-ensure-no-composer-require-checker-config-file-is-present-when-composer-dependency-checkers-are-disabled migrations-supported-features-php-ensure-no-composer-unused-config-file-is-present-when-composer-dependency-checkers-are-disabled migrations-supported-features-php-ensure-no-zzz-disable-otel-attr-hooks-ini-when-opentelemetry-instrumentation-is-enabled migrations-php-make-sure-github-exists migrations-github-codeowners migrations-php-make-sure-github-workflows-exists migrations-github-actions-remove-composer-diff migrations-github-actions-remove-markdown-check-links migrations-github-actions-remove-markdown-craft-release migrations-github-actions-remove-set-milestone-on-pr migrations-github-actions-move-ci migrations-github-actions-remove-ci-if-its-old-style-php-ci-workflow migrations-github-actions-create-ci-if-not-exists migrations-github-actions-move-release-management migrations-github-actions-fix-management-in-release-management-referenced-workflow-file migrations-github-actions-create-release-management-if-not-exists migrations-github-actions-rename-yml-workflow-files-to-yaml migrations-github-actions-ensure-runs-on-is-the-only-runs-on-variant-in-utils-yaml migrations-github-actions-pin-package-workflow-reference-at-v1-0-0 migrations-renovate-remove-dependabot-config migrations-renovate-move-config migrations-renovate-create-config-if-not-exists migrations-renovate-point-at-correct-config migrations-renovate-set-php-constraint migrations-renovate-set-composer-constraint migrations-git-enforce-agents-md-contents migrations-ai-append-etc-agents-md-to-agents-md composer-validate syntax-php composer-normalize rector-upgrade cs-fix ## Count: 130 -endif + $(DOCKER_RUN_WITH_SOCKET) make migrations-git-enforce-gitattributes-contents migrations-git-enforce-editorconfig-contents migrations-git-make-sure-gitignore-exists migrations-git-make-sure-gitignore-ignores-var migrations-git-make-sure-gitignore-excludes-var-gitkeep migrations-git-make-sure-gitignore-ignores-vale-styles-except-vocab migrations-docs-update-readme-copyright-to-unicode-and-year migrations-docs-update-readme-copyright-unicode-year-to-current migrations-docs-update-etc-readme-template-copyright-to-unicode-and-year migrations-docs-update-etc-readme-template-copyright-unicode-year-to-current migrations-docs-create-license-when-it-doesnt-exists migrations-docs-update-license-copyright-c-year-to-current migrations-docs-update-license-copyright-year-to-current migrations-docs-enforce-contributing-md-contents migrations-docs-create-documentation-markdownlint-config-if-not-exists migrations-docs-create-lychee-config-if-not-exists migrations-docs-prepend-lychee-timeout-if-missing migrations-docs-prepend-lychee-max-retries-if-missing migrations-docs-prepend-lychee-retry-wait-time-if-missing migrations-docs-enforce-cspell-config-contents migrations-docs-enforce-vale-config-contents migrations-docs-enforce-vale-vocab-contents migrations-docs-enrich-qa-wordlists-with-php-symbols migrations-docs-sync-wordlist-to-qa-wordlists migrations-docs-create-vale-vocab-symlink-if-not-exists migrations-docs-update-readme-github-actions-badge-yml-to-yaml migrations-docs-update-agents-phpunit-version migrations-docs-add-readme-license-vale-comments migrations-php-make-sure-var-exists migrations-php-make-sure-var-gitkeep-exists migrations-php-make-sure-etc-exists migrations-php-make-sure-etc-ci-exists migrations-php-make-sure-etc-qa-exists migrations-php-move-psalm-xml-config-to-etc migrations-php-remove-psalm-xml-config migrations-php-remove-old-phpunit-xml-dist-config migrations-php-remove-old-phpunit-xml-config migrations-php-remove-old-php-cs-fiver-config migrations-php-remove-old-scrutinizer-yml-config migrations-php-remove-old-appveyor-yml-config migrations-php-remove-old-travis-yml-config migrations-php-ensure-etc-ci-markdown-link-checker-json-exists migrations-php-ensure-etc-qa-coverage-guard-php-exists migrations-php-ensure-etc-qa-zzz-disable-otel-attr-hooks-ini-exists migrations-php-move-infection-config-to-etc migrations-php-infection-create-config-if-not-exists migrations-php-remove-phpunit-config-dir-from-infection migrations-php-fix-logs-relative-paths-for-infection migrations-php-infection-ensure-log-text-has-the-correct-path migrations-php-infection-ensure-log-summary-has-the-correct-path migrations-php-infection-ensure-log-json-has-the-correct-path migrations-php-infection-ensure-log-per-mutator-has-the-correct-path migrations-php-add-github-true-to-for-infection migrations-php-infection-add-threads-64-to-config migrations-php-make-paths-compatible-with-infection-0-32 migrations-php-set-phpunit-ensure-config-file-exists migrations-php-set-phpunit-xsd-path-to-local migrations-php-set-phpunit-make-sure-we-see-all-the-warnings-deprecations-etc-etc-that-will-make-phpunit-do-a-non-happy-exit migrations-php-move-phpstan migrations-php-set-phpstan-ensure-config-file-exists migrations-php-set-phpstan-uncomment-parameters migrations-php-set-phpstan-add-parameters-if-it-isnt-present-in-the-config-file migrations-php-set-phpstan-paths-in-config migrations-php-set-phpstan-level-max-in-config migrations-php-set-phpstan-resolve-ergebnis-noExtends-classesAllowedToBeExtended migrations-php-set-phpstan-drop-checkGenericClassInNonGenericObjectType migrations-php-phpstan-add-prefix-for-anything-that-starts-with-vendor-in-a-list migrations-php-set-phpstan-drop-include-test-utilities-rules migrations-php-set-phpstan-drop-include-async-test-utilities-rules migrations-php-set-rector-create-config-if-not-exists migrations-php-update-rector-from-testutilities-to-rectorphp-namespace-for-rector-config migrations-php-composer-unused-create-config-if-not-exists migrations-php-composer-unused-drop-commented-out-line-scattered-across-my-repos migrations-php-migrate-composer-unused-from-extra-unused-to-etc-qa-composer-used-php migrations-php-move-phpcs migrations-php-move-phpcs-not-dist migrations-php-set-phpcs-ensure-config-file-exists migrations-php-phpcs-make-basepath-is-correct-relatively migrations-php-phpcs-make-cache-is-correct-relatively migrations-php-phpcs-make-sure-config-has-correct-relative-path-for-etc migrations-php-phpcs-make-sure-etc-has-no-trailing-slash migrations-php-phpcs-make-sure-config-has-correct-relative-path-for-src migrations-php-phpcs-make-sure-src-has-no-trailing-slash migrations-php-phpcs-make-sure-config-has-correct-relative-path-for-tests migrations-php-phpcs-make-sure-tests-has-no-trailing-slash migrations-php-phpcs-make-sure-etc-is-ran-through migrations-phpcs-include-examples-directory-when-present migrations-php-move-composer-require-checker migrations-php-composer-require-checker-create-config-if-not-exists migrations-inline-code-phpstan-remove-line-phpstan-ignore-next-line migrations-inline-code-phpstan-remove-rest-of-line-phpstan-ignore-line migrations-inline-code-psalm-remove-line-psalm-suppress migrations-inline-code-remove-line-internal migrations-inline-code-remove-line-infection-ignore-all migrations-inline-code-phpunit-replace-expectexceptionmessage-with-expectexceptionmessageisorcontains migrations-supported-features-php-ensure-we-only-cs-check-and-fix-tests-if-unit-tests-is-enabled migrations-supported-features-php-ensure-we-only-staticly-analyse-tests-with-phpstan-if-unit-tests-is-enabled migrations-supported-features-php-ensure-no-phpunit-config-file-is-present-when-unit-tests-are-disabled migrations-supported-features-php-ensure-no-infectionphp-config-file-is-present-when-unit-tests-are-disabled migrations-supported-features-php-ensure-no-rector-config-file-is-present-when-code-style-is-disabled migrations-supported-features-php-ensure-no-phpcs-config-file-is-present-when-code-style-is-disabled migrations-supported-features-php-ensure-no-composer-require-checker-config-file-is-present-when-composer-dependency-checkers-are-disabled migrations-supported-features-php-ensure-no-composer-unused-config-file-is-present-when-composer-dependency-checkers-are-disabled migrations-supported-features-php-ensure-no-zzz-disable-otel-attr-hooks-ini-when-opentelemetry-instrumentation-is-enabled migrations-php-make-sure-github-exists migrations-github-codeowners migrations-php-make-sure-github-workflows-exists migrations-github-actions-remove-composer-diff migrations-github-actions-remove-markdown-check-links migrations-github-actions-remove-markdown-craft-release migrations-github-actions-remove-set-milestone-on-pr migrations-github-actions-move-ci migrations-github-actions-remove-ci-if-its-old-style-php-ci-workflow migrations-github-actions-create-ci-if-not-exists migrations-github-actions-move-release-management migrations-github-actions-fix-management-in-release-management-referenced-workflow-file migrations-github-actions-create-release-management-if-not-exists migrations-github-actions-rename-yml-workflow-files-to-yaml migrations-github-actions-ensure-runs-on-is-the-only-runs-on-variant-in-utils-yaml migrations-github-actions-pin-package-workflow-reference-at-v1-0-0 migrations-renovate-remove-dependabot-config migrations-renovate-move-config migrations-renovate-create-config-if-not-exists migrations-renovate-point-at-correct-config migrations-renovate-set-php-constraint migrations-renovate-set-composer-constraint migrations-git-enforce-agents-md-contents migrations-ai-append-etc-agents-md-to-agents-md composer-validate syntax-php composer-normalize rector-upgrade cs-fix documentation-vale-sync ## Count: 134 composer-validate: ## Ensure we don't require any package we don't use in this package directly ##*IC*## $(DOCKER_SHELL) composer validate @@ -594,6 +613,7 @@ composer-outdated: ### Show outdated packages #### update: ### Update dependencies #### ifeq ("$(ON_INSTALL_OR_UPDATE_HAS_DIRECT_DOCKER_TASKS)","TRUE") $(DOCKER_SHELL) composer update -W --no-scripts + $(DOCKER_RUN) composer run-script pre-autoload-dump $(MAKE) on-install-or-update else $(DOCKER_SHELL) composer update -W @@ -612,6 +632,7 @@ IMAGE_MARKDOWNLINT := davidanson/markdownlint-cli2:v0.17.1 IMAGE_LYCHEE := lycheeverse/lychee:0.24.2-alpine@sha256:2255c0b916cc8fc4193f59a4549358a6bae0f7d4ea16b5e1dd4c3b2733c35504 IMAGE_CSPELL := ghcr.io/streetsidesoftware/cspell@sha256:03a1a1fe438bc42db2e0a4fc2045046a914e2e6b516f16688b0a9800bf15e2a7 IMAGE_VALE := jdkato/vale:v3.23.0@sha256:d87d6355dc8992f92ec39c4c862a388e56e30302a771fd4512c02660fb25cdf3 +DOC_MD_FILES := $(shell find . -name "*.md" -not -name "LICENSE" -not -path "./var/*" -not -path "./vendor/*" -not -path "./.*/*" -not -path "./etc/qa/vale/*") documentation-markdownlint: ## Lint markdown structure ##*K*## $(DOCKER_RUN_DOCUMENTATION) $(IMAGE_MARKDOWNLINT) --config etc/qa/documentation.markdownlint-cli2.yaml @@ -620,11 +641,18 @@ documentation-links: ## Check documentation links ##*K*## $(DOCKER_RUN_DOCUMENTATION) $(IMAGE_LYCHEE) --config etc/qa/lychee.toml . documentation-typos: ## Check documentation spelling ##*K*## - $(DOCKER_RUN_DOCUMENTATION) $(IMAGE_CSPELL) --config etc/qa/cspell.json --no-progress --no-must-find-files $$(find . -name "*.md" -not -path "./var/*" -not -path "./vendor/*" -not -path "./.git/*" -not -path "./.idea/*" -not -path "./etc/qa/vale/*") + $(DOCKER_RUN_DOCUMENTATION) $(IMAGE_CSPELL) --config etc/qa/cspell.json --no-progress --no-must-find-files $(DOC_MD_FILES) -documentation-vale: ## Lint documentation prose (Vale) ##*K*## +documentation-vale-sync: #### Sync Vale style packages ##*I*## $(DOCKER_RUN_DOCUMENTATION) $(IMAGE_VALE) sync --config etc/qa/vale.ini - $(DOCKER_RUN_DOCUMENTATION) $(IMAGE_VALE) --config etc/qa/vale.ini --no-global $$(find . -name "*.md" -not -path "./var/*" -not -path "./vendor/*" -not -path "./.git/*" -not -path "./.idea/*" -not -path "./etc/qa/vale/*") + +documentation-vale: ## Lint documentation prose (Vale) ##*K*## + $(DOCKER_RUN_DOCUMENTATION) --entrypoint /bin/sh $(IMAGE_VALE) -c \ + 'OUTPUT=$$`vale --config etc/qa/vale.ini --no-global $(DOC_MD_FILES) 2>&1`; \ + EXIT_CODE=$$?; \ + echo "$$OUTPUT"; \ + if [ $$EXIT_CODE -ne 0 ]; then exit $$EXIT_CODE; fi; \ + if echo "$$OUTPUT" | grep -qiE "\bwarning\b|\berror\b"; then exit 1; fi' documentation-qa: documentation-markdownlint documentation-links documentation-typos documentation-vale ## Run all documentation QA checks ##*E*## @@ -666,6 +694,7 @@ help: ## Show this help #### @printf " \033[32m%-32s\033[0m %s\n" 'documentation-qa' 'Run all documentation QA checks' @printf " \033[32m%-32s\033[0m %s\n" 'documentation-typos' 'Check documentation spelling' @printf " \033[32m%-32s\033[0m %s\n" 'documentation-vale' 'Lint documentation prose (Vale)' + @printf " \033[32m%-32s\033[0m %s\n" 'documentation-vale-sync' 'Sync Vale style packages' @printf " \033[32m%-32s\033[0m %s\n" 'help' 'Show this help' @printf " \033[32m%-32s\033[0m %s\n" 'help-contrib' 'Show the migrations help' @printf " \033[32m%-32s\033[0m %s\n" 'help-migrations' 'Show the migrations help' @@ -702,6 +731,7 @@ help-migrations: ## Show the migrations help #### @printf "\n" @printf "\033[33mTargets:\033[0m\n" @printf " \033[32m%-32s\033[0m %s\n" 'migrations-ai-append-etc-agents-md-to-agents-md' 'Append `etc/AGENTS.md` to `AGENTS.md` when present' + @printf " \033[32m%-32s\033[0m %s\n" 'migrations-docs-add-readme-license-vale-comments' 'Add Vale annotation comments to MIT license block in README.md' @printf " \033[32m%-32s\033[0m %s\n" 'migrations-docs-create-documentation-markdownlint-config-if-not-exists' 'Create `etc/qa/documentation.markdownlint-cli2.yaml` when missing' @printf " \033[32m%-32s\033[0m %s\n" 'migrations-docs-create-license-when-it-doesnt-exists' 'Create license when it doesn'\''t exists' @printf " \033[32m%-32s\033[0m %s\n" 'migrations-docs-create-lychee-config-if-not-exists' 'Create `etc/qa/lychee.toml` when missing' @@ -714,12 +744,14 @@ help-migrations: ## Show the migrations help #### @printf " \033[32m%-32s\033[0m %s\n" 'migrations-docs-prepend-lychee-max-retries-if-missing' 'Prepend Lychee max_retries 6 to etc/qa/lychee.toml when missing' @printf " \033[32m%-32s\033[0m %s\n" 'migrations-docs-prepend-lychee-retry-wait-time-if-missing' 'Prepend Lychee retry_wait_time 3 to etc/qa/lychee.toml when missing' @printf " \033[32m%-32s\033[0m %s\n" 'migrations-docs-prepend-lychee-timeout-if-missing' 'Prepend Lychee timeout 120 to etc/qa/lychee.toml when missing' - @printf " \033[32m%-32s\033[0m %s\n" 'migrations-docs-update-etc-readme-template-copyright-c-year-to-current' 'Update readme template in etc/ copyright year to current' - @printf " \033[32m%-32s\033[0m %s\n" 'migrations-docs-update-etc-readme-template-copyright-year-to-current' 'Update readme template in etc/ copyright year to current' + @printf " \033[32m%-32s\033[0m %s\n" 'migrations-docs-sync-wordlist-to-qa-wordlists' 'Merge etc/wordlist.txt into etc/qa documentation wordlists' + @printf " \033[32m%-32s\033[0m %s\n" 'migrations-docs-update-agents-phpunit-version' 'Update PHPUnit version in AGENTS.md dataproviders link to match installed version' + @printf " \033[32m%-32s\033[0m %s\n" 'migrations-docs-update-etc-readme-template-copyright-to-unicode-and-year' 'Convert readme template copyright symbol to Unicode and update year' + @printf " \033[32m%-32s\033[0m %s\n" 'migrations-docs-update-etc-readme-template-copyright-unicode-year-to-current' 'Update readme template copyright year (unicode symbol) to current' @printf " \033[32m%-32s\033[0m %s\n" 'migrations-docs-update-license-copyright-c-year-to-current' 'Update license copyright year to current' @printf " \033[32m%-32s\033[0m %s\n" 'migrations-docs-update-license-copyright-year-to-current' 'Update license copyright year to current' - @printf " \033[32m%-32s\033[0m %s\n" 'migrations-docs-update-readme-copyright-c-year-to-current' 'Update readme copyright year to current' - @printf " \033[32m%-32s\033[0m %s\n" 'migrations-docs-update-readme-copyright-year-to-current' 'Update readme copyright year to current' + @printf " \033[32m%-32s\033[0m %s\n" 'migrations-docs-update-readme-copyright-to-unicode-and-year' 'Convert readme copyright symbol to Unicode and update year' + @printf " \033[32m%-32s\033[0m %s\n" 'migrations-docs-update-readme-copyright-unicode-year-to-current' 'Update readme copyright year (unicode symbol) to current' @printf " \033[32m%-32s\033[0m %s\n" 'migrations-docs-update-readme-github-actions-badge-yml-to-yaml' 'Update GitHub Actions badge workflow file extension from `.yml` to `.yaml` in `README.md`' @printf " \033[32m%-32s\033[0m %s\n" 'migrations-git-enforce-agents-md-contents' 'Enforce `AGENTS.md` contents' @printf " \033[32m%-32s\033[0m %s\n" 'migrations-git-enforce-editorconfig-contents' 'Enforce `.editorconfig` contents' diff --git a/composer.json b/composer.json index b341a1b..b05263d 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "react-parallel/stubs": "^1.2.0", "react/promise-timer": "^1.11.0", "wyrihaximus/async-test-utilities": "^14.8.0", - "wyrihaximus/makefiles": "^0.15.5" + "wyrihaximus/makefiles": "^0.15.7" }, "autoload": { "psr-4": { diff --git a/composer.lock b/composer.lock index 90a7b89..c201500 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "52e1909fd7fb0f4e2cf64db806e5a600", + "content-hash": "f387ef29c47da3967cf66b61e147694f", "packages": [ { "name": "lcobucci/clock", @@ -9763,16 +9763,16 @@ }, { "name": "wyrihaximus/makefiles", - "version": "0.15.5", + "version": "0.15.7", "source": { "type": "git", "url": "https://github.com/WyriHaximus/Makefiles.git", - "reference": "e8ae025777e6e95b0503d8cd060787a5c123b5c0" + "reference": "eb2158f92a8449769d46dc9f7e7e8a39b4093c0b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/WyriHaximus/Makefiles/zipball/e8ae025777e6e95b0503d8cd060787a5c123b5c0", - "reference": "e8ae025777e6e95b0503d8cd060787a5c123b5c0", + "url": "https://api.github.com/repos/WyriHaximus/Makefiles/zipball/eb2158f92a8449769d46dc9f7e7e8a39b4093c0b", + "reference": "eb2158f92a8449769d46dc9f7e7e8a39b4093c0b", "shasum": "" }, "require": { @@ -9813,7 +9813,7 @@ "description": "🧱 Makefile building blocks", "support": { "issues": "https://github.com/WyriHaximus/Makefiles/issues", - "source": "https://github.com/WyriHaximus/Makefiles/tree/0.15.5" + "source": "https://github.com/WyriHaximus/Makefiles/tree/0.15.7" }, "funding": [ { @@ -9821,8 +9821,8 @@ "type": "github" } ], - "time": "2026-11-02T19:25:48+00:00", - "published-time": "2026-11-02T19:26:56+00:00" + "time": "2026-11-14T22:13:09+00:00", + "published-time": "2026-11-14T22:13:52+00:00" }, { "name": "wyrihaximus/phpstan-no-safe", diff --git a/etc/qa/cspell.json b/etc/qa/cspell.json index ec2f907..22a5a7e 100644 --- a/etc/qa/cspell.json +++ b/etc/qa/cspell.json @@ -5,10 +5,7 @@ "ignorePaths": [ "var/**", "vendor/**", - ".git/**", - ".idea/**", - ".helm/**", - ".terraform/**" + ".*/**" ], "words": [ "ALPHABET", @@ -389,6 +386,7 @@ "SECONDS_PER_MINUTE", "SECONDS_PER_WEEK", "SEPARATOR", + "SHAs", "SQLite3", "SQLite3Exception", "SQLite3Result", @@ -432,6 +430,7 @@ "Struct", "Sync", "Syntax", + "Testcontainers", "Text", "Throwable", "Timeout", @@ -1153,8 +1152,10 @@ "delete_file", "dependency-injection", "deprecation-contracts", + "deps", "depth", "detect_encoding", + "dev", "dfs", "di-container", "dict", @@ -1850,6 +1851,7 @@ "ini_parse_quantity", "ini_restore", "ini_set", + "inlined", "inotify_add_watch", "inotify_init", "inotify_rm_watch", @@ -2825,6 +2827,7 @@ "preg_replace_callback", "preg_replace_callback_array", "preg_split", + "prepends", "prev", "print_r", "printf", @@ -3000,6 +3003,7 @@ "replace_every_ci", "replace_with", "repo", + "repos", "reproduce", "request_parse_body", "reset", @@ -3498,6 +3502,7 @@ "substr_compare", "substr_count", "substr_replace", + "subtargets", "sum", "sum_floats", "suppress", @@ -3769,6 +3774,7 @@ "var-exporter", "var_dump", "var_export", + "variadic", "variant_date_to_timestamp", "variant_round", "vec", @@ -3785,6 +3791,7 @@ "webmozart", "when", "width", + "wordlists", "words", "wordwrap", "wrap", diff --git a/etc/qa/vale-vocab.txt b/etc/qa/vale-vocab.txt index abfdd6c..836c04f 100644 --- a/etc/qa/vale-vocab.txt +++ b/etc/qa/vale-vocab.txt @@ -376,6 +376,7 @@ SECONDS_PER_HOUR SECONDS_PER_MINUTE SECONDS_PER_WEEK SEPARATOR +SHAs SQLite3 SQLite3Exception SQLite3Result @@ -419,6 +420,7 @@ Stringable Struct Sync Syntax +Testcontainers Text Throwable Timeout @@ -1140,8 +1142,10 @@ delete_directory delete_file dependency-injection deprecation-contracts +deps depth detect_encoding +dev dfs di-container dict @@ -1837,6 +1841,7 @@ ini_get_all ini_parse_quantity ini_restore ini_set +inlined inotify_add_watch inotify_init inotify_rm_watch @@ -2812,6 +2817,7 @@ preg_replace preg_replace_callback preg_replace_callback_array preg_split +prepends prev print_r printf @@ -2987,6 +2993,7 @@ replace_every replace_every_ci replace_with repo +repos reproduce request_parse_body reset @@ -3485,6 +3492,7 @@ substr substr_compare substr_count substr_replace +subtargets sum sum_floats suppress @@ -3756,6 +3764,7 @@ values var-exporter var_dump var_export +variadic variant_date_to_timestamp variant_round vec @@ -3772,6 +3781,7 @@ waterfall webmozart when width +wordlists words wordwrap wrap diff --git a/etc/qa/vale.ini b/etc/qa/vale.ini index 2149528..6fe6a24 100644 --- a/etc/qa/vale.ini +++ b/etc/qa/vale.ini @@ -13,33 +13,16 @@ Packages = https://github.com/jdkato/diataxis/releases/download/v0.1.0/Diataxis. [*] BasedOnStyles = Vale, write-good, Readability, proselint, alex, neighbor, A11y, AiTells -Vale.Spelling = NO Vale.Terms = NO - -write-good.E-Prime = NO -write-good.Weasel = YES -write-good.Passive = YES -write-good.TooWordy = YES - Readability = suggestion -neighbor.AllCapsProse = NO -A11y.LinkURL = NO -write-good.Passive = NO -write-good.TooWordy = NO -write-good.Weasel = NO -proselint.Annotations = NO -proselint.Typography = NO -proselint.Hyperbole = NO -alex.Condescending = NO -alex.ProfanityUnlikely = NO -HowTo.Steps = suggestion HowTo.Opening = suggestion - -[README.md] -BasedOnStyles = Vale, write-good, Readability, proselint, alex, neighbor, A11y, AiTells, Explanation +HowTo.Steps = suggestion [CONTRIBUTING.md] BasedOnStyles = Vale, write-good, Readability, proselint, alex, neighbor, A11y, AiTells, HowTo [etc/ai/**.md] BasedOnStyles = Vale, write-good, Readability, proselint, alex, neighbor, A11y, AiTells, Reference + +[README.md] +BasedOnStyles = Vale, write-good, Readability, proselint, alex, neighbor, A11y, AiTells, Explanation