Bump wp-coding-standards/wpcs from 2.3.0 to 3.0.1 #220
Annotations
10 errors and 11 warnings
Run code style check:
__tests__/utils.php#L18
Short array syntax is not allowed
|
Run code style check:
__tests__/utils.php#L21
Short array syntax is not allowed
|
Run code style check:
__tests__/utils.php#L27
Short array syntax is not allowed
|
Run code style check:
__tests__/utils.php#L32
Short array syntax is not allowed
|
Run code style check:
__tests__/bootstrap.php#L35
Pass the $levels parameter to the dirname() call instead of using nested dirname() calls (PHP >= 7.0)
|
Run code style check:
__tests__/bootstrap.php#L35
Use the __DIR__ constant instead of calling dirname(__FILE__) (PHP >= 5.3)
|
Run code style check:
__tests__/bootstrap.php#L64
Pass the $levels parameter to the dirname() call instead of using nested dirname() calls (PHP >= 7.0)
|
Run code style check:
__tests__/bootstrap.php#L64
Use the __DIR__ constant instead of calling dirname(__FILE__) (PHP >= 5.3)
|
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__/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/utils.php#L103
It is recommended not to use reserved keyword "function" as function parameter name. Found: $function
|
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:
includes/wp-adapter.php#L257
Stand-alone post-increment statement found. Use pre-increment instead: ++$query_args['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/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
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/
|