Skip to content

Prepare release v2.0.3 #47

Prepare release v2.0.3

Prepare release v2.0.3 #47

Triggered via pull request October 27, 2024 06:53
Status Failure
Total duration 29s
Artifacts

lint.yml

on: pull_request
PHP Code Sniffer
19s
PHP Code Sniffer
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 11 warnings
PHP Code Sniffer: includes/admin/views/metabox/campaign-miscellaneous.php#L2
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '__'.
PHP Code Sniffer: includes/admin/views/metabox/campaign-miscellaneous.php#L3
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$campaign_id'.
PHP Code Sniffer: includes/admin/views/metabox/campaign-miscellaneous.php#L3
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'wp_create_nonce'.
PHP Code Sniffer: includes/class-wpcp-logger.php#L234
A file should either contain function declarations or OO structure declarations, but not both. Found 1 function declaration(s) and 1 OO structure declaration(s). The first function declaration was found on line 234; the first OO declaration was found on line 19
PHP Code Sniffer: wp-content-pilot.php#L36
Inline comments must end in full-stops, exclamation marks, or question marks
PHP Code Sniffer: wp-content-pilot.php#L83
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '__'.
PHP Code Sniffer: wp-content-pilot.php#L92
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '__'.
PHP Code Sniffer: wp-content-pilot.php#L149
No space found before comment text; expected "// boot" but found "//boot"
PHP Code Sniffer: wp-content-pilot.php#L149
Inline comments must end in full-stops, exclamation marks, or question marks
PHP Code Sniffer: wp-content-pilot.php#L150
"require_once" is a statement not a function; no parentheses are required
PHP Code Sniffer
Process completed with exit code 2.
PHP Code Sniffer
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
PHP Code Sniffer: includes/class-wpcp-logger.php#L94
File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: fopen().
PHP Code Sniffer: includes/class-wpcp-logger.php#L98
File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: is_writable().
PHP Code Sniffer: includes/class-wpcp-logger.php#L176
File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: fwrite().
PHP Code Sniffer: includes/class-wpcp-logger.php#L198
File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: fopen().
PHP Code Sniffer: wp-content-pilot.php#L58
Property name "$_instance" should not be prefixed with an underscore to indicate visibility
PHP Code Sniffer: wp-content-pilot.php#L196
Scheduling crons at 60 sec ( less than 15 minutes ) is discouraged.
PHP Code Sniffer: wp-content-pilot.php#L253
Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
PHP Code Sniffer: wp-content-pilot.php#L307
This comment is 50% valid code; is this commented out code?
PHP Code Sniffer: wp-content-pilot.php#L322
A function call to __() with texts containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.
PHP Code Sniffer: includes/admin/views/metabox/action-metabox.php#L14
Processing form data without nonce verification.