Skip to content

Chore/packages update #4575

Chore/packages update

Chore/packages update #4575

Triggered via pull request December 11, 2024 00:50
Status Failure
Total duration 6m 14s
Artifacts

lint.yml

on: pull_request
ES and Style Lint
47s
ES and Style Lint
PHP Lint
40s
PHP Lint
Fit to window
Zoom out
Zoom in

Annotations

13 errors and 16 warnings
ES and Style Lint
Process completed with exit code 1.
PHP Lint: elasticpress.php#L27
An import use statement should never start with a leading backslash
PHP Lint: elasticpress.php#L43
Expected 1 space after FUNCTION keyword; 0 found
PHP Lint: elasticpress.php#L75
Expected 1 space after FUNCTION keyword; 0 found
PHP Lint: tests/cypress/wordpress-files/test-plugins/auto-meta-mode.php#L14
Expected 1 space after FUNCTION keyword; 0 found
PHP Lint: tests/cypress/wordpress-files/test-plugins/custom-instant-results-template.php#L14
Expected 1 space after FUNCTION keyword; 0 found
PHP Lint: tests/cypress/wordpress-files/test-plugins/fake-log-messages.php#L17
Expected 1 space after FUNCTION keyword; 0 found
PHP Lint: tests/cypress/wordpress-files/test-plugins/filter-instant-results-per-page.php#L14
Expected 1 space after FUNCTION keyword; 0 found
PHP Lint: tests/cypress/wordpress-files/test-plugins/unsupported-elasticsearch-version.php#L13
Expected 1 space after FUNCTION keyword; 0 found
PHP Lint: tests/cypress/wordpress-files/test-plugins/unsupported-elasticsearch-version.php#L20
Expected 1 space after FUNCTION keyword; 0 found
PHP Lint: tests/cypress/wordpress-files/test-plugins/filter-instant-results-args-schema.php#L14
Expected 1 space after FUNCTION keyword; 0 found
ES and Style Lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ES and Style Lint: assets/js/api-search/src/utilities.js#L138
Use object shorthand or index signatures instead of `Object`, e.g., `{[key: string]: string}`
ES and Style Lint: assets/js/api-search/src/utilities.js#L140
Use object shorthand or index signatures instead of `Object`, e.g., `{[key: string]: string}`
ES and Style Lint: assets/js/api-search/src/utilities.js#L162
Use object shorthand or index signatures instead of `Object`, e.g., `{[key: string]: string}`
ES and Style Lint: assets/js/api-search/src/utilities.js#L163
Use object shorthand or index signatures instead of `Object`, e.g., `{[key: string]: string}`
PHP Lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP Lint: elasticpress.php#L75
It is recommended not to use reserved keyword "class" as function parameter name. Found: $class
PHP Lint: tests/php/indexables/TestPostMultisite.php#L243
Stand-alone post-increment statement found. Use pre-increment instead: ++$other_site_post_count.
PHP Lint: tests/php/indexables/TestPostMultisite.php#L503
Stand-alone post-increment statement found. Use pre-increment instead: ++$i.
PHP Lint: tests/php/indexables/TestPostMultisite.php#L565
Stand-alone post-increment statement found. Use pre-increment instead: ++$i.
PHP Lint: tests/php/indexables/TestPostMultisite.php#L623
Stand-alone post-increment statement found. Use pre-increment instead: ++$i.
PHP Lint: tests/php/indexables/TestPostMultisite.php#L675
Stand-alone post-increment statement found. Use pre-increment instead: ++$i.
PHP Lint: tests/php/indexables/TestPostMultisite.php#L727
Stand-alone post-increment statement found. Use pre-increment instead: ++$i.
PHP Lint: tests/php/indexables/TestPostMultisite.php#L778
Stand-alone post-increment statement found. Use pre-increment instead: ++$i.
PHP Lint: tests/php/indexables/TestPostMultisite.php#L836
Stand-alone post-increment statement found. Use pre-increment instead: ++$i.
PHP Lint: tests/php/indexables/TestPostMultisite.php#L892
Stand-alone post-increment statement found. Use pre-increment instead: ++$posts_created.