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

(23 errors, 13 warnings)

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

blocks/sharedresources/block_sharedresources.php
(#26) Expected MOODLE_INTERNAL check or config.php inclusion
(#28) Visibility must be declared on method "init"
(#33) Visibility must be declared on method "has_config"
(#37) Visibility must be declared on method "get_content"
(#40) Expected "if (...) {\n"; found "if(...) {\n"
blocks/sharedresources/import_collect_form.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
blocks/sharedresources/importresourcesfromfiles.php
(#26) Whitespace found at end of line
(#52) Inline comments must start with a capital letter, digit or 3-dots sequence
(#66) Inline comments must end in full-stops, exclamation marks, or question marks
(#66) 3 slashes comments are not allowed; use "// Comment." instead
(#82) Inline comments must start with a capital letter, digit or 3-dots sequence
(#82) Inline comments must end in full-stops, exclamation marks, or question marks
(#105) Usage of ELSEIF not allowed; use ELSE IF instead
(#107) Inline comments must start with a capital letter, digit or 3-dots sequence
(#108) Line exceeds 132 characters; contains 163 characters
blocks/sharedresources/lang/en/block_sharedresources.php
(#2) The opening <?php tag must be followed by exactly one newline.
blocks/sharedresources/lang/fr/block_sharedresources.php
(#2) The opening <?php tag must be followed by exactly one newline.
blocks/sharedresources/lib.php
(#24) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#28) Expected 1 space(s) before asterisk; 0 found
(#29) Expected 1 space(s) before asterisk; 0 found
(#30) Expected 1 space(s) before asterisk; 0 found
(#30) Whitespace found at end of line
(#31) Expected 1 space(s) before asterisk; 0 found
(#32) Expected 1 space(s) before asterisk; 0 found
(#42) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#70) Expected 1 space before "=>"; 0 found
(#86) Inline comments must start with a capital letter, digit or 3-dots sequence
(#86) Inline comments must end in full-stops, exclamation marks, or question marks
(#95) Expected "try {\n...} catch (...) {\n"; found "try {\n...} catch(...) {\n"
(#126) The use of function print_object() is forbidden
(#192) Line exceeds 132 characters; contains 155 characters
blocks/sharedresources/metadata_collect_form.php
(#26) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#42) Inline comments must start with a capital letter, digit or 3-dots sequence
(#42) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/sharedresources/version.php
(#30) Inline comments must end in full-stops, exclamation marks, or question marks
(#31) Whitespace found at end of line

Javascript coding style problems

(2 errors, 6 warnings)

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

blocks/sharedresources/js/js.js
(#3) Missing JSDoc comment. (require-jsdoc)
(#3) 'importuncheckall' is defined but never used (no-unused-vars)
(#4) ["importfilesasresources"] is better written in dot notation. (dot-notation)
(#5) Expected space(s) after "for". (keyword-spacing)
(#12) Missing JSDoc comment. (require-jsdoc)
(#12) 'importcheckall' is defined but never used (no-unused-vars)
(#13) ["importfilesasresources"] is better written in dot notation. (dot-notation)
(#14) Expected space(s) after "for". (keyword-spacing)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(25 errors, 2 warnings)

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

blocks/sharedresources/block_sharedresources.php
(#26) Class block_sharedresources is not documented
(#28) Function block_sharedresources::init is not documented
(#33) Function block_sharedresources::has_config is not documented
(#37) Function block_sharedresources::get_content is not documented
(#17) No one-line description found in phpdocs for file
blocks/sharedresources/import_collect_form.php
(#27) Class import_collect_form is not documented
(#29) Function import_collect_form::definition is not documented
(#41) Function import_collect_form::validation is not documented
(#17) No one-line description found in phpdocs for file
(#19) Category blocks is not valid
blocks/sharedresources/importresourcesfromfiles.php
(#66) Found comment starting with three or more slashes
(#17) No one-line description found in phpdocs for file
(#19) Category blocks is not valid
blocks/sharedresources/lang/en/block_sharedresources.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
blocks/sharedresources/lang/fr/block_sharedresources.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
blocks/sharedresources/lib.php
(#60) Function sharedresources_process_single_entry is not documented
(#17) No one-line description found in phpdocs for file
(#27) Phpdocs for function sharedresources_process_entries has incomplete parameters list
(#19) Category blocks is not valid
blocks/sharedresources/metadata_collect_form.php
(#28) Class metadata_collect_form is not documented
(#30) Function metadata_collect_form::definition is not documented
(#89) Function metadata_collect_form::validation is not documented
(#17) No one-line description found in phpdocs for file
(#20) Category blocks is not valid
blocks/sharedresources/version.php
(#21) Category blocks is not valid

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]