Lint fixes #4633
lint.yml
on: pull_request
ES and Style Lint
43s
PHP Lint
39s
Annotations
2 errors and 16 warnings
PHP Lint
Process completed with exit code 1.
|
ES and Style Lint
Process completed with exit code 2.
|
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:
includes/classes/Command.php#L1117
The method parameter $host is never used
|
PHP Lint:
includes/classes/Command.php#L1136
The method parameter $prefix is never used
|
PHP Lint:
includes/classes/Indexables.php#L127
It is recommended not to use reserved keyword "global" as function parameter name. Found: $global
|
PHP Lint:
includes/classes/Feature/RelatedPosts/RelatedPosts.php#L121
It is recommended not to use reserved keyword "return" as function parameter name. Found: $return
|
PHP Lint:
includes/classes/Feature/RelatedPosts/RelatedPosts.php#L151
It is recommended not to use reserved keyword "return" as function parameter name. Found: $return
|
PHP Lint:
includes/classes/Feature/Facets/Renderer.php#L75
The method parameter $item is never used
|
PHP Lint:
includes/classes/Feature/Facets/Renderer.php#L75
The method parameter $url is never used
|
PHP Lint:
includes/classes/Feature/WooCommerce/OrdersAutosuggest.php#L369
The method parameter $failures is never used
|
PHP Lint:
includes/classes/Feature/Search/Weighting.php#L356
The method parameter $post_type is never used
|
PHP Lint:
includes/classes/Feature/Search/Weighting.php#L356
The method parameter $field is never used
|
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}`
|