Skip to content

Add a check for the leading and trailing spaces #1157

Add a check for the leading and trailing spaces

Add a check for the leading and trailing spaces #1157

Triggered via pull request November 4, 2024 10:31
Status Failure
Total duration 52s
Artifacts

basic-qa.yml

on: pull_request
Run code sniffs
41s
Run code sniffs
PHPStan
24s
PHPStan
Matrix: ruleset-tests
Fit to window
Zoom out
Zoom in

Annotations

12 errors and 5 warnings
Ruleset test: PHP latest on PHPCS dev
Process completed with exit code 1.
Run code sniffs: WordPress/Sniffs/WP/I18nSniff.php#L843
No space after opening parenthesis is prohibited
Run code sniffs: WordPress/Sniffs/WP/I18nSniff.php#L843
No space before closing parenthesis is prohibited
Run code sniffs: WordPress/Sniffs/WP/I18nSniff.php#L844
Expected 1 spaces after opening parenthesis; 0 found
Run code sniffs: WordPress/Sniffs/WP/I18nSniff.php#L844
Expected 1 spaces after opening parenthesis; 0 found
Run code sniffs: WordPress/Sniffs/WP/I18nSniff.php#L844
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
Run code sniffs: WordPress/Sniffs/WP/I18nSniff.php#L844
Expected 1 spaces before closing parenthesis; 0 found
Run code sniffs: WordPress/Sniffs/WP/I18nSniff.php#L844
Expected 1 spaces before closing parenthesis; 0 found
Run code sniffs: WordPress/Sniffs/WP/I18nSniff.php#L845
Expected 1 spaces after opening parenthesis; 0 found
Run code sniffs: WordPress/Sniffs/WP/I18nSniff.php#L845
Expected 1 spaces after opening parenthesis; 0 found
Run code sniffs: WordPress/Sniffs/WP/I18nSniff.php#L845
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
Run code sniffs
Process completed with exit code 2.
Run code sniffs: WordPress/Sniffs/WP/I18nSniff.php#L824
Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space
Run code sniffs: WordPress/Sniffs/WP/I18nSniff.php#L843
Loose comparisons are not allowed. Expected: "==="; Found: "=="
Run code sniffs: WordPress/Sniffs/WP/I18nSniff.php#L844
print_r() found. Debug code should not normally be used in production.
Run code sniffs: WordPress/Sniffs/WP/I18nSniff.php#L845
print_r() found. Debug code should not normally be used in production.
Run code sniffs: WordPress/Sniffs/WP/I18nSniff.php#L846
print_r() found. Debug code should not normally be used in production.