Prechecker results: error


PHP lint problems

(1 errors, 0 warnings)

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

filter/flowchart/filter.php
BOM character found

PHP coding style problems

(91 errors, 18 warnings)

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

filter/flowchart/filter.php
(#1) The first thing in a PHP file must be the <?php tag.
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#3) Expected 1 space after asterisk; 0 found
(#10) Expected 1 space after asterisk; 0 found
(#15) Expected 1 space after asterisk; 0 found
(#18) Expected 1 space after asterisk; 0 found
(#24) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#26) Inline comments must start with a capital letter, digit or 3-dots sequence
(#27) Inline comments must end in full-stops, exclamation marks, or question marks
(#27) Expected 1 space before comment text but found 5; use block comment if you need indentation
(#33) Inline comments must start with a capital letter, digit or 3-dots sequence
(#33) Inline comments must end in full-stops, exclamation marks, or question marks
(#36) Inline comments must start with a capital letter, digit or 3-dots sequence
(#36) Inline comments must end in full-stops, exclamation marks, or question marks
(#38) Inline comments must start with a capital letter, digit or 3-dots sequence
(#38) Inline comments must end in full-stops, exclamation marks, or question marks
(#40) Expected "if (...) {\n"; found "if(...){\n"
(#44) Expected "if (...) {\n"; found "if(...){\n"
(#48) Expected "if (...) {\n"; found "if(...){\n"
(#52) Expected "if (...) {\n"; found "if(...){\n"
(#56) Expected "if (...) {\n"; found "if(...){\n"
(#59) Inline comments must start with a capital letter, digit or 3-dots sequence
(#59) Inline comments must end in full-stops, exclamation marks, or question marks
(#67) Inline comments must start with a capital letter, digit or 3-dots sequence
(#67) Inline comments must end in full-stops, exclamation marks, or question marks
(#68) Variable "option_list" must not contain underscores.
(#69) Inline comments must start with a capital letter, digit or 3-dots sequence
(#69) Inline comments must end in full-stops, exclamation marks, or question marks
(#70) Variable "option_list" must not contain underscores.
(#71) Inline comments must start with a capital letter, digit or 3-dots sequence
(#71) Inline comments must end in full-stops, exclamation marks, or question marks
(#75) A closing tag is not permitted at the end of a PHP file
filter/flowchart/filtersettings.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) Expected 1 space after asterisk; 0 found
(#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.".
(#4) 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.".
(#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/>.".
(#10) Expected 1 space after asterisk; 0 found
(#15) Expected 1 space after asterisk; 0 found
(#18) Expected 1 space after asterisk; 0 found
(#24) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
filter/flowchart/lang/en/filter_flowchart.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#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) Expected 1 space after asterisk; 0 found
(#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.".
(#4) 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.".
(#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/>.".
(#10) Expected 1 space after asterisk; 0 found
(#15) Expected 1 space after asterisk; 0 found
(#18) Expected 1 space after asterisk; 0 found
filter/flowchart/lang/ru/filter_flowchart.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#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) Expected 1 space after asterisk; 0 found
(#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.".
(#4) 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.".
(#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/>.".
(#10) Expected 1 space after asterisk; 0 found
(#15) Expected 1 space after asterisk; 0 found
(#18) Expected 1 space after asterisk; 0 found
filter/flowchart/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) Expected 1 space after asterisk; 0 found
(#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.".
(#4) 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.".
(#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/>.".
(#10) Expected 1 space after asterisk; 0 found
(#15) Expected 1 space after asterisk; 0 found
(#18) Expected 1 space after asterisk; 0 found
(#25) Inline comments must start with a capital letter, digit or 3-dots sequence
(#29) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(0 errors, 20 warnings)

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

filter/flowchart/js/flowchart-wrapper.js
(#55) Line is too long.
(#111) Expected '!==' and instead saw '!='.
(#114) Expected '===' and instead saw '=='.
(#115) ['display'] is better written in dot notation.
(#116) ['align'] is better written in dot notation.
(#125) ['x'] is better written in dot notation.
(#135) Line is too long.
(#139) Expected '!==' and instead saw '!='.
(#155) 'parseContent' was used before it was defined.
(#182) Expected '!==' and instead saw '!='.
(#183) Line is too long.
(#183) ['display'] is better written in dot notation.
(#183) ['align'] is better written in dot notation.
(#194) Expected '!==' and instead saw '!='.
(#204) Expected '===' and instead saw '=='.
(#204) Missing semicolon.
(#204) Unnecessary semicolon.
(#212) 'log' was used before it was defined.
(#215) Unnecessary semicolon.
(#203) 'filterFlowcharts' is defined but never used.

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(13 errors, 1 warnings)

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

filter/flowchart/filter.php
(#2) Empty line found after PHP open tag
(#1) File-level phpdocs block is not found
(#25) Function filter_flowchart::filter is not documented
(#31) Function filter_flowchart::setup is not documented
(#2) No one-line description found in phpdocs for class filter_flowchart
(#19) Package filter is not valid
filter/flowchart/filtersettings.php
(#2) No one-line description found in phpdocs for file
(#19) Package filter is not valid
filter/flowchart/lang/en/filter_flowchart.php
(#2) No one-line description found in phpdocs for file
(#19) Package filter is not valid
filter/flowchart/lang/ru/filter_flowchart.php
(#2) No one-line description found in phpdocs for file
(#19) Package filter is not valid
filter/flowchart/version.php
(#2) No one-line description found in phpdocs for file
(#19) Package filter is not valid

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]


Mustache template problems

(0 errors, 0 warnings)

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