Prechecker results: error


PHP lint problems

(0 errors, 0 warnings)

This section shows php lint problems in the code detected by php -l [More info]


PHP coding style problems

(63 errors, 20 warnings)

This section shows the coding style problems detected in the code by phpcs [More info]

blocks/checklist/block_checklist.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#6) Visibility must be declared on method "init"
(#7) Commas (,) must be followed by white space.
(#10) Visibility must be declared on method "instance_allow_multiple"
(#14) Visibility must be declared on method "has_config"
(#18) Visibility must be declared on method "instance_allow_config"
(#22) Visibility must be declared on method "applicable_formats"
(#23) Expected 1 space before "=>"; 0 found
(#23) Expected 1 space after "=>"; 0 found
(#26) Visibility must be declared on method "specialization"
(#32) Expected 1 space before "=>"; 0 found
(#32) Expected 1 space after "=>"; 0 found
(#39) Visibility must be declared on method "instance_create"
(#49) Visibility must be declared on method "get_content"
(#50) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#63) Commas (,) must be followed by white space.
(#76) Commas (,) must be followed by white space.
(#109) Line exceeds 132 characters; contains 137 characters
(#111) Inline comments must start with a capital letter, digit or 3-dots sequence
(#111) Inline comments must end in full-stops, exclamation marks, or question marks
(#120) Commas (,) must be followed by white space.
(#120) Line exceeds 132 characters; contains 139 characters
(#126) Expected 1 space before "=>"; 0 found
(#126) Expected 1 space after "=>"; 0 found
(#128) Expected 1 space before "=>"; 0 found
(#128) Expected 1 space after "=>"; 0 found
(#129) Line exceeds 132 characters; contains 165 characters
(#132) Commas (,) must be followed by white space.
(#136) Expected 1 space before "=>"; 0 found
(#136) Expected 1 space after "=>"; 0 found
(#138) Line exceeds 132 characters; contains 145 characters
(#186) Expected 1 space before "=>"; 0 found
(#186) Expected 1 space after "=>"; 0 found
(#214) Line exceeds maximum limit of 180 characters; contains 221 characters
(#322) Commas (,) must be followed by white space.
(#322) Line exceeds 132 characters; contains 171 characters
(#329) Visibility must be declared on method "import_checklist_plugin"
(#332) Expected 1 space before "=>"; 0 found
(#332) Expected 1 space after "=>"; 0 found
(#354) Visibility must be declared on method "get_groups_menu"
(#358) Inline comments must end in full-stops, exclamation marks, or question marks
(#371) Inline comments must start with a capital letter, digit or 3-dots sequence
(#371) Inline comments must end in full-stops, exclamation marks, or question marks
(#374) Inline comments must start with a capital letter, digit or 3-dots sequence
(#374) Inline comments must end in full-stops, exclamation marks, or question marks
(#399) Visibility must be declared on method "get_selected_group"
(#429) Inline comments must end in full-stops, exclamation marks, or question marks
(#432) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/checklist/edit_form.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#3) Expected MOODLE_INTERNAL check or config.php inclusion
(#10) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#16) Expected 1 space before "=>"; 0 found
(#16) Expected 1 space after "=>"; 0 found
(#24) Expected 1 space before "=>"; 0 found
(#24) Expected 1 space after "=>"; 0 found
(#33) Possible useless method overriding detected
(#33) Visibility must be declared on method "set_data"
blocks/checklist/lang/en/block_checklist.php
(#2) The opening <?php tag must be followed by exactly one newline.
blocks/checklist/lang/es/block_checklist.php
(#2) The opening <?php tag must be followed by exactly one newline.
blocks/checklist/lang/fr/block_checklist.php
(#2) The opening <?php tag must be followed by exactly one newline.
blocks/checklist/lang/ja/block_checklist.php
(#1) This comment is 67% valid code; is this commented out code?
(#1) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1) Line 1 of the opening comment must start "// This file is part of".
(#1) Whitespace found at end of line
(#2) Line 2 of the opening comment must start "//".
(#2) Inline comments must end in full-stops, exclamation marks, or question marks
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#3) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#4) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#5) Line 6 of the opening comment must start "// (at your option) any later version.".
(#5) Line 7 of the opening comment must start "//".
(#5) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#5) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#5) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#5) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#13) A closing tag is not permitted at the end of a PHP file
blocks/checklist/lang/sk/block_checklist.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#10) A closing tag is not permitted at the end of a PHP file
blocks/checklist/version.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#7) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(0 errors, 0 warnings)

This section shows the coding style problems detected in the code by eslint [More info]


CSS problems

(0 errors, 0 warnings)

This section shows CSS problems detected by stylelint [More info]


PHPDocs style problems

(35 errors, 8 warnings)

This section shows the phpdocs problems detected in the code by local_moodlecheck [More info]

blocks/checklist/backup/moodle2/restore_checklist_block_task.class.php
(#27) Class restore_checklist_block_task is not documented
(#28) Function restore_checklist_block_task::define_my_settings is not documented
(#32) Function restore_checklist_block_task::get_fileareas is not documented
(#36) Function restore_checklist_block_task::get_configdata_encoded_attributes is not documented
(#47) Function restore_checklist_block_task::after_restore is not documented
(#70) Function restore_checklist_block_task::define_decode_contents is not documented
(#74) Function restore_checklist_block_task::define_decode_rules is not documented
blocks/checklist/block_checklist.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#5) Class block_checklist is not documented
(#6) Function block_checklist::init is not documented
(#10) Function block_checklist::instance_allow_multiple is not documented
(#14) Function block_checklist::has_config is not documented
(#18) Function block_checklist::instance_allow_config is not documented
(#22) Function block_checklist::applicable_formats is not documented
(#26) Function block_checklist::specialization is not documented
(#39) Function block_checklist::instance_create is not documented
(#49) Function block_checklist::get_content is not documented
(#80) Function block_checklist::show_single_checklist is not documented
(#144) Function block_checklist::show_checklist_overview is not documented
(#312) Function block_checklist::print_user_progressbar is not documented
(#329) Function block_checklist::import_checklist_plugin is not documented
(#354) Function block_checklist::get_groups_menu is not documented
(#399) Function block_checklist::get_selected_group is not documented
(#5) Package is not specified for class block_checklist. It is also not specified in file-level phpdocs
blocks/checklist/edit_form.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#3) Class block_checklist_edit_form is not documented
(#33) Function block_checklist_edit_form::set_data is not documented
(#4) There is no description in phpdocs for function specific_definition
(#3) Package is not specified for class block_checklist_edit_form. It is also not specified in file-level phpdocs
blocks/checklist/lang/en/block_checklist.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
blocks/checklist/lang/es/block_checklist.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
blocks/checklist/lang/fr/block_checklist.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
blocks/checklist/lang/ja/block_checklist.php
(#2) Empty line found after PHP open tag
(#5) File-level phpdocs block is not found
blocks/checklist/lang/sk/block_checklist.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
blocks/checklist/version.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found

Update savepoints problems

(0 errors, 0 warnings)

This section shows problems detected with the handling of upgrade savepoints [More info]


Third party library modification problems

(0 errors, 0 warnings)

This section shows problems detected with the modification of third party libraries [More info]


grunt changes

(0 errors, 0 warnings)

This section shows files built by grunt and not commited [More info]


shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 0 warnings)

This section shows problems detected in mustache templates [More info]