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

(84 errors, 13 warnings)

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

mod/clearlesson/classes/task/clearlesson_task.php
(#36) Expected login check (require_login, require_course_login, admin_externalpage_setup) following config inclusion. None found.
mod/clearlesson/lib/php-jws/Algorithm/AlgorithmInterface.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".
(#3) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#4) Expected MOODLE_INTERNAL check or config.php inclusion
(#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/>.".
mod/clearlesson/lib/php-jws/Algorithm/HMACAlgorithm.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".
(#3) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#4) Expected MOODLE_INTERNAL check or config.php inclusion
(#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/>.".
(#6) Member variable "hashAlgo" must be all lower-case
(#8) Variable "hashAlgo" must be all lower-case
(#9) Opening brace should be on the same line as the declaration
(#10) Variable "hashAlgo" must be all lower-case
(#14) Opening brace should be on the same line as the declaration
(#19) Opening brace should be on the same line as the declaration
mod/clearlesson/lib/php-jws/Algorithm/NoneAlgorithm.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#5) Expected MOODLE_INTERNAL check or config.php inclusion
(#9) Opening brace should be on the same line as the declaration
(#14) Opening brace should be on the same line as the declaration
mod/clearlesson/lib/php-jws/Algorithm/RSA_SSA_PKCSv15.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#5) Expected MOODLE_INTERNAL check or config.php inclusion
(#7) Member variable "sigAlgo" must be all lower-case
(#9) Variable "sigAlgo" must be all lower-case
(#10) Opening brace should be on the same line as the declaration
(#11) Variable "sigAlgo" must be all lower-case
(#20) Opening brace should be on the same line as the declaration
(#36) Opening brace should be on the same line as the declaration
mod/clearlesson/lib/php-jws/Exception/InvalidSignatureException.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#5) Expected MOODLE_INTERNAL check or config.php inclusion
mod/clearlesson/lib/php-jws/Exception/JWSException.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#5) Expected MOODLE_INTERNAL check or config.php inclusion
mod/clearlesson/lib/php-jws/Exception/MalformedSignatureException.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#5) Expected MOODLE_INTERNAL check or config.php inclusion
mod/clearlesson/lib/php-jws/Exception/UnexpectedAlgorithmException.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#5) Expected MOODLE_INTERNAL check or config.php inclusion
mod/clearlesson/lib/php-jws/Exception/UnspecifiedAlgorithmException.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#5) Expected MOODLE_INTERNAL check or config.php inclusion
mod/clearlesson/lib/php-jws/Exception/UnsupportedAlgorithmException.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#5) Expected MOODLE_INTERNAL check or config.php inclusion
mod/clearlesson/lib/php-jws/Util/Base64Url.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".
(#3) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#4) Expected MOODLE_INTERNAL check or config.php inclusion
(#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) Opening brace should be on the same line as the declaration
(#22) Opening brace should be on the same line as the declaration
mod/clearlesson/lib/php-jws/Util/Json.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".
(#3) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#4) Expected MOODLE_INTERNAL check or config.php inclusion
(#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/>.".
(#7) Opening brace should be on the same line as the declaration
(#18) Opening brace should be on the same line as the declaration
(#32) Protected method name "Json::transformJsonError" must be in lower-case letters only
(#33) Opening brace should be on the same line as the declaration

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

(12 errors, 0 warnings)

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

mod/clearlesson/styles.css
(#9) Unexpected !important (declaration-no-important)
(#2) Expected indentation of 4 spaces (indentation)
(#3) Expected indentation of 4 spaces (indentation)
(#4) Expected indentation of 4 spaces (indentation)
(#5) Expected indentation of 4 spaces (indentation)
(#6) Expected indentation of 4 spaces (indentation)
(#7) Expected indentation of 4 spaces (indentation)
(#8) Expected indentation of 4 spaces (indentation)
(#9) Expected indentation of 4 spaces (indentation)
(#12) Expected indentation of 4 spaces (indentation)
(#13) Expected indentation of 4 spaces (indentation)
(#14) Expected indentation of 4 spaces (indentation)

PHPDocs style problems

(92 errors, 9 warnings)

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

mod/clearlesson/backup/moodle2/backup_clearlesson_activity_task.class.php
(#30) Class backup_clearlesson_activity_task does not have @copyright tag
(#30) Class backup_clearlesson_activity_task does not have @license tag
mod/clearlesson/backup/moodle2/backup_clearlesson_stepslib.php
(#32) Function backup_clearlesson_activity_structure_step::define_structure is not documented
(#27) Class backup_clearlesson_activity_structure_step does not have @copyright tag
(#27) Class backup_clearlesson_activity_structure_step does not have @license tag
mod/clearlesson/backup/moodle2/restore_clearlesson_activity_task.class.php
(#17) No one-line description found in phpdocs for file
(#28) No one-line description found in phpdocs for class restore_clearlesson_activity_task
(#28) Class restore_clearlesson_activity_task does not have @copyright tag
(#28) Class restore_clearlesson_activity_task does not have @license tag
mod/clearlesson/backup/moodle2/restore_clearlesson_stepslib.php
(#33) Function restore_clearlesson_activity_structure_step::define_structure is not documented
(#45) Function restore_clearlesson_activity_structure_step::process_clearlesson is not documented
(#56) Function restore_clearlesson_activity_structure_step::process_clearlesson_track is not documented
(#69) Function restore_clearlesson_activity_structure_step::after_execute is not documented
(#17) No one-line description found in phpdocs for file
(#28) Class restore_clearlesson_activity_structure_step does not have @copyright tag
(#28) Class restore_clearlesson_activity_structure_step does not have @license tag
mod/clearlesson/classes/event/course_module_viewed.php
(#50) Function course_module_viewed::get_objectid_mapping is not documented
mod/clearlesson/classes/external.php
(#59) Phpdocs for function mod_clearlesson_external::view_clearlesson has incomplete parameters list
mod/clearlesson/classes/task/clearlesson_task.php
(#28) Class clearlesson_task is not documented
(#29) Function clearlesson_task::get_name is not documented
(#32) Function clearlesson_task::execute is not documented
(#35) Function clearlesson_task::sync is not documented
mod/clearlesson/db/install.php
(#32) Function xmldb_clearlesson_install is not documented
mod/clearlesson/db/upgrade.php
(#47) Function xmldb_clearlesson_upgrade is not documented
mod/clearlesson/index.php
(#20) Package mod_url is not valid
mod/clearlesson/lib.php
(#354) Function clearlesson_redirect_post is not documented
(#374) Function clearlesson_build_url is not documented
(#384) Function clearlesson_set_header is not documented
(#390) Function clearlesson_set_body is not documented
(#67) Phpdocs for function clearlesson_reset_userdata has incomplete parameters list
(#240) Phpdocs for function clearlesson_export_contents has incomplete parameters list
(#310) Phpdocs for function clearlesson_view has incomplete parameters list
(#20) Package clearlesson is not valid
mod/clearlesson/lib/php-jws/Algorithm/AlgorithmInterface.php
(#2) File-level phpdocs block is not found
(#6) There is no description in phpdocs for function sign
(#13) There is no description in phpdocs for function verify
(#6) Package is not specified for function sign. It is also not specified in file-level phpdocs
(#13) Package is not specified for function verify. It is also not specified in file-level phpdocs
mod/clearlesson/lib/php-jws/Algorithm/HMACAlgorithm.php
(#2) File-level phpdocs block is not found
(#4) Class HMACAlgorithm is not documented
(#8) Function HMACAlgorithm::__construct is not documented
(#13) Function HMACAlgorithm::sign is not documented
(#18) Function HMACAlgorithm::verify is not documented
(#6) Variable HMACAlgorithm::$hashAlgo is not documented
(#4) Package is not specified for class HMACAlgorithm. It is also not specified in file-level phpdocs
mod/clearlesson/lib/php-jws/Algorithm/NoneAlgorithm.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#5) Class NoneAlgorithm is not documented
(#8) Function NoneAlgorithm::sign is not documented
(#13) Function NoneAlgorithm::verify is not documented
(#5) Package is not specified for class NoneAlgorithm. It is also not specified in file-level phpdocs
mod/clearlesson/lib/php-jws/Algorithm/RSA_SSA_PKCSv15.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#5) Class RSA_SSA_PKCSv15 is not documented
(#9) Function RSA_SSA_PKCSv15::__construct is not documented
(#7) Variable RSA_SSA_PKCSv15::$sigAlgo is not documented
(#14) There is no description in phpdocs for function sign
(#29) There is no description in phpdocs for function verify
(#5) Package is not specified for class RSA_SSA_PKCSv15. It is also not specified in file-level phpdocs
mod/clearlesson/lib/php-jws/Exception/InvalidSignatureException.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#5) Class InvalidSignatureException is not documented
(#5) Package is not specified for class InvalidSignatureException. It is also not specified in file-level phpdocs
mod/clearlesson/lib/php-jws/Exception/JWSException.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#5) Class JWSException is not documented
(#5) Package is not specified for class JWSException. It is also not specified in file-level phpdocs
mod/clearlesson/lib/php-jws/Exception/MalformedSignatureException.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#5) Class MalformedSignatureException is not documented
(#5) Package is not specified for class MalformedSignatureException. It is also not specified in file-level phpdocs
mod/clearlesson/lib/php-jws/Exception/UnexpectedAlgorithmException.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#5) Class UnexpectedAlgorithmException is not documented
(#5) Package is not specified for class UnexpectedAlgorithmException. It is also not specified in file-level phpdocs
mod/clearlesson/lib/php-jws/Exception/UnspecifiedAlgorithmException.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#5) Class UnspecifiedAlgorithmException is not documented
(#5) Package is not specified for class UnspecifiedAlgorithmException. It is also not specified in file-level phpdocs
mod/clearlesson/lib/php-jws/Exception/UnsupportedAlgorithmException.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#5) Class UnsupportedAlgorithmException is not documented
(#5) Package is not specified for class UnsupportedAlgorithmException. It is also not specified in file-level phpdocs
mod/clearlesson/lib/php-jws/Util/Base64Url.php
(#2) File-level phpdocs block is not found
(#4) Class Base64Url is not documented
(#8) Phpdocs for function Base64Url::encode has incomplete parameters list
(#18) Phpdocs for function Base64Url::decode has incomplete parameters list
(#4) Package is not specified for class Base64Url. It is also not specified in file-level phpdocs
mod/clearlesson/lib/php-jws/Util/Json.php
(#2) File-level phpdocs block is not found
(#4) Class Json is not documented
(#6) Function Json::encode is not documented
(#17) Function Json::decode is not documented
(#4) Package is not specified for class Json. It is also not specified in file-level phpdocs
mod/clearlesson/locallib.php
(#34) Phpdocs for function clearlesson_appears_valid_clearlesson has incomplete parameters list
(#68) Phpdocs for function clearlesson_get_full_clearlesson has incomplete parameters list
(#473) Phpdocs for function clearlesson_guess_icon has incomplete parameters list
(#122) Not recommended phpdocs tag @internal used
mod/clearlesson/mod_form.php
(#29) Class mod_clearlesson_mod_form is not documented
(#30) Function mod_clearlesson_mod_form::definition is not documented
(#111) Function mod_clearlesson_mod_form::data_preprocessing is not documented
(#135) Function mod_clearlesson_mod_form::validation is not documented

Update savepoints problems

(2 errors, 0 warnings)

This section shows problems detected with the handling of upgrade savepoints [More info]

mod/clearlesson/db/upgrade.php
Detected more 'if' blocks (1) than 'savepoint' calls (0)
version 2017091202 is missing corresponding savepoint call

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

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

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]