Prechecker results: error


Overview

(0 errors, 0 warnings)

This section shows the general problems detected when processing the code [More info]


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

(56 errors, 10 warnings)

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

mod/labelcollapsed/backup/moodle2/backup_labelcollapsed_activity_task.class.php
(#59) File must end with a newline character
mod/labelcollapsed/backup/moodle2/backup_labelcollapsed_stepslib.php
(#1) No one-line description found in phpdocs for docblock of file backup_labelcollapsed_stepslib.php
(#32) Missing docblock for class backup_labelcollapsed_activity_structure_step
(#34) Missing docblock for function define_structure
(#57) File must end with a newline character
mod/labelcollapsed/backup/moodle2/restore_labelcollapsed_activity_task.class.php
(#1) No one-line description found in phpdocs for docblock of file restore_labelcollapsed_activity_task.class.php
(#33) Missing docblock for class restore_labelcollapsed_activity_task
(#103) File must end with a newline character
mod/labelcollapsed/backup/moodle2/restore_labelcollapsed_stepslib.php
(#1) No one-line description found in phpdocs for docblock of file restore_labelcollapsed_stepslib.php
(#33) Missing docblock for function define_structure
(#42) Missing docblock for function process_labelcollapsed
(#55) Missing docblock for function after_execute
(#60) File must end with a newline character
mod/labelcollapsed/classes/form/colourpicker_form_element.php
(#1) Missing docblock for file colourpicker_form_element.php
(#33) You must use "/**" style comments for a member variable comment
(#42) Docblock tag "@access" is not recommended.
(#158) File must end with a newline character
mod/labelcollapsed/classes/output/content_view.php
(#24) Missing @copyright tag
(#24) Missing @license tag
(#24) Missing docblock for class content_view
(#25) Missing member variable doc comment
(#26) Missing member variable doc comment
(#28) Missing docblock for function __construct
(#33) Missing docblock for function export_for_template
(#40) File must end with a newline character
mod/labelcollapsed/classes/output/mobile.php
(#19) Missing @copyright tag
(#19) Missing @license tag
(#19) Missing docblock for class mobile
(#26) Missing docblock for function mobile_view
(#42) File must end with a newline character
mod/labelcollapsed/classes/output/renderer.php
(#21) Missing @copyright tag
(#21) Missing @license tag
(#21) Missing docblock for class renderer
(#23) Missing docblock for function render_content_view
(#29) File must end with a newline character
mod/labelcollapsed/classes/privacy/provider.php
(#1) More than one @package tag found in file provider.php.
(#46) There must not be a space before the colon in a return type declaration
(#49) File must end with a newline character
mod/labelcollapsed/db/access.php
(#42) File must end with a newline character
mod/labelcollapsed/db/log.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#33) File must end with a newline character
mod/labelcollapsed/db/mobile.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file mobile.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#30) File must end with a newline character
mod/labelcollapsed/db/upgrade.php
(#45) Missing docblock for function xmldb_labelcollapsed_upgrade
(#73) File must end with a newline character
mod/labelcollapsed/index.php
(#37) File must end with a newline character
mod/labelcollapsed/lang/en/labelcollapsed.php
(#28) The string key "labelcollapsed:addinstance" is not in the correct order, it should be before "labelsectionnumcolor"
(#31) The string key "labelsectioncolor" is not in the correct order, it should be before "labelsectionnumBGcolor"
(#32) The string key "labelsectionBGcolor" is not in the correct order, it should be before "labelsectioncolor"
(#33) The string key "labelcollapsedtext" is not in the correct order, it should be before "labelsectionBGcolor"
(#34) The string key "labelcollapsedheader" is not in the correct order, it should be before "labelcollapsedtext"
mod/labelcollapsed/lib.php
(#29) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#77) Short array syntax must be used to define arrays
(#83) Short array syntax must be used to define arrays
(#112) Short array syntax must be used to define arrays
(#127) No one-line description found in phpdocs for docblock of function labelcollapsed_supports
(#150) Commas (,) must be followed by white space.
(#156) File must end with a newline character
mod/labelcollapsed/mod_form.php
(#31) Missing docblock for class mod_labelcollapsed_mod_form
(#33) Missing docblock for function definition
(#83) File must end with a newline character
mod/labelcollapsed/version.php
(#34) File must end with a newline character
mod/labelcollapsed/view.php
(#59) File must end with a newline character

Javascript coding style problems

(0 errors, 0 warnings)

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


CSS problems

(2 errors, 0 warnings)

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

mod/labelcollapsed/styles.css
(#16) Unexpected shorthand "font" after "font-weight" (declaration-block-no-shorthand-property-overrides)
(#16) Unexpected shorthand "font" after "font-family" (declaration-block-no-shorthand-property-overrides)

PHPDocs style problems

(4 errors, 0 warnings)

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

mod/labelcollapsed/backup/moodle2/restore_labelcollapsed_activity_task.class.php
(#72) Inline phpdocs tag {@link restore_logs_processor} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#74) Inline phpdocs tag {@link restore_log_rule} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#88) Inline phpdocs tag {@link restore_logs_processor} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#90) Inline phpdocs tag {@link restore_log_rule} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}

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

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

Problems running grunt
Task "stylelint:css" failed. Use --force to continue.

shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(2 errors, 0 warnings)

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

mod/labelcollapsed/templates/content_view.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
mod/labelcollapsed/templates/mobile_view_page.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error

Gherkin .feature problems

(0 errors, 0 warnings)

This section shows problems detected in behat .feature files [More info]