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

(36 errors, 37 warnings)

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

mod/courseguide/backup/moodle2/restore_courseguide_stepslib.php
(#194) Inline comments must end in full-stops, exclamation marks, or question marks
mod/courseguide/classes/guide.php
(#84) Inline comments must start with a capital letter, digit or 3-dots sequence
(#86) Inline comments must start with a capital letter, digit or 3-dots sequence
mod/courseguide/classes/manager.php
(#138) Inline comments must start with a capital letter, digit or 3-dots sequence
(#138) Inline comments must end in full-stops, exclamation marks, or question marks
(#174) Inline comments must start with a capital letter, digit or 3-dots sequence
(#219) Space found before semicolon; expected "$o;" but found "$o ;"
(#239) Expected 1 space after "="; 2 found
(#269) No space found before comment text; expected "// We are searching the entire Moodle site and filtering per organisation." but found "//We are searching the entire Moodle site and filtering per organisation."
(#270) Whitespace found at end of line within string
(#271) Whitespace found at end of line within string
(#272) Whitespace found at end of line within string
(#273) Whitespace found at end of line within string
(#274) Whitespace found at end of line within string
(#275) Whitespace found at end of line within string
(#278) Whitespace found at end of line within string
(#280) The use of the AS keyword to alias tables is bad for cross-db
(#281) The use of the AS keyword to alias tables is bad for cross-db
(#282) The use of the AS keyword to alias tables is bad for cross-db
(#283) The use of the AS keyword to alias tables is bad for cross-db
(#285) Inline comments must start with a capital letter, digit or 3-dots sequence
(#292) Inline comments must start with a capital letter, digit or 3-dots sequence
(#307) The use of the AS keyword to alias tables is bad for cross-db
(#316) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#340) Expected 1 space before "?"; 0 found
(#340) Expected 1 space after "?"; 0 found
(#340) Expected 1 space before ":"; 0 found
(#340) Expected 1 space after ":"; 0 found
mod/courseguide/classes/output/mobile.php
(#31) Inline comments must start with a capital letter, digit or 3-dots sequence
(#31) Inline comments must end in full-stops, exclamation marks, or question marks
(#66) Inline comments must start with a capital letter, digit or 3-dots sequence
(#80) Expected 1 space after "="; 5 found
(#93) Inline comments must start with a capital letter, digit or 3-dots sequence
(#94) Inline comments must end in full-stops, exclamation marks, or question marks
(#107) Line exceeds 132 characters; contains 166 characters
(#108) Line exceeds 132 characters; contains 158 characters
mod/courseguide/classes/webservice/external.php
(#54) Line exceeds 132 characters; contains 133 characters
mod/courseguide/db/install.php
(#34) Expected MOODLE_INTERNAL check or config.php inclusion
mod/courseguide/db/mobile.php
(#24) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#27) Inline comments must end in full-stops, exclamation marks, or question marks
(#34) Inline comments must end in full-stops, exclamation marks, or question marks
mod/courseguide/db/services.php
(#31) Whitespace found at end of line within string
mod/courseguide/db/uninstall.php
(#31) Expected MOODLE_INTERNAL check or config.php inclusion
mod/courseguide/edit_guide.php
(#37) Inline comments must start with a capital letter, digit or 3-dots sequence
(#95) Line exceeds 132 characters; contains 134 characters
mod/courseguide/grade.php
(#27) Expected login check (require_login, require_course_login, admin_externalpage_setup) following config inclusion. None found.
mod/courseguide/lang/en/courseguide.php
(#118) Whitespace found at end of line within string
(#120) Whitespace found at end of line within string
mod/courseguide/lib.php
(#139) Empty FOREACH statement detected
(#141) Inline comments must end in full-stops, exclamation marks, or question marks
(#141) This comment is 67% valid code; is this commented out code?
(#487) Inline comments must start with a capital letter, digit or 3-dots sequence
(#491) Line indented incorrectly; expected 4 spaces, found 8
(#493) Line indented incorrectly; expected 8 spaces, found 12
(#495) Line indented incorrectly; expected 8 spaces, found 12
(#497) Line indented incorrectly; expected 8 spaces, found 12
(#499) Line indented incorrectly; expected 8 spaces, found 12
(#503) Line indented incorrectly; expected 8 spaces, found 12
(#504) Line exceeds 132 characters; contains 135 characters
(#506) Line exceeds 132 characters; contains 139 characters
(#507) Line exceeds 132 characters; contains 150 characters
(#509) Line exceeds 132 characters; contains 151 characters
(#509) Inline comments must start with a capital letter, digit or 3-dots sequence
(#513) Line exceeds 132 characters; contains 149 characters
(#517) Line indented incorrectly; expected 8 spaces, found 12
(#518) Line indented incorrectly; expected 4 spaces, found 8
mod/courseguide/manage_templates.php
(#74) Line exceeds 132 characters; contains 140 characters
(#77) Line exceeds 132 characters; contains 140 characters
(#83) Line exceeds 132 characters; contains 138 characters
(#89) Line exceeds 132 characters; contains 136 characters
(#106) Blank comments are not allowed
mod/courseguide/settings.php
(#2) The opening <?php tag must be followed by exactly one newline.
mod/courseguide/version.php
(#34) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(8 errors, 3 warnings)

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

mod/courseguide/edit_template.js
(#26) '$' is not defined. (no-undef)
(#26) Unexpected space before function parentheses. (space-before-function-paren)
(#28) '$' is not defined. (no-undef)
(#29) '$' is not defined. (no-undef)
(#29) '$' is not defined. (no-undef)
mod/courseguide/main_course_collapsable.js
(#26) '$' is not defined. (no-undef)
(#28) Identifier 'mod_courseguide_expand_callback' is not in camel case. (camelcase)
(#45) Identifier 'mod_courseguide_expand_callback_this' is not in camel case. (camelcase)
(#47) '$' is not defined. (no-undef)
(#53) Missing semicolon. (semi)
(#55) '$' is not defined. (no-undef)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(24 errors, 1 warnings)

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

mod/courseguide/backup/moodle2/backup_courseguide_stepslib.php
(#145) Function backup_courseguide_contents_files_step::define_execution is not documented
(#138) Package block_moderator_guide is not valid
mod/courseguide/backup/moodle2/restore_courseguide_stepslib.php
(#111) Phpdocs for function restore_courseguide_activity_structure_step::process_template has incomplete parameters list
(#162) Phpdocs for function restore_courseguide_activity_structure_step::process_guide has incomplete parameters list
mod/courseguide/classes/form/guide.php
(#20) Package mod_courseguide; is not valid
(#34) Package mod_courseguide; is not valid
mod/courseguide/classes/form/template.php
(#20) Package mod_courseguide; is not valid
(#34) Package mod_courseguide; is not valid
mod/courseguide/classes/guide.php
(#20) Package mod_courseguide; is not valid
(#36) Package mod_courseguide; is not valid
mod/courseguide/classes/manager.php
(#112) Phpdocs for function manager::get_guide_context has incomplete parameters list
(#132) Phpdocs for function manager::process_template_form_data has incomplete parameters list
(#150) Phpdocs for function manager::get_guide_by_instanceid has incomplete parameters list
(#187) Phpdocs for function manager::serve_pluginfile has incomplete parameters list
(#252) Phpdocs for function manager::get_guides_courses has incomplete parameters list
(#20) Package mod_courseguide; is not valid
(#39) Package mod_courseguide; is not valid
mod/courseguide/classes/template.php
(#20) Package mod_courseguide; is not valid
(#36) Package mod_courseguide; is not valid
mod/courseguide/classes/webservice/external.php
(#47) Phpdocs for function external::get_guides_courses has incomplete parameters list
mod/courseguide/db/services.php
(#19) Package block_moderator_guide is not valid
mod/courseguide/edit_guide.php
(#20) Package mod_courseguide; is not valid
mod/courseguide/edit_template.php
(#20) Package mod_courseguide; is not valid
mod/courseguide/manage_templates.php
(#20) Package mod_courseguide; is not valid
mod/courseguide/settings.php
(#2) Empty line found after PHP open tag

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

This section shows problems detected in mustache templates [More info]

mod/courseguide/templates/mobile_view_page.mustache
(#1) Example context missing (@template section not found.)