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

(191 errors, 20 warnings)

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

local/resourcenotif/classes/notification.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/>.".
(#125) Inline comments must end in full-stops, exclamation marks, or question marks
(#154) Variable "message_body" must not contain underscores.
(#154) Commas (,) must be followed by white space.
(#156) Variable "message_body" must not contain underscores.
(#156) Variable "message_body" must not contain underscores.
(#165) Variable "message_body" must not contain underscores.
(#165) Variable "message_body" must not contain underscores.
(#166) Variable "message_body" must not contain underscores.
(#166) Variable "message_body" must not contain underscores.
(#167) Variable "message_body" must not contain underscores.
(#178) Expected 1 space after "="; 0 found
local/resourcenotif/classes/notifstudents.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) Opening brace should be on the same line as the declaration
(#31) Expected 1 space before "=>"; 0 found
(#87) Variable "listStudent" must be all lower-case
(#91) Variable "listStudent" must be all lower-case
(#94) Variable "listStudent" must be all lower-case
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/>.".
(#31) Inline comments must start with a capital letter, digit or 3-dots sequence
(#31) Inline comments must end in full-stops, exclamation marks, or question marks
(#31) No space found before comment text; expected "// admin setting" but found "//admin setting"
(#35) Inline comments must end in full-stops, exclamation marks, or question marks
(#35) 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/>.".
(#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/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/>.".
(#19) Expected 1 space before "=>"; 0 found
(#19) Expected 1 space after "=>"; 0 found
(#23) Expected 1 space before "=>"; 0 found
(#23) Expected 1 space after "=>"; 0 found
(#27) Expected 1 space before "=>"; 0 found
(#27) Expected 1 space after "=>"; 0 found
(#35) Expected 1 space before "=>"; 0 found
(#35) Expected 1 space after "=>"; 0 found
(#76) Variable "notifiedStudents" must be all lower-case
(#77) Variable "nbNotifiedStudents" must be all lower-case
(#77) Variable "notifiedStudents" must be all lower-case
(#79) Variable "nbNotifiedStudents" must be all lower-case
(#82) Variable "nbNotifiedStudents" must be all lower-case
(#90) Variable "nbNotifiedStudents" must be all lower-case
(#97) Expected 1 space before "=>"; 0 found
(#97) Expected 1 space after "=>"; 0 found
(#108) Variable "notifiedStudents" must be all lower-case
(#109) Variable "notifiedStudents" must be all lower-case
(#111) Usage of ELSEIF not allowed; use ELSE IF instead
(#114) Line indented incorrectly; expected at least 12 spaces, found 11
(#114) Expected 1 space after "="; 2 found
(#118) Line indented incorrectly; expected at least 12 spaces, found 11
(#118) Expected 1 space after "="; 2 found
(#120) Variable "grpNotifiedStudents" must be all lower-case
(#121) Variable "grpNotifiedStudents" must be all lower-case
(#122) Variable "grpNotifiedStudents" must be all lower-case
(#124) Usage of ELSEIF not allowed; use ELSE IF instead
(#127) Variable "notifiedS" must be all lower-case
(#129) Variable "notifiedS" must be all lower-case
(#131) 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/>.".
(#11) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#20) Inline comments must start with a capital letter, digit or 3-dots sequence
(#20) Inline comments must end in full-stops, exclamation marks, or question marks
(#28) Inline comments must start with a capital letter, digit or 3-dots sequence
(#28) Inline comments must end in full-stops, exclamation marks, or question marks
(#28) No space found before comment text; expected "// recipients" but found "//recipients"
(#31) Variable "optionsSendAll" must be all lower-case
(#33) Variable "optionsSendAll" must be all lower-case
(#36) Variable "optionsSendAll" must be all lower-case
(#36) Line exceeds 132 characters; contains 146 characters
(#37) Expected "if (...) {\n"; found "if(...) {\n"
(#49) Commas (,) must be followed by white space.
(#54) Commas (,) must be followed by white space.
(#81) Variable "optionsSendAll" must be all lower-case
(#87) Inline comments must start with a capital letter, digit or 3-dots sequence
(#87) Inline comments must end in full-stops, exclamation marks, or question marks
(#87) No space found before comment text; expected "// message" but found "//message"
(#89) Line exceeds 132 characters; contains 133 characters
(#92) Line exceeds 132 characters; contains 134 characters
(#101) Commas (,) must be followed by white space.
(#103) Inline comments must start with a capital letter, digit or 3-dots sequence
(#103) No space found before comment text; expected "// -------------------------------------------------------------------------------" but found "//-------------------------------------------------------------------------------"
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 50% 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/>.".

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
(#19) Unexpected unit (length-zero-no-unit)
(#22) Unexpected unit (length-zero-no-unit)
(#7) Expected indentation of 4 spaces (indentation)

PHPDocs style problems

(22 errors, 0 warnings)

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

local/resourcenotif/classes/notification.php
(#10) Class notification is not documented
(#2) No one-line description found in phpdocs for file
(#148) There is no description in phpdocs for function get_email_body
(#68) Phpdocs for function notification::send_notification has incomplete parameters list
(#104) Phpdocs for function notification::send_email has incomplete parameters list
local/resourcenotif/classes/notifstudents.php
(#10) Class notifstudents is not documented
(#15) Function notifstudents::__construct is not documented
(#13) Variable notifstudents::$courseid is not documented
(#2) No one-line description found in phpdocs for file
(#24) Phpdocs for function notifstudents::get_users_from_course has incomplete parameters list
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
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/resourcenotif.php
(#2) No one-line description found in phpdocs for file
local/resourcenotif/resourcenotif_form.php
(#13) Class local_resourcenotif_resourcenotif_form is not documented
(#14) Function local_resourcenotif_resourcenotif_form::definition is not documented
(#110) Function local_resourcenotif_resourcenotif_form::validation is not documented
(#118) Function local_resourcenotif_resourcenotif_form::validation_recipient 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]

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

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]


Gherkin .feature problems

(0 errors, 0 warnings)

This section shows problems detected in behat .feature files [More info]