Skip to content

[THEME-3651] Update the PHPCS rules #9

[THEME-3651] Update the PHPCS rules

[THEME-3651] Update the PHPCS rules #9

Triggered via pull request October 18, 2023 14:40
Status Failure
Total duration 1m 49s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

basic-qa.yml

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

Annotations

20 errors and 10 warnings
PHPStan: WordPress/Sniffs/Arrays/ArrayDoubleArrowSpacingSniff.php#L141
PHPDoc tag @param references unknown parameter: $stackPtr
PHPStan: WordPress/Sniffs/Formatting/MultipleStatementAlignmentSniff.php#L83
Method WordPress\Sniffs\Formatting\MultipleStatementAlignmentSniff::process() should return int but empty return statement found.
PHPStan: WordPress/Sniffs/Formatting/OnlyOneSpaceBeforeAssignmentSniff.php#L82
Method WordPress\Sniffs\Formatting\OnlyOneSpaceBeforeAssignmentSniff::process() should return int but empty return statement found.
PHPStan: WordPress/Sniffs/Formatting/OnlyOneSpaceBeforeAssignmentSniff.php#L111
Method WordPress\Sniffs\Formatting\OnlyOneSpaceBeforeAssignmentSniff::checkAlignment() should return int but empty return statement found.
PHPStan: WordPress/Sniffs/Formatting/OnlyOneSpaceBeforeAssignmentSniff.php#L116
Method WordPress\Sniffs\Formatting\OnlyOneSpaceBeforeAssignmentSniff::checkAlignment() should return int but empty return statement found.
PHPStan: WordPress/Sniffs/Formatting/OnlyOneSpaceBeforeAssignmentSniff.php#L129
Method WordPress\Sniffs\Formatting\OnlyOneSpaceBeforeAssignmentSniff::checkAlignment() should return int but return statement is missing.
PHPStan
Process completed with exit code 1.
Run code sniffs
Process completed with exit code 2.
Run code sniffs: WordPress/Sniffs/Arrays/ArrayDoubleArrowSpacingSniff.php#L21
Tabs must be used to indent lines; spaces are not allowed
Run code sniffs: WordPress/Sniffs/Arrays/ArrayDoubleArrowSpacingSniff.php#L21
Missing doc comment for function register()
Run code sniffs: WordPress/Sniffs/Arrays/ArrayDoubleArrowSpacingSniff.php#L22
Tabs must be used to indent lines; spaces are not allowed
Run code sniffs: WordPress/Sniffs/Arrays/ArrayDoubleArrowSpacingSniff.php#L23
Tabs must be used to indent lines; spaces are not allowed
Run code sniffs: WordPress/Sniffs/Arrays/ArrayDoubleArrowSpacingSniff.php#L35
Tabs must be used to indent lines; spaces are not allowed
Run code sniffs: WordPress/Sniffs/Arrays/ArrayDoubleArrowSpacingSniff.php#L66
Tabs must be used to indent lines; spaces are not allowed
Run code sniffs: WordPress/Sniffs/Arrays/ArrayDoubleArrowSpacingSniff.php#L129
Doc comment for parameter "$stackPtf" missing
Run code sniffs: WordPress/Sniffs/Arrays/ArrayDoubleArrowSpacingSniff.php#L134
Doc comment for parameter $stackPtr does not match actual variable name $stackPtf
Run code sniffs: WordPress/Sniffs/Arrays/ArrayDoubleArrowSpacingSniff.php#L141
Tabs must be used to indent lines; spaces are not allowed
Run code sniffs: WordPress/Sniffs/Arrays/ArrayDoubleArrowSpacingSniff.php#L142
Tabs must be used to indent lines; spaces are not allowed
Ruleset test: PHP latest on PHPCS dev-master
Process completed with exit code 2.
Ruleset test: PHP latest on PHPCS dev-master
Process completed with exit code 2.
Run code sniffs: WordPress/Tests/WhiteSpace/ControlStructureSpacingUnitTest.php#L36
Expected 1 space between "4" and double arrow; 3 found.
Run code sniffs: WordPress/Tests/WhiteSpace/ControlStructureSpacingUnitTest.php#L37
Expected 1 space between "17" and double arrow; 2 found.
Run code sniffs: WordPress/Tests/WhiteSpace/ControlStructureSpacingUnitTest.php#L38
Expected 1 space between "29" and double arrow; 2 found.
Run code sniffs: WordPress/Tests/WhiteSpace/ControlStructureSpacingUnitTest.php#L39
Expected 1 space between "37" and double arrow; 2 found.
Run code sniffs: WordPress/Tests/WhiteSpace/ControlStructureSpacingUnitTest.php#L40
Expected 1 space between "41" and double arrow; 2 found.
Run code sniffs: WordPress/Tests/WhiteSpace/ControlStructureSpacingUnitTest.php#L41
Expected 1 space between "42" and double arrow; 2 found.
Run code sniffs: WordPress/Tests/WhiteSpace/ControlStructureSpacingUnitTest.php#L42
Expected 1 space between "50" and double arrow; 2 found.
Run code sniffs: WordPress/Tests/WhiteSpace/ControlStructureSpacingUnitTest.php#L43
Expected 1 space between "52" and double arrow; 2 found.
Run code sniffs: WordPress/Tests/WhiteSpace/ControlStructureSpacingUnitTest.php#L44
Expected 1 space between "59" and double arrow; 2 found.
Run code sniffs: WordPress/Tests/WhiteSpace/ControlStructureSpacingUnitTest.php#L45
Expected 1 space between "67" and double arrow; 2 found.