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, 1 warnings)

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

local/externaldisclaimer/externalDisclaimer.php
(#32) Expected MOODLE_INTERNAL check or config.php inclusion
(#40) Opening brace should be on the same line as the declaration
(#51) Opening brace should be on the same line as the declaration
(#56) Variable "jsonArgs" must be all lower-case
(#61) Opening brace should be on the same line as the declaration
(#72) Private method name "externalDisclaimer::createSettingCheckbox" must be in lower-case letters only
(#73) Opening brace should be on the same line as the declaration
(#74) Variable "fqName" must be all lower-case
(#77) Variable "fqName" must be all lower-case
(#80) Private method name "externalDisclaimer::createSettingTextArea" must be in lower-case letters only
(#81) Opening brace should be on the same line as the declaration
(#82) Variable "fqName" must be all lower-case
(#85) Variable "fqName" must be all lower-case
local/externaldisclaimer/index.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/externaldisclaimer/lang/en/local_externaldisclaimer.php
(#23) Whitespace found at end of line
local/externaldisclaimer/lib.php
(#26) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#29) function name "local_externalDisclaimer_extend_navigation" must be lower-case letters only
(#31) Variable "externalDisclaimer" must be all lower-case
(#32) Variable "externalDisclaimer" must be all lower-case
local/externaldisclaimer/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/>.".
(#16) Variable "externalDisclaimer" must be all lower-case
(#17) Variable "externalDisclaimer" must be all lower-case
local/externaldisclaimer/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/>.".
(#10) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.

Javascript coding style problems

(53 errors, 12 warnings)

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

local/externaldisclaimer/amd/src/externaldisclaimer.js
(#1) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#2) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#3) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#4) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#5) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#6) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#7) Unexpected space before function parentheses. (space-before-function-paren)
(#7) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#8) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#9) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#10) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#11) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#12) A space is required after ','. (comma-spacing)
(#12) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#13) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#14) Expected space or tab after '//' in comment. (spaced-comment)
(#14) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#15) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#16) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#17) Unexpected confirm. (no-alert)
(#17) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#18) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#19) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#20) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#21) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#22) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#23) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#24) 'i' is not defined. (no-undef)
(#24) Infix operators must be spaced. (space-infix-ops)
(#24) 'i' is not defined. (no-undef)
(#24) Infix operators must be spaced. (space-infix-ops)
(#24) Missing whitespace after semicolon. (semi-spacing)
(#24) 'i' is not defined. (no-undef)
(#24) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#25) Expected space(s) after "if". (keyword-spacing)
(#25) 'i' is not defined. (no-undef)
(#25) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#26) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#27) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#28) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#29) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#30) Missing semicolon. (semi)
(#30) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#31) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#32) 'i' is not defined. (no-undef)
(#32) Infix operators must be spaced. (space-infix-ops)
(#32) 'i' is not defined. (no-undef)
(#32) Infix operators must be spaced. (space-infix-ops)
(#32) Missing whitespace after semicolon. (semi-spacing)
(#32) 'i' is not defined. (no-undef)
(#32) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#33) Expected space(s) after "if". (keyword-spacing)
(#33) 'i' is not defined. (no-undef)
(#33) 'i' is not defined. (no-undef)
(#33) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#34) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#35) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#36) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#37) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#38) Missing semicolon. (semi)
(#38) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#39) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#40) Missing semicolon. (semi)
(#40) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#41) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(16 errors, 0 warnings)

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

local/externaldisclaimer/externalDisclaimer.php
(#32) Class externalDisclaimer is not documented
(#39) Function externalDisclaimer::__construct is not documented
(#50) Function externalDisclaimer::inject is not documented
(#60) Function externalDisclaimer::settings is not documented
(#72) Function externalDisclaimer::createSettingCheckbox is not documented
(#80) Function externalDisclaimer::createSettingTextArea is not documented
(#36) Variable externalDisclaimer::$enabled is not documented
(#37) Variable externalDisclaimer::$config is not documented
(#34) Constant externalDisclaimer::PLGNAME is not documented
(#17) No one-line description found in phpdocs for file
local/externaldisclaimer/index.php
(#2) No one-line description found in phpdocs for file
local/externaldisclaimer/lang/en/local_externaldisclaimer.php
(#17) No one-line description found in phpdocs for file
local/externaldisclaimer/lib.php
(#29) Function local_externalDisclaimer_extend_navigation is not documented
(#17) No one-line description found in phpdocs for file
local/externaldisclaimer/settings.php
(#2) No one-line description found in phpdocs for file
local/externaldisclaimer/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 "eslint:amd" 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]