Skip to content

Continuous integration #3

Continuous integration

Continuous integration #3

Triggered via pull request February 13, 2024 16:46
@psrpintopsrpinto
synchronize #67
tooling
Status Failure
Total duration 24s
Artifacts

coding-standards.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 11 warnings
PHP: includes/class-wporg-gp-translation-events-translation-listener.php#L3
Missing doc comment for class WPORG_GP_Translation_Events_Translation_Listener
PHP: includes/class-wporg-gp-translation-events-translation-listener.php#L10
Missing member variable doc comment
PHP: includes/class-wporg-gp-translation-events-translation-listener.php#L12
Missing doc comment for function __construct()
PHP: includes/class-wporg-gp-translation-events-translation-listener.php#L16
Missing doc comment for function start()
PHP: includes/class-wporg-gp-translation-events-translation-listener.php#L59
Missing doc comment for function handle_action()
PHP: includes/class-wporg-gp-translation-events-translation-listener.php#L65
Missing short description in doc comment
PHP: includes/class-wporg-gp-translation-events-translation-listener.php#L66
Parentheses must be used when instantiating a new class
PHP: includes/class-wporg-gp-translation-events-translation-listener.php#L66
Short array syntax is not allowed
PHP: includes/class-wporg-gp-translation-events-translation-listener.php#L75
Use placeholders and $wpdb->prepare(); found interpolated variable $table_name at "insert ignore into $table_name (event_id, user_id, translation_id, action, locale) values (%d, %d, %d, %s, %s)"
PHP
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP: includes/class-wporg-gp-translation-events-translation-listener.php#L4
Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space
PHP: includes/class-wporg-gp-translation-events-translation-listener.php#L5
Equals sign not aligned with surrounding assignments; expected 10 spaces but found 1 space
PHP: includes/class-wporg-gp-translation-events-translation-listener.php#L6
Equals sign not aligned with surrounding assignments; expected 9 spaces but found 1 space
PHP: includes/class-wporg-gp-translation-events-translation-listener.php#L7
Equals sign not aligned with surrounding assignments; expected 10 spaces but found 1 space
PHP: includes/class-wporg-gp-translation-events-translation-listener.php#L73
Use of a direct database call is discouraged.
PHP: includes/class-wporg-gp-translation-events-translation-listener.php#L73
Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
PHP: includes/class-wporg-gp-translation-events-translation-listener.php#L89
error_log() found. Debug code should not normally be used in production.
PHP: includes/class-wporg-gp-translation-events-translation-listener.php#L111
Detected usage of meta_query, possible slow query.
PHP: includes/class-wporg-gp-translation-events-translation-listener.php#L130
Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space
PHP: includes/class-wporg-gp-translation-events-translation-listener.php#L151
The method parameter $user_id is never used