Skip to content

Add a sniff that checks if equal signs only have one space before the… #8

Add a sniff that checks if equal signs only have one space before the…

Add a sniff that checks if equal signs only have one space before the… #8

Triggered via push October 18, 2023 14:40
Status Failure
Total duration 2m 2s
Artifacts

basic-qa.yml

on: push
Run code sniffs
32s
Run code sniffs
PHPStan
28s
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/Sniffs/DateTime/RestrictedFunctionsSniff.php#L35
Expected 1 space between "'type'" and double arrow; 6 found.
Run code sniffs: WordPress/Sniffs/DateTime/RestrictedFunctionsSniff.php#L36
Expected 1 space between "'message'" and double arrow; 3 found.
Run code sniffs: WordPress/Sniffs/DateTime/RestrictedFunctionsSniff.php#L51
Expected 1 space between "'type'" and double arrow; 6 found.
Run code sniffs: WordPress/Sniffs/DateTime/RestrictedFunctionsSniff.php#L52
Expected 1 space between "'message'" and double arrow; 3 found.
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.