Skip to content

Update to WPCS v3

Update to WPCS v3 #197

Triggered via pull request August 29, 2023 21:09
Status Failure
Total duration 36s
Artifacts

code-quality.yml

on: pull_request
code-quality  /  Lint PHP files
25s
code-quality / Lint PHP files
code-quality  /  PHPCS
20s
code-quality / PHPCS
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 10 warnings
code-quality / PHPCS: src/Context/WhenStepDefinitions.php#L64
Expected 1 blank line at end of file; 2 found
code-quality / PHPCS: utils/behat-tags.php#L43
Using short ternaries is not allowed as they are rarely used correctly
code-quality / PHPCS: tests/bootstrap.php#L34
Short array syntax is not allowed
code-quality / PHPCS: tests/bootstrap.php#L55
Short array syntax is not allowed
code-quality / PHPCS: tests/bootstrap.php#L61
Expected 1 blank line at end of file; 2 found
code-quality / PHPCS: src/Context/FeatureContext.php#L63
Short array syntax is not allowed
code-quality / PHPCS: src/Context/FeatureContext.php#L73
Short array syntax is not allowed
code-quality / PHPCS: src/Context/FeatureContext.php#L80
Short array syntax is not allowed
code-quality / PHPCS: src/Context/FeatureContext.php#L96
Short array syntax is not allowed
code-quality / PHPCS: src/Context/FeatureContext.php#L98
Short array syntax is not allowed
code-quality / PHPCS: tests/test-behat-tags.php#L14
File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: mkdir().
code-quality / PHPCS: tests/test-behat-tags.php#L15
File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: mkdir().
code-quality / PHPCS: tests/test-behat-tags.php#L22
unlink() is discouraged. Use wp_delete_file() to delete a file.
code-quality / PHPCS: tests/test-behat-tags.php#L24
File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: rmdir().
code-quality / PHPCS: tests/test-behat-tags.php#L25
File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: rmdir().
code-quality / PHPCS: tests/test-behat-tags.php#L44
File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: file_put_contents().
code-quality / PHPCS: tests/test-behat-tags.php#L122
File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: file_put_contents().
code-quality / PHPCS: tests/test-behat-tags.php#L137
File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: file_put_contents().
code-quality / PHPCS: src/Context/Support.php#L29
Loose comparisons are not allowed. Expected: "!=="; Found: "!="
code-quality / PHPCS: src/Context/Support.php#L36
Loose comparisons are not allowed. Expected: "==="; Found: "=="