ci: add PHP lint workflow for syntax and coding standards checks #865
Annotations
10 errors and 10 warnings
|
PHP coding standards:
modules/dashboard/widgets/dashboard-notepad.php#L24
Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "ef_dashboard_notepad_edit_cap".
|
|
PHP coding standards:
modules/dashboard/widgets/dashboard-notepad.php#L17
Missing doc comment for function init()
|
|
PHP coding standards:
modules/dashboard/widgets/dashboard-notepad.php#L14
Inline comments must end in full-stops, exclamation marks, or question marks
|
|
PHP coding standards:
modules/dashboard/widgets/dashboard-notepad.php#L13
Missing doc comment for function __construct()
|
|
PHP coding standards:
modules/dashboard/widgets/dashboard-notepad.php#L11
Missing member variable doc comment
|
|
PHP coding standards:
modules/dashboard/widgets/dashboard-notepad.php#L6
Classes declared by a theme/plugin should start with the theme/plugin prefix. Found: "EF_Dashboard_Notepad_Widget".
|
|
PHP coding standards:
modules/dashboard/widgets/dashboard-notepad.php#L4
There must be no blank lines after the class comment
|
|
PHP coding standards:
modules/dashboard/widgets/dashboard-notepad.php#L1
The "ef" prefix is too short. Short prefixes are not unique enough and may cause name collisions with other code.
|
|
PHP coding standards:
modules/dashboard/widgets/dashboard-notepad.php#L1
Missing file doc comment
|
|
PHP coding standards:
edit-flow.php#L1
Missing file doc comment
|
|
PHP coding standards:
common/php/screen-options.php#L55
Array double arrow not aligned correctly; expected 6 space(s) between "'callback'" and double arrow, but found 1.
|
|
PHP coding standards:
common/php/screen-options.php#L54
Array double arrow not aligned correctly; expected 9 space(s) between "'title'" and double arrow, but found 1.
|
|
PHP coding standards:
common/php/screen-options.php#L28
Equals sign not aligned with surrounding assignments; expected 7 spaces but found 1 space
|
|
PHP coding standards:
modules/dashboard/widgets/dashboard-notepad.php#L78
Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
|
|
PHP coding standards:
modules/dashboard/widgets/dashboard-notepad.php#L76
Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space
|
|
PHP coding standards:
modules/dashboard/widgets/dashboard-notepad.php#L73
Array double arrow not aligned correctly; expected 6 space(s) between "'post_type'" and double arrow, but found 8.
|
|
PHP coding standards:
modules/dashboard/widgets/dashboard-notepad.php#L72
Array double arrow not aligned correctly; expected 4 space(s) between "'post_status'" and double arrow, but found 6.
|
|
PHP coding standards:
modules/dashboard/widgets/dashboard-notepad.php#L71
Array double arrow not aligned correctly; expected 1 space(s) between "'posts_per_page'" and double arrow, but found 3.
|
|
PHP coding standards:
modules/dashboard/widgets/dashboard-notepad.php#L48
Detected usage of a non-sanitized input variable: $_POST['note']
|
|
PHP coding standards:
modules/dashboard/widgets/dashboard-notepad.php#L21
Array double arrow not aligned correctly; expected 3 space(s) between "'label'" and double arrow, but found 1.
|
Loading