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

(145 errors, 16 warnings)

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

local/onenote/classes/api/base.php
(#129) Line exceeds 132 characters; contains 140 characters
(#412) Inline comments must end in full-stops, exclamation marks, or question marks
(#415) Inline comments must end in full-stops, exclamation marks, or question marks
(#420) Inline comments must end in full-stops, exclamation marks, or question marks
(#423) Inline comments must end in full-stops, exclamation marks, or question marks
(#443) Inline comments must end in full-stops, exclamation marks, or question marks
(#446) Inline comments must end in full-stops, exclamation marks, or question marks
(#451) Inline comments must end in full-stops, exclamation marks, or question marks
(#454) Inline comments must end in full-stops, exclamation marks, or question marks
(#474) Inline comments must end in full-stops, exclamation marks, or question marks
(#477) Inline comments must end in full-stops, exclamation marks, or question marks
(#821) Line exceeds 132 characters; contains 136 characters
(#822) Line exceeds 132 characters; contains 139 characters
(#859) Line exceeds 132 characters; contains 140 characters
(#923) Empty CATCH statement detected
local/onenote/classes/privacy/provider.php
(#31) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#32) Closing brace must be on a line by itself
(#34) Duplicate interface name "local_onenote\privacy\local_onenote_userlist" found; first defined in /var/lib/jenkins/git_repositories/prechecker/local/onenote/classes/privacy/provider.php on line 32
(#34) Closing brace must be on a line by itself
local/onenote/classes/utils.php
(#40) The use of function print_r() is forbidden
local/onenote/lang/cs/local_onenote.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#3) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#3) Line 12 of the opening comment must start "//".
(#3) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
local/onenote/lang/de/local_onenote.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#3) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#3) Line 12 of the opening comment must start "//".
(#3) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
local/onenote/lang/es/local_onenote.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#3) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#3) Line 12 of the opening comment must start "//".
(#3) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
local/onenote/lang/fi/local_onenote.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#3) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#3) Line 12 of the opening comment must start "//".
(#3) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
local/onenote/lang/fr/local_onenote.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#3) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#3) Line 12 of the opening comment must start "//".
(#3) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
local/onenote/lang/it/local_onenote.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#3) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#3) Line 12 of the opening comment must start "//".
(#3) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
local/onenote/lang/ja/local_onenote.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#3) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#3) Line 12 of the opening comment must start "//".
(#3) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
local/onenote/lang/nl/local_onenote.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#3) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#3) Line 12 of the opening comment must start "//".
(#3) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
local/onenote/lang/pl/local_onenote.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#3) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#3) Line 12 of the opening comment must start "//".
(#3) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
local/onenote/lang/pt_br/local_onenote.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#3) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#3) Line 12 of the opening comment must start "//".
(#3) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
local/onenote/tests/onenoteapi_test.php
(#351) Line exceeds 132 characters; contains 134 characters

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

(8 errors, 3 warnings)

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

local/onenote/styles.css
(#1) Expected single space before "{" (block-opening-brace-space-before)
(#15) Expected single space before "{" (block-opening-brace-space-before)
(#7) Expected "#80397B" to be "#80397b" (color-hex-case)
(#17) Unexpected !important (declaration-no-important)
(#4) Unexpected unit (length-zero-no-unit)
(#11) Unexpected unit (length-zero-no-unit)
(#15) Expected newline after "," (selector-list-comma-newline-after)
(#15) Expected newline after "," (selector-list-comma-newline-after)
(#3) Expected indentation of 4 spaces (indentation)
(#4) Expected indentation of 4 spaces (indentation)
(#5) Expected indentation of 4 spaces (indentation)

PHPDocs style problems

(48 errors, 0 warnings)

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

local/onenote/classes/api/base.php
(#76) Phpdocs for function base::geturl has incomplete parameters list
(#250) Phpdocs for function base::download_page has incomplete parameters list
(#589) Phpdocs for function base::upsert_user_section has incomplete parameters list
(#1198) Phpdocs for function base::process_br_tags has incomplete parameters list
(#1229) Phpdocs for function base::handle_garbage_chars has incomplete parameters list
(#1308) Phpdocs for function base::process_tags has incomplete parameters list
(#1384) Phpdocs for function base::process_span_tags has incomplete parameters list
local/onenote/classes/api/msaccount.php
(#30) Class msaccount is not documented
(#91) Phpdocs for function msaccount::geturl has incomplete parameters list
local/onenote/classes/api/o365.php
(#26) Class o365 is not documented
(#17) No one-line description found in phpdocs for file
(#60) Phpdocs for function o365::geturl has incomplete parameters list
(#18) Package local_o365 is not valid
local/onenote/classes/privacy/provider.php
(#37) Class provider is not documented
(#17) No one-line description found in phpdocs for file
(#209) Phpdocs for function provider::get_table_user_map has incomplete parameters list
local/onenote/classes/utils.php
(#30) Function utils::tostring is not documented
(#17) No one-line description found in phpdocs for file
(#47) Phpdocs for function utils::debug has incomplete parameters list
local/onenote/db/upgrade.php
(#17) No one-line description found in phpdocs for file
local/onenote/lang/cs/local_onenote.php
(#2) File-level phpdocs block is not found
local/onenote/lang/de/local_onenote.php
(#2) File-level phpdocs block is not found
local/onenote/lang/es/local_onenote.php
(#2) File-level phpdocs block is not found
local/onenote/lang/fi/local_onenote.php
(#2) File-level phpdocs block is not found
local/onenote/lang/fr/local_onenote.php
(#2) File-level phpdocs block is not found
local/onenote/lang/it/local_onenote.php
(#2) File-level phpdocs block is not found
local/onenote/lang/ja/local_onenote.php
(#2) File-level phpdocs block is not found
local/onenote/lang/nl/local_onenote.php
(#2) File-level phpdocs block is not found
local/onenote/lang/pl/local_onenote.php
(#2) File-level phpdocs block is not found
local/onenote/lang/pt_br/local_onenote.php
(#2) File-level phpdocs block is not found
local/onenote/onenote_actions.php
(#17) No one-line description found in phpdocs for file
local/onenote/tests/generator/lib.php
(#25) Class repository_onenote_generator is not documented
(#17) File-level phpdocs block does not have @license tag
local/onenote/tests/onenoteapi_test.php
(#51) Variable local_onenote_onenoteapi_testcase::$onenoteapi is not documented
(#53) Variable local_onenote_onenoteapi_testcase::$user is not documented
(#55) Variable local_onenote_onenoteapi_testcase::$user1 is not documented
(#57) Variable local_onenote_onenoteapi_testcase::$course1 is not documented
(#59) Variable local_onenote_onenoteapi_testcase::$course2 is not documented
(#61) Variable local_onenote_onenoteapi_testcase::$cm is not documented
(#63) Variable local_onenote_onenoteapi_testcase::$cm1 is not documented
(#65) Variable local_onenote_onenoteapi_testcase::$context is not documented
(#67) Variable local_onenote_onenoteapi_testcase::$context1 is not documented
(#69) Variable local_onenote_onenoteapi_testcase::$assign is not documented
(#71) Variable local_onenote_onenoteapi_testcase::$assign1 is not documented
(#73) Variable local_onenote_onenoteapi_testcase::$config is not documented
(#17) No one-line description found in phpdocs for file
(#125) Phpdocs for function local_onenote_onenoteapi_testcase::set_user has incomplete parameters list
(#449) Phpdocs for function local_onenote_onenoteapi_testcase::create_submission_feedback has incomplete parameters list

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]