fix: remove the exclusion of NonceVerification in phpcs and fix the issues #123
Annotations
11 errors and 3 warnings
PHPCS check
Process completed with exit code 2.
|
PHPCS check:
admin/views/class-openedx-commerce-settings.php#L153
Tabs must be used to indent lines; spaces are not allowed
|
PHPCS check:
admin/views/class-openedx-commerce-settings.php#L153
$_POST['openedx_commerce_new_token'] not unslashed before sanitization. Use wp_unslash() or similar
|
PHPCS check:
admin/views/class-openedx-commerce-settings.php#L153
Detected usage of a non-sanitized input variable: $_POST['openedx_commerce_new_token']
|
PHPCS check:
admin/views/class-openedx-commerce-settings.php#L153
Expected 1 spaces after opening parenthesis; 0 found
|
PHPCS check:
admin/views/class-openedx-commerce-settings.php#L153
Expected 1 spaces before closing parenthesis; 0 found
|
PHPCS check:
admin/views/class-openedx-commerce-settings.php#L196
Functions must not contain multiple empty lines in a row; found 2 empty lines
|
PHPCS check:
admin/views/class-openedx-commerce-settings.php#L294
Perl-style comments are not allowed; use "// Comment" instead
|
PHPCS check:
admin/views/class-openedx-commerce-settings.php#L295
Expected 1 spaces after opening parenthesis; 0 found
|
PHPCS check:
admin/views/class-openedx-commerce-settings.php#L295
Expected 1 spaces after opening parenthesis; 0 found
|
PHPCS check:
admin/views/class-openedx-commerce-settings.php#L295
Expected 1 spaces before closing parenthesis; 0 found
|
PHPCS check
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
PHPCS check:
admin/views/class-openedx-commerce-settings.php#L153
Found precision alignment of 1 spaces.
|
PHPCS check:
admin/views/class-openedx-commerce-settings.php#L294
This comment is 55% valid code; is this commented out code?
|