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
(#75) Inline comments must end in full-stops, exclamation marks, or question marks
local/downloadcenter/locallib.php
(#293) 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 '}'. (babel/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

(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
(#23) Package local_downloadcenter\event is not valid
(#17) File-level phpdocs block is not found
(#26) There is no description in phpdocs for function init
(#35) There is no description in phpdocs for function get_name
(#43) There is no description in phpdocs for function get_description
(#50) There is no description in phpdocs for function get_url
local/downloadcenter/classes/event/zip_downloaded.php
(#24) Package local_downloadcenter\event is not valid
(#17) File-level phpdocs block is not found
(#27) There is no description in phpdocs for function init
(#36) There is no description in phpdocs for function get_name
(#44) There is no description in phpdocs for function get_description
(#52) There is no description in phpdocs for function get_url
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
(#35) There is no description in phpdocs for function definition
(#82) There is no description in phpdocs for function definition
local/downloadcenter/lib.php
(#29) There is no description in phpdocs for function local_downloadcenter_extend_settings_navigation
(#40) There is no description in phpdocs for function local_downloadcenter_extend_navigation
(#130) There is no description in phpdocs for function local_downloadcenter_get_fontawesome_icon_map
local/downloadcenter/locallib.php
(#28) Class local_downloadcenter_factory is not documented
(#68) There is no description in phpdocs for function get_resources_for_user
(#192) There is no description in phpdocs for function get_js_modnames
(#199) There is no description in phpdocs for function create_zip
(#528) There is no description in phpdocs for function add_file_to_session
(#546) There is no description in phpdocs for function get_file_from_session
(#562) There is no description in phpdocs for function add_folder_contents
(#579) There is no description in phpdocs for function parse_form_data
(#609) There is no description in phpdocs for function shorten_filename
(#60) Phpdocs for function local_downloadcenter_factory::__construct has incomplete parameters list
(#529) Phpdocs for function local_downloadcenter_factory::add_file_to_session has incomplete parameters list
(#547) Phpdocs for function local_downloadcenter_factory::get_file_from_session has incomplete parameters list
(#563) Phpdocs for function local_downloadcenter_factory::add_folder_contents has incomplete parameters list
(#580) Phpdocs for function local_downloadcenter_factory::parse_form_data has incomplete parameters list
(#610) Phpdocs for function local_downloadcenter_factory::shorten_filename has incomplete parameters list
local/downloadcenter/tests/files_visible_test.php
(#22) Category phpunit is not valid
(#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
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

(1 errors, 0 warnings)

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

local/downloadcenter/amd/build/modfilter.min.js
Uncommitted change detected.

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]