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

(0 errors, 2 warnings)

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

local/downloadcenter/locallib.php
(#245) This comment is 45% valid code; is this commented out code?
(#432) Line exceeds 132 characters; contains 139 characters

Javascript coding style problems

(0 errors, 27 warnings)

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

local/downloadcenter/amd/src/modfilter.js
(#19) Missing JSDoc for parameter 'modnms'. (valid-jsdoc)
(#36) ["all"] is better written in dot notation. (dot-notation)
(#37) ["none"] is better written in dot notation. (dot-notation)
(#38) ["select"] is better written in dot notation. (dot-notation)
(#39) ["showtypes"] is better written in dot notation. (dot-notation)
(#40) ["hidetypes"] is better written in dot notation. (dot-notation)
(#46) ["select"] is better written in dot notation. (dot-notation)
(#47) ["showtypes"] is better written in dot notation. (dot-notation)
(#77) Statement inside of curly braces should be on next line. (brace-style)
(#77) Multiple spaces found before ''item_''. (no-multi-spaces)
(#77) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#78) Statement inside of curly braces should be on next line. (brace-style)
(#78) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#79) Statement inside of curly braces should be on next line. (brace-style)
(#79) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#89) ["showtypes"] is better written in dot notation. (dot-notation)
(#91) ["hidetypes"] is better written in dot notation. (dot-notation)
(#93) There should be no space before '}'. (object-curly-spacing)
(#100) Statement inside of curly braces should be on next line. (brace-style)
(#100) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#101) Statement inside of curly braces should be on next line. (brace-style)
(#101) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#135) Identifier 'html_generator' is not in camel case. (camelcase)
(#136) ["all"] is better written in dot notation. (dot-notation)
(#137) ["none"] is better written in dot notation. (dot-notation)
(#141) Identifier 'row_generator' is not in camel case. (camelcase)
(#154) A constructor name should not start with a lowercase letter. (new-cap)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(39 errors, 0 warnings)

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

local/downloadcenter/classes/event/plugin_viewed.php
(#21) Package is not specified for class plugin_viewed. It is also not specified in file-level phpdocs
(#17) File-level phpdocs block is not found
(#21) Class plugin_viewed is not documented
(#22) Function plugin_viewed::init is not documented
(#28) Function plugin_viewed::get_name is not documented
(#32) Function plugin_viewed::get_description is not documented
(#36) Function plugin_viewed::get_url is not documented
local/downloadcenter/classes/event/zip_downloaded.php
(#23) Package is not specified for class zip_downloaded. It is also not specified in file-level phpdocs
(#17) File-level phpdocs block is not found
(#23) Class zip_downloaded is not documented
(#24) Function zip_downloaded::init is not documented
(#30) Function zip_downloaded::get_name is not documented
(#34) Function zip_downloaded::get_description is not documented
(#39) Function zip_downloaded::get_url is not documented
local/downloadcenter/download_form.php
(#31) Class local_downloadcenter_download_form is not documented
(#72) Class local_downloadcenter_download_final_form is not documented
(#32) Function local_downloadcenter_download_form::definition is not documented
(#73) Function local_downloadcenter_download_final_form::definition is not documented
local/downloadcenter/lib.php
(#29) Function local_downloadcenter_extend_settings_navigation is not documented
(#33) Function local_downloadcenter_extend_navigation is not documented
local/downloadcenter/locallib.php
(#28) Class local_downloadcenter_factory is not documented
(#37) Function local_downloadcenter_factory::__construct is not documented
(#42) Function local_downloadcenter_factory::get_resources_for_user is not documented
(#160) Function local_downloadcenter_factory::get_js_modnames is not documented
(#164) Function local_downloadcenter_factory::create_zip is not documented
(#463) Function local_downloadcenter_factory::add_file_to_session is not documented
(#476) Function local_downloadcenter_factory::get_file_from_session is not documented
(#489) Function local_downloadcenter_factory::add_folder_contents is not documented
(#501) Function local_downloadcenter_factory::parse_form_data is not documented
(#525) Function local_downloadcenter_factory::shorten_filename is not documented
(#29) Variable local_downloadcenter_factory::$course is not documented
(#30) Variable local_downloadcenter_factory::$user is not documented
(#31) Variable local_downloadcenter_factory::$sortedresources is not documented
(#32) Variable local_downloadcenter_factory::$filteredresources is not documented
(#33) Variable local_downloadcenter_factory::$availableresources is not documented
(#34) Variable local_downloadcenter_factory::$jsnames is not documented
(#35) Variable local_downloadcenter_factory::$progress is not documented
local/downloadcenter/renderer.php
(#29) Class local_downloadcenter_renderer is not documented
local/downloadcenter/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]