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

(16 errors, 3 warnings)

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

blocks/catalogue/block_catalogue.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
blocks/catalogue/chooseplace.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
blocks/catalogue/db/upgrade.php
(#35) Expected MOODLE_INTERNAL check or config.php inclusion
blocks/catalogue/index.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
blocks/catalogue/lib.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#38) Expected MOODLE_INTERNAL check or config.php inclusion
blocks/catalogue/list/activities/blockcatalogue.list.php
(#34) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
blocks/catalogue/list/blocks/blockcatalogue.list.php
(#34) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
blocks/catalogue/list/customlabels/blockcatalogue.list.php
(#34) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
blocks/catalogue/list/enrols/blockcatalogue.list.php
(#34) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
blocks/catalogue/list/grades/blockcatalogue.list.php
(#34) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
blocks/catalogue/list/list.class.php
(#45) Expected MOODLE_INTERNAL check or config.php inclusion
blocks/catalogue/list/mods/blockcatalogue.list.php
(#34) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
blocks/catalogue/list/reports/blockcatalogue.list.php
(#34) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
blocks/catalogue/list/resources/blockcatalogue.list.php
(#34) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
blocks/catalogue/list/sections/blockcatalogue.list.php
(#34) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
blocks/catalogue/settings.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#34) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
blocks/catalogue/toggle.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"

Javascript coding style problems

(19 errors, 10 warnings)

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

blocks/catalogue/js/block_catalogue.js
(#36) Missing JSDoc comment. (require-jsdoc)
(#36) 'flipflop' is defined but never used (no-unused-vars)
(#44) Missing JSDoc comment. (require-jsdoc)
(#44) Missing space before opening brace. (space-before-blocks)
(#47) Expected space(s) after "if". (keyword-spacing)
(#49) 'ActiveXObject' is not defined. (no-undef)
(#51) 'ActiveXObject' is not defined. (no-undef)
(#54) Unexpected alert. (no-alert)
(#59) Missing JSDoc comment. (require-jsdoc)
(#59) 'showdescr' is defined but never used (no-unused-vars)
(#60) Unexpected alert. (no-alert)
(#63) Missing JSDoc comment. (require-jsdoc)
(#63) 'toggle' is defined but never used (no-unused-vars)
(#66) Expected space(s) after "if". (keyword-spacing)
(#67) 'response' is not defined. (no-undef)
(#68) 'newdata' is not defined. (no-undef)
(#68) 'response' is not defined. (no-undef)
(#69) 'docelementid' is not defined. (no-undef)
(#70) 'docelementid' is not defined. (no-undef)
(#70) 'newdata' is not defined. (no-undef)
(#71) 'newdata' is not defined. (no-undef)
(#72) 'favzoneid' is not defined. (no-undef)
(#73) 'favzoneid' is not defined. (no-undef)
(#73) 'newdata' is not defined. (no-undef)
(#76) Missing semicolon. (semi)
(#78) A space is required after ','. (comma-spacing)
(#79) Line 79 exceeds the maximum line length of 132. (max-len)
(#79) 'args' is not defined. (no-undef)
(#80) 'args' is not defined. (no-undef)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(66 errors, 77 warnings)

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

blocks/catalogue/block_catalogue.php
(#43) Class block_catalogue is not documented
(#45) Function block_catalogue::init is not documented
(#51) Function block_catalogue::specialization is not documented
(#55) Function block_catalogue::applicable_formats is not documented
(#59) Function block_catalogue::get_content is not documented
(#89) Function block_catalogue::has_config is not documented
(#17) No one-line description found in phpdocs for file
(#17) File-level phpdocs block does not have @copyright tag
blocks/catalogue/chooseplace.php
(#17) No one-line description found in phpdocs for file
(#17) File-level phpdocs block does not have @copyright tag
blocks/catalogue/db/access.php
(#17) No one-line description found in phpdocs for file
blocks/catalogue/db/upgrade.php
(#35) Function xmldb_block_catalogue_upgrade is not documented
(#17) No one-line description found in phpdocs for file
blocks/catalogue/index.php
(#17) No one-line description found in phpdocs for file
(#17) File-level phpdocs block does not have @copyright tag
blocks/catalogue/lang/en/block_catalogue.php
(#17) No one-line description found in phpdocs for file
blocks/catalogue/lib.php
(#17) No one-line description found in phpdocs for file
(#34) Phpdocs for function block_catalogue_all_favorites has incomplete parameters list
(#71) Phpdocs for function block_catalogue_display_category has incomplete parameters list
(#162) Phpdocs for function block_catalogue_display_tabs has incomplete parameters list
(#218) Phpdocs for function block_catalogue_extract_titles has incomplete parameters list
(#246) Phpdocs for function block_catalogue_get_listnames has incomplete parameters list
(#307) Phpdocs for function block_catalogue_main_table has incomplete parameters list
(#432) Phpdocs for function block_catalogue_show_favorites has incomplete parameters list
(#17) File-level phpdocs block does not have @copyright tag
(#161) Not recommended phpdocs tag @global used
(#206) Not recommended phpdocs tag @global used
(#245) Not recommended phpdocs tag @global used
(#265) Not recommended phpdocs tag @global used
(#490) Not recommended phpdocs tag @global used
(#490) Not recommended phpdocs tag @global used
(#535) Not recommended phpdocs tag @global used
(#535) Not recommended phpdocs tag @global used
blocks/catalogue/list/activities/blockcatalogue.list.php
(#36) Class blockcatalogue_list_activities is not documented
(#37) Function blockcatalogue_list_activities::__construct is not documented
(#17) No one-line description found in phpdocs for file
(#17) File-level phpdocs block does not have @copyright tag
(#53) Not recommended phpdocs tag @global used
(#69) Not recommended phpdocs tag @global used
(#69) Not recommended phpdocs tag @global used
(#91) Not recommended phpdocs tag @global used
(#91) Not recommended phpdocs tag @global used
(#125) Not recommended phpdocs tag @global used
(#154) Not recommended phpdocs tag @global used
(#154) Not recommended phpdocs tag @global used
blocks/catalogue/list/blocks/blockcatalogue.list.php
(#36) Class blockcatalogue_list_blocks is not documented
(#38) Function blockcatalogue_list_blocks::__construct is not documented
(#17) No one-line description found in phpdocs for file
(#203) Phpdocs for function blockcatalogue_list_blocks::sortout has incomplete parameters list
(#17) File-level phpdocs block does not have @copyright tag
(#54) Not recommended phpdocs tag @global used
(#75) Not recommended phpdocs tag @global used
(#106) Not recommended phpdocs tag @global used
(#106) Not recommended phpdocs tag @global used
(#142) Not recommended phpdocs tag @global used
(#171) Not recommended phpdocs tag @global used
(#171) Not recommended phpdocs tag @global used
(#202) Not recommended phpdocs tag @global used
(#219) Not recommended phpdocs tag @global used
(#219) Not recommended phpdocs tag @global used
blocks/catalogue/list/customlabels/blockcatalogue.list.php
(#40) Class blockcatalogue_list_customlabels is not documented
(#41) Function blockcatalogue_list_customlabels::__construct is not documented
(#17) No one-line description found in phpdocs for file
(#108) Phpdocs for function blockcatalogue_list_customlabels::get_first_icon has incomplete parameters list
(#129) Phpdocs for function blockcatalogue_list_customlabels::get_local_data has incomplete parameters list
(#169) Phpdocs for function blockcatalogue_list_customlabels::sortout has incomplete parameters list
(#17) File-level phpdocs block does not have @copyright tag
(#60) Not recommended phpdocs tag @global used
(#76) Not recommended phpdocs tag @global used
(#107) Not recommended phpdocs tag @global used
(#128) Not recommended phpdocs tag @global used
(#168) Not recommended phpdocs tag @global used
(#189) Not recommended phpdocs tag @global used
(#189) Not recommended phpdocs tag @global used
blocks/catalogue/list/enrols/blockcatalogue.list.php
(#36) Class blockcatalogue_list_enrols is not documented
(#37) Function blockcatalogue_list_enrols::__construct is not documented
(#17) No one-line description found in phpdocs for file
(#129) Phpdocs for function blockcatalogue_list_enrols::get_local_data has incomplete parameters list
(#17) File-level phpdocs block does not have @copyright tag
(#62) Not recommended phpdocs tag @global used
(#128) Not recommended phpdocs tag @global used
(#179) Not recommended phpdocs tag @global used
(#179) Not recommended phpdocs tag @global used
blocks/catalogue/list/grades/blockcatalogue.list.php
(#43) Function blockcatalogue_list_grades::__construct is not documented
(#17) No one-line description found in phpdocs for file
(#71) Phpdocs for function blockcatalogue_list_grades::enlist has incomplete parameters list
(#91) Not recommended phpdocs tag @global used
(#114) Not recommended phpdocs tag @global used
(#147) Not recommended phpdocs tag @global used
(#235) Not recommended phpdocs tag @global used
(#235) Not recommended phpdocs tag @global used
blocks/catalogue/list/list.class.php
(#17) No one-line description found in phpdocs for file
(#43) Not recommended phpdocs tag @abstract used
(#148) Not recommended phpdocs tag @global used
(#164) Not recommended phpdocs tag @global used
(#265) Not recommended phpdocs tag @global used
(#299) Not recommended phpdocs tag @global used
(#347) Not recommended phpdocs tag @global used
(#347) Not recommended phpdocs tag @global used
(#399) Not recommended phpdocs tag @global used
(#495) Not recommended phpdocs tag @global used
blocks/catalogue/list/mods/blockcatalogue.list.php
(#36) Class blockcatalogue_list_mods is not documented
(#37) Function blockcatalogue_list_mods::__construct is not documented
(#17) No one-line description found in phpdocs for file
(#17) File-level phpdocs block does not have @copyright tag
(#53) Not recommended phpdocs tag @global used
(#69) Not recommended phpdocs tag @global used
(#69) Not recommended phpdocs tag @global used
(#91) Not recommended phpdocs tag @global used
(#91) Not recommended phpdocs tag @global used
(#125) Not recommended phpdocs tag @global used
(#155) Not recommended phpdocs tag @global used
(#155) Not recommended phpdocs tag @global used
blocks/catalogue/list/reports/blockcatalogue.list.php
(#36) Class blockcatalogue_list_reports is not documented
(#37) Function blockcatalogue_list_reports::__construct is not documented
(#17) No one-line description found in phpdocs for file
(#99) Phpdocs for function blockcatalogue_list_reports::get_local_data has incomplete parameters list
(#17) File-level phpdocs block does not have @copyright tag
(#63) Not recommended phpdocs tag @global used
(#98) Not recommended phpdocs tag @global used
(#124) Not recommended phpdocs tag @global used
(#124) Not recommended phpdocs tag @global used
blocks/catalogue/list/resources/blockcatalogue.list.php
(#17) No one-line description found in phpdocs for file
(#56) Not recommended phpdocs tag @global used
(#72) Not recommended phpdocs tag @global used
(#72) Not recommended phpdocs tag @global used
(#94) Not recommended phpdocs tag @global used
(#94) Not recommended phpdocs tag @global used
(#128) Not recommended phpdocs tag @global used
(#157) Not recommended phpdocs tag @global used
(#157) Not recommended phpdocs tag @global used
blocks/catalogue/list/sections/blockcatalogue.list.php
(#17) No one-line description found in phpdocs for file
(#59) Not recommended phpdocs tag @global used
(#59) Not recommended phpdocs tag @global used
(#97) Not recommended phpdocs tag @global used
(#97) Not recommended phpdocs tag @global used
(#120) Not recommended phpdocs tag @global used
(#120) Not recommended phpdocs tag @global used
blocks/catalogue/list/sections/choosesection.php
(#17) No one-line description found in phpdocs for file
(#17) File-level phpdocs block does not have @copyright tag
blocks/catalogue/settings.php
(#17) No one-line description found in phpdocs for file
blocks/catalogue/toggle.php
(#17) No one-line description found in phpdocs for file
blocks/catalogue/version.php
(#17) 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

(0 errors, 0 warnings)

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


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]