这是indexloc提供的服务,不要输入任何密码
Skip to content

Add script to validate code examples in sniff documentation #261

Add script to validate code examples in sniff documentation

Add script to validate code examples in sniff documentation #261

Triggered via pull request June 12, 2025 18:46
Status Failure
Total duration 58s
Artifacts

test.yml

on: pull_request
Matrix: test-doc-code-examples
Matrix: test-php
Matrix: test-phpcs
Fit to window
Zoom out
Zoom in

Annotations

153 errors
Test: PHP 7.2 - PHPCS dev-master
Process completed with exit code 1.
Test: PHP 7.2 - PHPCS dev-master
"./composer.json" does not contain valid JSON Parse error on line 27: ... ^0.7 || ^1.0", }, "require-dev" ---------------------^ Expected: 'STRING' - It appears you have an extra trailing comma
Test: PHP 5.5 - PHPCS dev-master
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 5.4 - PHPCS dev-master
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 7.0 - PHPCS dev-master
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 7.2 - PHPCS 4.x-dev
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 5.6 - PHPCS dev-master
The operation was canceled.
Test: PHP 7.1 - PHPCS dev-master
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 5.6 - PHPCS dev-master
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 7.3 - PHPCS 4.x-dev
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 7.3 - PHPCS dev-master
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 8.2 - PHPCS dev-master
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 8.2 - PHPCS 4.x-dev
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 8.0 - PHPCS dev-master
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 8.1 - PHPCS dev-master
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 7.4 - PHPCS dev-master
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 7.4 - PHPCS 4.x-dev
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 8.1 - PHPCS 4.x-dev
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 8.3 - PHPCS dev-master
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 8.0 - PHPCS 4.x-dev
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 7.2 - PHPCS 3.1.0
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 8.5 - PHPCS 4.x-dev
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 5.5 - PHPCS 3.1.0
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 8.3 - PHPCS 4.x-dev
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 8.4 - PHPCS dev-master
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 8.4 - PHPCS 4.x-dev
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 5.4 - PHPCS 3.1.0
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 8.3 - PHPCS 3.8.0
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 8.5 - PHPCS dev-master
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 7.4 - PHPCS 3.5.0
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 5.6 - PHPCS 3.1.0
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 7.3 - PHPCS 3.3.1
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 8.4 - PHPCS 3.8.0
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 8.2 - PHPCS 3.6.1
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 8.0 - PHPCS 3.5.7
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 7.0 - PHPCS 3.1.0
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 7.1 - PHPCS 3.1.0
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test: PHP 8.1 - PHPCS 3.6.1
The strategy configuration was canceled because "test-phpcs._7_2_dev-master" failed
Test + Lint: PHP 8.1 (Linux)
Process completed with exit code 1.
Invalid composer.json
The composer.json file at './composer.json' does not validate; run 'composer validate' to check for errors
Test + Lint: PHP 5.6 (Win)
The strategy configuration was canceled because "test-php.ubuntu-latest_8_1" failed
Test + Lint: PHP 5.4 (Win)
The strategy configuration was canceled because "test-php.ubuntu-latest_8_1" failed
Test + Lint: PHP 7.2 (Win)
The strategy configuration was canceled because "test-php.ubuntu-latest_8_1" failed
Test + Lint: PHP 8.0 (Win)
The strategy configuration was canceled because "test-php.ubuntu-latest_8_1" failed
Test + Lint: PHP 7.1 (Linux)
Process completed with exit code 1.
Invalid composer.json
The composer.json file at './composer.json' does not validate; run 'composer validate' to check for errors
Test + Lint: PHP 7.1 (Linux)
The strategy configuration was canceled because "test-php.ubuntu-latest_8_1" failed
Test + Lint: PHP 8.4 (Win)
The strategy configuration was canceled because "test-php.ubuntu-latest_8_1" failed
Test + Lint: PHP 8.2 (Win)
The strategy configuration was canceled because "test-php.ubuntu-latest_8_1" failed
Test + Lint: PHP 7.4 (Win)
The strategy configuration was canceled because "test-php.ubuntu-latest_8_1" failed
Test + Lint: PHP 8.3 (Win)
The strategy configuration was canceled because "test-php.ubuntu-latest_8_1" failed
Test + Lint: PHP 8.5 (Win)
The strategy configuration was canceled because "test-php.ubuntu-latest_8_1" failed
Test + Lint: PHP 8.1 (Win)
The strategy configuration was canceled because "test-php.ubuntu-latest_8_1" failed
Test + Lint: PHP 7.4 (Linux)
Process completed with exit code 1.
Invalid composer.json
The composer.json file at './composer.json' does not validate; run 'composer validate' to check for errors
Test + Lint: PHP 8.3 (Linux)
The operation was canceled.
Test + Lint: PHP 8.3 (Linux)
The strategy configuration was canceled because "test-php.ubuntu-latest_8_1" failed
Test + Lint: PHP 7.4 (Linux)
The strategy configuration was canceled because "test-php.ubuntu-latest_8_1" failed
Test + Lint: PHP 7.2 (Linux)
The operation was canceled.
Test + Lint: PHP 7.2 (Linux)
The strategy configuration was canceled because "test-php.ubuntu-latest_8_1" failed
Test + Lint: PHP 5.4 (Linux)
The operation was canceled.
Test + Lint: PHP 5.4 (Linux)
The strategy configuration was canceled because "test-php.ubuntu-latest_8_1" failed
Test + Lint: PHP 8.2 (Linux)
The operation was canceled.
Test + Lint: PHP 8.2 (Linux)
The strategy configuration was canceled because "test-php.ubuntu-latest_8_1" failed
Test + Lint: PHP 5.6 (Linux)
The operation was canceled.
Test + Lint: PHP 5.6 (Linux)
The strategy configuration was canceled because "test-php.ubuntu-latest_8_1" failed
Test + Lint: PHP 7.0 (Linux)
Process completed with exit code 1.
Invalid composer.json
The composer.json file at './composer.json' does not validate; run 'composer validate' to check for errors
Test + Lint: PHP 7.0 (Linux)
The strategy configuration was canceled because "test-php.ubuntu-latest_8_1" failed
Test + Lint: PHP 8.4 (Linux)
Process completed with exit code 1.
Invalid composer.json
The composer.json file at './composer.json' does not validate; run 'composer validate' to check for errors
Test + Lint: PHP 8.4 (Linux)
The strategy configuration was canceled because "test-php.ubuntu-latest_8_1" failed
Test + Lint: PHP 8.0 (Linux)
The operation was canceled.
Test + Lint: PHP 8.0 (Linux)
The strategy configuration was canceled because "test-php.ubuntu-latest_8_1" failed
Test + Lint: PHP 7.3 (Linux)
The operation was canceled.
Test + Lint: PHP 7.3 (Linux)
The strategy configuration was canceled because "test-php.ubuntu-latest_8_1" failed
Test + Lint: PHP 8.5 (Linux)
The operation was canceled.
Test + Lint: PHP 8.5 (Linux)
The strategy configuration was canceled because "test-php.ubuntu-latest_8_1" failed
Test + Lint: PHP 5.5 (Linux)
The operation was canceled.
Test + Lint: PHP 5.5 (Linux)
The strategy configuration was canceled because "test-php.ubuntu-latest_8_1" failed
Test + Lint: PHP 7.0 (Win)
The operation was canceled.
Test + Lint: PHP 7.0 (Win)
The strategy configuration was canceled because "test-php.ubuntu-latest_8_1" failed
Test + Lint: PHP 7.3 (Win)
The operation was canceled.
Test + Lint: PHP 7.3 (Win)
The strategy configuration was canceled because "test-php.ubuntu-latest_8_1" failed
Test + Lint: PHP 5.5 (Win)
The operation was canceled.
Test + Lint: PHP 5.5 (Win)
The strategy configuration was canceled because "test-php.ubuntu-latest_8_1" failed
Test + Lint: PHP 7.1 (Win)
The operation was canceled.
Test + Lint: PHP 7.1 (Win)
The strategy configuration was canceled because "test-php.ubuntu-latest_8_1" failed
Test: PHP 8.5 - PHPCS dev-master (Linux)
Process completed with exit code 1.
Test: PHP 8.5 - PHPCS dev-master (Linux)
"./composer.json" does not contain valid JSON Parse error on line 27: ... ^0.7 || ^1.0", }, "require-dev" ---------------------^ Expected: 'STRING' - It appears you have an extra trailing comma
Test: PHP 7.3 - PHPCS dev-master (Linux)
Process completed with exit code 1.
Test: PHP 7.3 - PHPCS dev-master (Linux)
"./composer.json" does not contain valid JSON Parse error on line 27: ... ^0.7 || ^1.0", }, "require-dev" ---------------------^ Expected: 'STRING' - It appears you have an extra trailing comma
Test: PHP 8.1 - PHPCS dev-master (Linux)
Process completed with exit code 1.
Test: PHP 8.1 - PHPCS dev-master (Linux)
"./composer.json" does not contain valid JSON Parse error on line 27: ... ^0.7 || ^1.0", }, "require-dev" ---------------------^ Expected: 'STRING' - It appears you have an extra trailing comma
Test: PHP 7.0 - PHPCS dev-master (Linux)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 7.0 - PHPCS 3.1.0 (Linux)
Process completed with exit code 1.
Test: PHP 7.0 - PHPCS 3.1.0 (Linux)
"./composer.json" does not contain valid JSON Parse error on line 27: ... ^0.7 || ^1.0", }, "require-dev" ---------------------^ Expected: 'STRING' - It appears you have an extra trailing comma
Test: PHP 7.0 - PHPCS 3.1.0 (Linux)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 7.1 - PHPCS 3.1.0 (Linux)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 7.2 - PHPCS 3.1.0 (Linux)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 7.2 - PHPCS dev-master (Linux)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 7.1 - PHPCS 3.1.0 (Win)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 7.0 - PHPCS dev-master (Win)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 7.1 - PHPCS dev-master (Win)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 7.1 - PHPCS dev-master (Linux)
Process completed with exit code 1.
Test: PHP 7.1 - PHPCS dev-master (Linux)
"./composer.json" does not contain valid JSON Parse error on line 27: ... ^0.7 || ^1.0", }, "require-dev" ---------------------^ Expected: 'STRING' - It appears you have an extra trailing comma
Test: PHP 7.1 - PHPCS dev-master (Linux)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 7.2 - PHPCS dev-master (Win)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 7.3 - PHPCS 3.3.1 (Win)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 7.4 - PHPCS dev-master (Linux)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 7.4 - PHPCS 3.5.0 (Linux)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 8.1 - PHPCS dev-master (Win)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 7.4 - PHPCS dev-master (Win)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 7.4 - PHPCS 3.5.0 (Win)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 8.2 - PHPCS dev-master (Linux)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 8.0 - PHPCS 3.5.7 (Win)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 8.0 - PHPCS 3.5.7 (Linux)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 8.2 - PHPCS 3.6.1 (Linux)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 8.2 - PHPCS 3.6.1 (Win)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 7.0 - PHPCS 3.1.0 (Win)
The operation was canceled.
Test: PHP 7.0 - PHPCS 3.1.0 (Win)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 8.3 - PHPCS 3.8.0 (Linux)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 7.2 - PHPCS 3.1.0 (Win)
The operation was canceled.
Test: PHP 7.2 - PHPCS 3.1.0 (Win)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 8.4 - PHPCS 3.8.0 (Linux)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 8.0 - PHPCS dev-master (Linux)
The operation was canceled.
Test: PHP 8.0 - PHPCS dev-master (Linux)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 7.3 - PHPCS dev-master (Win)
The operation was canceled.
Test: PHP 7.3 - PHPCS dev-master (Win)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 8.3 - PHPCS dev-master (Linux)
The operation was canceled.
Test: PHP 7.3 - PHPCS 3.3.1 (Linux)
The operation was canceled.
Test: PHP 8.3 - PHPCS dev-master (Linux)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 7.3 - PHPCS 3.3.1 (Linux)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 8.0 - PHPCS dev-master (Win)
The operation was canceled.
Test: PHP 8.0 - PHPCS dev-master (Win)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 8.1 - PHPCS 3.6.1 (Linux)
The operation was canceled.
Test: PHP 8.1 - PHPCS 3.6.1 (Linux)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 7.4 - PHPCS 4.0.x-dev (Linux)
The operation was canceled.
Test: PHP 7.4 - PHPCS 4.0.x-dev (Linux)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 8.4 - PHPCS dev-master (Linux)
The operation was canceled.
Test: PHP 8.4 - PHPCS dev-master (Linux)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 8.1 - PHPCS 3.6.1 (Win)
The operation was canceled.
Test: PHP 8.1 - PHPCS 3.6.1 (Win)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 8.2 - PHPCS dev-master (Win)
The operation was canceled.
Test: PHP 8.2 - PHPCS dev-master (Win)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 8.3 - PHPCS 3.8.0 (Win)
The operation was canceled.
Test: PHP 8.3 - PHPCS 3.8.0 (Win)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 8.3 - PHPCS dev-master (Win)
The operation was canceled.
Test: PHP 8.3 - PHPCS dev-master (Win)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 8.4 - PHPCS 3.8.0 (Win)
The operation was canceled.
Test: PHP 8.4 - PHPCS 3.8.0 (Win)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed
Test: PHP 8.4 - PHPCS dev-master (Win)
The operation was canceled.
Test: PHP 8.4 - PHPCS dev-master (Win)
The strategy configuration was canceled because "test-doc-code-examples.ubuntu-latest_7_3_dev-mas" failed