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

(176 errors, 25 warnings)

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

local/resourcenotif/db/messages.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 "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#3) 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 "//".
(#4) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#8) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
local/resourcenotif/lang/en/local_resourcenotif.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 "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#3) 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 "//".
(#4) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#32) Inline comments must start with a capital letter, digit or 3-dots sequence
(#32) Inline comments must end in full-stops, exclamation marks, or question marks
(#32) No space found before comment text; expected "// admin setting" but found "//admin setting"
(#36) Inline comments must end in full-stops, exclamation marks, or question marks
(#36) No space found before comment text; expected "// Default message outputs" but found "//Default message outputs"
local/resourcenotif/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 "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#3) 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 "//".
(#4) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#8) Expected MOODLE_INTERNAL check or config.php inclusion
(#11) Variable "linkItem" must be all lower-case
(#11) Line exceeds 132 characters; contains 142 characters
(#18) Inline comments must start with a capital letter, digit or 3-dots sequence
(#18) Inline comments must end in full-stops, exclamation marks, or question marks
(#18) No space found before comment text; expected "// style Boost" but found "//style Boost"
(#19) Variable "linkItem" must be all lower-case
(#35) Inline comments must start with a capital letter, digit or 3-dots sequence
(#35) Inline comments must end in full-stops, exclamation marks, or question marks
(#35) No space found before comment text; expected "// code style Clean" but found "//code style Clean"
(#36) Variable "linkItem" must be all lower-case
local/resourcenotif/lib_resourcenotif.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 "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#3) 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 "//".
(#4) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#16) Expected MOODLE_INTERNAL check or config.php inclusion
(#71) Expected 1 space before "=>"; 0 found
(#147) Inline comments must end in full-stops, exclamation marks, or question marks
(#175) Variable "message_body" must not contain underscores.
(#175) Commas (,) must be followed by white space.
(#177) Variable "message_body" must not contain underscores.
(#177) Variable "message_body" must not contain underscores.
(#186) Variable "message_body" must not contain underscores.
(#186) Variable "message_body" must not contain underscores.
(#187) Variable "message_body" must not contain underscores.
(#187) Variable "message_body" must not contain underscores.
(#188) Variable "message_body" must not contain underscores.
(#199) Expected 1 space after "="; 0 found
(#290) Variable "listStudent" must be all lower-case
(#294) Variable "listStudent" must be all lower-case
(#297) Variable "listStudent" must be all lower-case
local/resourcenotif/resourcenotif.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 "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#3) 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 "//".
(#4) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#18) Expected 1 space before "=>"; 0 found
(#18) Expected 1 space after "=>"; 0 found
(#22) Expected 1 space before "=>"; 0 found
(#22) Expected 1 space after "=>"; 0 found
(#26) Expected 1 space before "=>"; 0 found
(#26) Expected 1 space after "=>"; 0 found
(#34) Expected 1 space before "=>"; 0 found
(#34) Expected 1 space after "=>"; 0 found
(#71) Variable "notifiedStudents" must be all lower-case
(#75) Variable "notifiedStudents" must be all lower-case
(#76) Variable "nbNotifiedStudents" must be all lower-case
(#76) Variable "notifiedStudents" must be all lower-case
(#78) Variable "nbNotifiedStudents" must be all lower-case
(#81) Variable "nbNotifiedStudents" must be all lower-case
(#85) Variable "nbNotifiedStudents" must be all lower-case
(#91) Expected 1 space before "=>"; 0 found
(#91) Expected 1 space after "=>"; 0 found
(#102) Variable "notifiedStudents" must be all lower-case
(#103) Variable "notifiedStudents" must be all lower-case
(#105) Usage of ELSEIF not allowed; use ELSE IF instead
(#108) Line indented incorrectly; expected at least 12 spaces, found 11
(#108) Expected 1 space after "="; 2 found
(#112) Line indented incorrectly; expected at least 12 spaces, found 11
(#112) Expected 1 space after "="; 2 found
(#114) Variable "grpNotifiedStudents" must be all lower-case
(#115) Variable "grpNotifiedStudents" must be all lower-case
(#116) Variable "grpNotifiedStudents" must be all lower-case
(#118) Usage of ELSEIF not allowed; use ELSE IF instead
(#121) Variable "notifiedS" must be all lower-case
(#123) Variable "notifiedS" must be all lower-case
(#125) Variable "notifiedS" must be all lower-case
local/resourcenotif/resourcenotif_form.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 "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#3) 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 "//".
(#4) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#21) Inline comments must start with a capital letter, digit or 3-dots sequence
(#21) Inline comments must end in full-stops, exclamation marks, or question marks
(#29) 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
(#29) No space found before comment text; expected "// recipients" but found "//recipients"
(#32) Variable "optionsSendAll" must be all lower-case
(#34) Variable "optionsSendAll" must be all lower-case
(#37) Variable "optionsSendAll" must be all lower-case
(#37) Line exceeds 132 characters; contains 147 characters
(#38) Expected "if (...) {\n"; found "if(...) {\n"
(#47) Commas (,) must be followed by white space.
(#52) Commas (,) must be followed by white space.
(#80) Variable "optionsSendAll" must be all lower-case
(#86) Inline comments must start with a capital letter, digit or 3-dots sequence
(#86) Inline comments must end in full-stops, exclamation marks, or question marks
(#86) No space found before comment text; expected "// message" but found "//message"
(#88) Line exceeds 132 characters; contains 133 characters
(#91) Line exceeds 132 characters; contains 134 characters
(#100) Commas (,) must be followed by white space.
(#102) Inline comments must start with a capital letter, digit or 3-dots sequence
(#102) No space found before comment text; expected "// -------------------------------------------------------------------------------" but found "//-------------------------------------------------------------------------------"
(#103) Inline comments must end in full-stops, exclamation marks, or question marks
local/resourcenotif/settings.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 "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#3) 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 "//".
(#4) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#8) This comment is 43% valid code; is this commented out code?
local/resourcenotif/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 "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#3) 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 "//".
(#4) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#12) Inline comments must end in full-stops, exclamation marks, or question marks
(#12) This comment is 50% valid code; is this commented out code?

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

(1 errors, 2 warnings)

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

local/resourcenotif/resourcenotif.css
(#8) Expected indentation of 4 spaces (indentation)
(#20) Unexpected unit (length-zero-no-unit)
(#23) Unexpected unit (length-zero-no-unit)

PHPDocs style problems

(17 errors, 0 warnings)

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

local/resourcenotif/db/messages.php
(#2) No one-line description found in phpdocs for file
local/resourcenotif/lang/en/local_resourcenotif.php
(#2) No one-line description found in phpdocs for file
(#3) Package local is not valid
local/resourcenotif/lib.php
(#8) Function local_resourcenotif_extend_navigation_course is not documented
(#2) No one-line description found in phpdocs for file
local/resourcenotif/lib_resourcenotif.php
(#2) No one-line description found in phpdocs for file
(#169) There is no description in phpdocs for function resourcenotif_get_email_body
(#90) Phpdocs for function resourcenotif_send_notification has incomplete parameters list
(#126) Phpdocs for function resourcenotif_send_email has incomplete parameters list
local/resourcenotif/resourcenotif.php
(#2) No one-line description found in phpdocs for file
local/resourcenotif/resourcenotif_form.php
(#14) Class local_resourcenotif_resourcenotif_form is not documented
(#15) Function local_resourcenotif_resourcenotif_form::definition is not documented
(#109) Function local_resourcenotif_resourcenotif_form::validation is not documented
(#117) Function local_resourcenotif_resourcenotif_form::validation_recipicent is not documented
(#2) No one-line description found in phpdocs for file
local/resourcenotif/settings.php
(#2) No one-line description found in phpdocs for file
local/resourcenotif/version.php
(#2) No one-line description found in phpdocs for file

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

(1 errors, 1 warnings)

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

Task "stylelint:css" failed. Use --force to continue.
Problems running grunt

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]