Skip to content

Feature - User Roles and Permission #1920

Feature - User Roles and Permission

Feature - User Roles and Permission #1920

Triggered via pull request January 2, 2025 07:14
Status Failure
Total duration 24s
Artifacts

pr-code-sniff.yml

on: pull_request
Code sniff (PHP 7.4 , WP Latest)
16s
Code sniff (PHP 7.4 , WP Latest)
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 2 warnings
Code sniff (PHP 7.4 , WP Latest)
Process completed with exit code 2.
Code sniff (PHP 7.4 , WP Latest): includes/RestApi/controllers/version1/class-evf-role-and-permission.php#L1
Class file names should be based on the class name with "class-" prepended. Expected class-evf-roles-and-permission.php, but found class-evf-role-and-permission.php.
Code sniff (PHP 7.4 , WP Latest): includes/RestApi/controllers/version1/class-evf-role-and-permission.php#L94
Missing doc comment for function assign_permission_based_on_role()
Code sniff (PHP 7.4 , WP Latest): includes/RestApi/controllers/version1/class-evf-role-and-permission.php#L110
Overriding WordPress globals is prohibited. Found assignment to $wp_roles
Code sniff (PHP 7.4 , WP Latest): includes/RestApi/controllers/version1/class-evf-role-and-permission.php#L158
Overriding WordPress globals is prohibited. Found assignment to $wp_roles
Code sniff (PHP 7.4 , WP Latest): includes/RestApi/controllers/version1/class-evf-role-and-permission.php#L190
Missing doc comment for function evf_add_user_manager()
Code sniff (PHP 7.4 , WP Latest): includes/RestApi/controllers/version1/class-evf-role-and-permission.php#L281
Missing doc comment for function get_user_permissions()
Code sniff (PHP 7.4 , WP Latest): includes/RestApi/controllers/version1/class-evf-role-and-permission.php#L343
Missing doc comment for function get_evf_permissions()
Code sniff (PHP 7.4 , WP Latest)
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
Code sniff (PHP 7.4 , WP Latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636