Skip to content

Bump wp-coding-standards/wpcs from 2.3.0 to 3.1.0 #244

Bump wp-coding-standards/wpcs from 2.3.0 to 3.1.0

Bump wp-coding-standards/wpcs from 2.3.0 to 3.1.0 #244

Triggered via push December 17, 2024 08:04
Status Failure
Total duration 25s
Artifacts

phpcs.yaml

on: push
Run code style check
15s
Run code style check
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 12 warnings
Run code style check: __tests__/unit-tests/test-event.php#L10
Visibility must be declared on method "setUp"
Run code style check: __tests__/unit-tests/test-event.php#L15
Visibility must be declared on method "tearDown"
Run code style check: __tests__/unit-tests/test-event.php#L20
Visibility must be declared on method "test_run"
Run code style check: __tests__/unit-tests/test-event.php#L33
Visibility must be declared on method "test_complete"
Run code style check: __tests__/unit-tests/test-event.php#L38
Short array syntax is not allowed
Run code style check: __tests__/unit-tests/test-event.php#L47
Short array syntax is not allowed
Run code style check: __tests__/unit-tests/test-event.php#L50
Visibility must be declared on method "test_reschedule"
Run code style check: __tests__/unit-tests/test-event.php#L76
Visibility must be declared on method "test_exists"
Run code style check: __tests__/unit-tests/test-event.php#L86
Visibility must be declared on method "test_create_instance_hash"
Run code style check: __tests__/unit-tests/test-event.php#L87
Short array syntax is not allowed
Run code style check
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Run code style check: __tests__/bootstrap.php#L56
File is being unconditionally included; use "require" instead
Run code style check: __tests__/bootstrap.php#L57
File is being unconditionally included; use "require" instead
Run code style check: __tests__/bootstrap.php#L58
File is being unconditionally included; use "require" instead
Run code style check: __tests__/bootstrap.php#L59
File is being unconditionally included; use "require" instead
Run code style check: includes/class-internal-events.php#L192
Stand-alone post-increment statement found. Use pre-increment instead: ++$page.
Run code style check: includes/wp-cli/class-events.php#L467
Stand-alone post-increment statement found. Use pre-increment instead: ++$success_count.
Run code style check: includes/utils.php#L103
It is recommended not to use reserved keyword "function" as function parameter name. Found: $function
Run code style check: includes/class-events.php#L172
Stand-alone post-increment statement found. Use pre-increment instead: ++$action_counts[ $action ].
Run code style check: includes/class-events.php#L181
Stand-alone post-increment statement found. Use pre-increment instead: ++$i.
Run code style check: includes/wp-adapter.php#L162
Stand-alone post-increment statement found. Use pre-increment instead: ++$query_args['page'].
Run code style check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/