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

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

local/downloadcenter/classes/privacy/provider.php
(#28) Expected MOODLE_INTERNAL check or config.php inclusion
local/downloadcenter/lib.php
(#63) Inline comments must end in full-stops, exclamation marks, or question marks
local/downloadcenter/locallib.php
(#245) This comment is 45% valid code; is this commented out code?

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
(#13) Missing JSDoc for parameter 'modnames'. (valid-jsdoc)
(#35) ["all"] is better written in dot notation. (dot-notation)
(#36) ["none"] is better written in dot notation. (dot-notation)
(#37) ["select"] is better written in dot notation. (dot-notation)
(#38) ["showtypes"] is better written in dot notation. (dot-notation)
(#39) ["hidetypes"] is better written in dot notation. (dot-notation)
(#45) ["select"] is better written in dot notation. (dot-notation)
(#47) ["showtypes"] is better written in dot notation. (dot-notation)
(#78) Statement inside of curly braces should be on next line. (brace-style)
(#78) Multiple spaces found before ''item_''. (no-multi-spaces)
(#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)
(#80) Statement inside of curly braces should be on next line. (brace-style)
(#80) This line has 3 statements. Maximum allowed is 2. (max-statements-per-line)
(#80) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#90) ["showtypes"] is better written in dot notation. (dot-notation)
(#92) ["hidetypes"] is better written in dot notation. (dot-notation)
(#94) There should be no space before '}'. (object-curly-spacing)
(#102) Statement inside of curly braces should be on next line. (brace-style)
(#102) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#103) Statement inside of curly braces should be on next line. (brace-style)
(#103) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#140) Identifier 'html_generator' is not in camel case. (camelcase)
(#141) ["all"] is better written in dot notation. (dot-notation)
(#142) ["none"] is better written in dot notation. (dot-notation)
(#146) Identifier 'row_generator' is not in camel case. (camelcase)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(46 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
(#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
(#21) Package is not specified for class plugin_viewed. It is also not specified in file-level phpdocs
local/downloadcenter/classes/event/zip_downloaded.php
(#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
(#23) Package is not specified for class zip_downloaded. It is also not specified in file-level phpdocs
local/downloadcenter/classes/privacy/provider.php
(#28) Class provider is not documented
(#17) No one-line description found in phpdocs for file
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
(#118) Function local_downloadcenter_get_fontawesome_icon_map 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
(#465) Function local_downloadcenter_factory::add_file_to_session is not documented
(#478) Function local_downloadcenter_factory::get_file_from_session is not documented
(#491) Function local_downloadcenter_factory::add_folder_contents is not documented
(#503) Function local_downloadcenter_factory::parse_form_data is not documented
(#527) 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/tests/files_visible_test.php
(#33) Class local_downloadcenter_files_visible_testcase is not documented
(#137) Function local_downloadcenter_files_visible_testcase::helper_add_file_to_context is not documented
(#151) Function local_downloadcenter_files_visible_testcase::helper_add_resources_to_course is not documented
(#22) Category phpunit is not valid
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]