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

(106 errors, 31 warnings)

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

course/format/noticebd/config.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#3) 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".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#4) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#4) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#4) 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/>.".
(#34) Inline comments must end in full-stops, exclamation marks, or question marks
(#35) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#36) Blank comments are not allowed
course/format/noticebd/db/upgrade.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#3) 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".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#4) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#4) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#4) 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/>.".
(#28) Expected MOODLE_INTERNAL check or config.php inclusion
course/format/noticebd/format.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#3) 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".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#4) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#4) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#4) 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/>.".
(#60) Inline comments must start with a capital letter, digit or 3-dots sequence
(#60) Inline comments must end in full-stops, exclamation marks, or question marks
(#72) Inline comments must end in full-stops, exclamation marks, or question marks
course/format/noticebd/lang/en/format_noticebd.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#3) 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".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#4) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#4) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#4) 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/>.".
(#28) Inline comments must end in full-stops, exclamation marks, or question marks
course/format/noticebd/lib.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#3) 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".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#4) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#4) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#4) 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/>.".
(#138) Inline comments must start with a capital letter, digit or 3-dots sequence
(#138) Inline comments must end in full-stops, exclamation marks, or question marks
(#147) Inline comments must start with a capital letter, digit or 3-dots sequence
(#147) Inline comments must end in full-stops, exclamation marks, or question marks
(#158) Visibility must be declared on method "ajax_section_move"
(#286) This comment is 43% valid code; is this commented out code?
(#287) Inline comments must end in full-stops, exclamation marks, or question marks
(#291) Inline comments must end in full-stops, exclamation marks, or question marks
course/format/noticebd/renderer.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#3) 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".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#4) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#4) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#4) 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/>.".
(#45) Line exceeds 132 characters; contains 138 characters
(#46) Line exceeds 132 characters; contains 139 characters
(#130) Commas (,) must be followed by white space.
(#157) Inline comments must end in full-stops, exclamation marks, or question marks
(#177) Inline comments must start with a capital letter, digit or 3-dots sequence
(#177) Inline comments must end in full-stops, exclamation marks, or question marks
(#177) This comment is 61% valid code; is this commented out code?
(#177) No space found before comment text; expected "// if ($thissection->summary or $thissection->sequence or $PAGE->user_is_editing()) {" but found "//if ($thissection->summary or $thissection->sequence or $PAGE->user_is_editing()) {"
(#181) Line indented incorrectly; expected 8 spaces, found 12
(#184) Line indented incorrectly; expected 8 spaces, found 12
(#187) Inline comments must start with a capital letter, digit or 3-dots sequence
(#187) Inline comments must end in full-stops, exclamation marks, or question marks
(#187) This comment is 100% valid code; is this commented out code?
(#187) No space found before comment text; expected "// }" but found "//}"
(#189) Inline comments must end in full-stops, exclamation marks, or question marks
(#198) Inline comments must end in full-stops, exclamation marks, or question marks
(#232) Inline comments must start with a capital letter, digit or 3-dots sequence
(#265) Inline comments must end in full-stops, exclamation marks, or question marks
(#278) Inline comments must start with a capital letter, digit or 3-dots sequence
(#278) Inline comments must end in full-stops, exclamation marks, or question marks
(#313) Inline comments must start with a capital letter, digit or 3-dots sequence
(#313) Inline comments must end in full-stops, exclamation marks, or question marks
course/format/noticebd/version.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#3) 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".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#4) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#4) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#4) 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/>.".
(#32) This comment is 45% valid code; is this commented out code?

Javascript coding style problems

(0 errors, 4 warnings)

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

course/format/noticebd/format.js
(#51) Missing semicolon.
(#70) Missing semicolon.
(#87) Expected '===' and instead saw '=='.
(#113) Missing semicolon.

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(18 errors, 8 warnings)

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

course/format/noticebd/config.php
(#2) No one-line description found in phpdocs for file
(#8) Not recommended phpdocs tag @version used
(#6) Package course/format is not valid
course/format/noticebd/db/upgrade.php
(#28) Function xmldb_format_noticebd_upgrade is not documented
(#2) No one-line description found in phpdocs for file
(#8) Not recommended phpdocs tag @version used
(#6) Package course/format is not valid
course/format/noticebd/format.php
(#2) No one-line description found in phpdocs for file
(#8) Not recommended phpdocs tag @version used
(#6) Package course/format is not valid
course/format/noticebd/lang/en/format_noticebd.php
(#2) No one-line description found in phpdocs for file
(#8) Not recommended phpdocs tag @version used
(#6) Package course/format is not valid
course/format/noticebd/lib.php
(#2) No one-line description found in phpdocs for file
(#308) Phpdocs for function callback_noticebd_load_content has incomplete parameters list
(#8) Not recommended phpdocs tag @version used
(#6) Package course/format is not valid
course/format/noticebd/renderer.php
(#2) No one-line description found in phpdocs for file
(#31) Class format_noticebd_renderer does not have @copyright tag
(#31) Class format_noticebd_renderer does not have @license tag
(#8) Not recommended phpdocs tag @version used
(#121) Not recommended phpdocs tag @global used
(#6) Package course/format is not valid
course/format/noticebd/version.php
(#2) No one-line description found in phpdocs for file
(#8) Not recommended phpdocs tag @version used
(#6) Package course/format is not valid

Update savepoints problems

(2 errors, 0 warnings)

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

course/format/noticebd/db/upgrade.php
Detected more 'if' blocks (1) than 'savepoint' calls (0)
version 2114052000 is missing corresponding savepoint call

Third party library modification problems

(0 errors, 0 warnings)

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


Mustache template problems

(0 errors, 0 warnings)

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