Skip to content

Add PHP linter and PHP linting in GitHub Actions #1

Add PHP linter and PHP linting in GitHub Actions

Add PHP linter and PHP linting in GitHub Actions #1

Triggered via pull request April 18, 2024 10:22
Status Failure
Total duration 34s
Artifacts

php-coding-standards.yml

on: pull_request
PHP coding standards
23s
PHP coding standards
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 6 warnings
PHP coding standards: packages/github-actions/actions/hook-documentation/tests/Data/sample-file-2.php#L6
Class name doesn't match filename; expected "class sample-file-2"
PHP coding standards: packages/github-actions/actions/hook-documentation/tests/Pest.php#L34
No space found before comment text; expected "// expect()->extend('toBeOne', function () {" but found "//expect()->extend('toBeOne', function () {"
PHP coding standards: packages/github-actions/actions/hook-documentation/tests/Pest.php#L35
Expected 1 space before comment text but found 4; use block comment if you need indentation
PHP coding standards: packages/github-actions/actions/hook-documentation/tests/Pest.php#L36
No space found before comment text; expected "// });" but found "//});"
PHP coding standards: packages/github-actions/actions/hook-documentation/tests/Pest.php#L59
No space found before comment text; expected "// function something()" but found "//function something()"
PHP coding standards: packages/github-actions/actions/hook-documentation/tests/Pest.php#L60
No space found before comment text; expected "// {" but found "//{"
PHP coding standards: packages/github-actions/actions/hook-documentation/tests/Pest.php#L61
Expected 1 space before comment text but found 4; use block comment if you need indentation
PHP coding standards: packages/github-actions/actions/hook-documentation/tests/Pest.php#L62
No space found before comment text; expected "// }" but found "//}"
PHP coding standards: packages/github-actions/actions/hook-documentation/tests/Pest.php#L64
Doc comment for parameter $source_dirs does not match actual variable name ...$source_dirs
PHP coding standards: packages/github-actions/actions/hook-documentation/tests/Pest.php#L68
Function name "getTestDataDocumentor" is not in snake case format, try "get_test_data_documentor"
PHP coding standards
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP coding standards: packages/php/woorelease-extension/src/Commands/Bulk.php#L187
Variable assignment found within a condition. Did you mean to do a comparison ?
PHP coding standards: packages/php/compat-checker/src/Checks/WCCompatibility.php#L24
Visibility must be declared on all constants if your project supports PHP 7.1 or later
PHP coding standards: packages/github-actions/actions/hook-documentation/tests/Pest.php#L21
This comment is 65% valid code; is this commented out code?
PHP coding standards: packages/github-actions/actions/hook-documentation/tests/Pest.php#L34
This comment is 66% valid code; is this commented out code?
PHP coding standards: packages/github-actions/actions/hook-documentation/tests/Pest.php#L59
This comment is 46% valid code; is this commented out code?