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

(101 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
(#33) Opening brace must not be followed by a blank line
(#59) Expected 1 newline at end of file; 0 found
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
(#32) Opening brace must not be followed by a blank line
(#34) Missing docblock for function define_structure
(#57) Expected 1 newline at end of file; 0 found
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
(#33) Opening brace must not be followed by a blank line
(#103) Expected 1 newline at end of file; 0 found
mod/labelcollapsed/backup/moodle2/restore_labelcollapsed_stepslib.php
(#1) No one-line description found in phpdocs for docblock of file restore_labelcollapsed_stepslib.php
(#31) Opening brace must not be followed by a blank line
(#33) Missing docblock for function define_structure
(#42) Missing docblock for function process_labelcollapsed
(#55) Missing docblock for function after_execute
(#60) Expected 1 newline at end of file; 0 found
(#60) The closing brace for the class must go on the next line after the body
mod/labelcollapsed/classes/form/colourpicker_form_element.php
(#1) Missing docblock for file colourpicker_form_element.php
(#30) Opening brace must not be followed by a blank line
(#33) Property name "$_helpbutton" should not be prefixed with an underscore to indicate visibility
(#33) You must use "/**" style comments for a member variable comment
(#42) Docblock tag "@access" is not recommended.
(#45) Incorrect spacing between argument "$elementname" and equals sign; expected 1 but found 0
(#45) Incorrect spacing between default value and equals sign for argument "$elementname"; expected 1 but found 0
(#45) Incorrect spacing between argument "$elemenlabel" and equals sign; expected 1 but found 0
(#45) Incorrect spacing between default value and equals sign for argument "$elemenlabel"; expected 1 but found 0
(#45) Incorrect spacing between argument "$attributes" and equals sign; expected 1 but found 0
(#45) Incorrect spacing between default value and equals sign for argument "$attributes"; expected 1 but found 0
(#138) Each class must be in a file by itself
(#138) Opening brace must not be followed by a blank line
(#151) Expected at least 1 space before "."; 0 found
(#151) Expected at least 1 space after "."; 0 found
(#158) Expected 1 newline at end of file; 0 found
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) Expected 1 newline at end of file; 0 found
mod/labelcollapsed/classes/output/mobile.php
(#19) Missing @copyright tag
(#19) Missing @license tag
(#19) Missing docblock for class mobile
(#19) Opening brace must not be followed by a blank line
(#26) Missing docblock for function mobile_view
(#42) Expected 1 newline at end of file; 0 found
mod/labelcollapsed/classes/output/renderer.php
(#21) Missing @copyright tag
(#21) Missing @license tag
(#21) Missing docblock for class renderer
(#21) Opening brace must not be followed by a blank line
(#23) Missing docblock for function render_content_view
(#24) global $PAGE cannot be used in renderers. Use $this->page.
(#25) global $PAGE cannot be used in renderers. Use $this->page.
(#26) Whitespace found at end of line
(#32) Expected 1 newline at end of file; 0 found
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) Expected 1 newline at end of file; 0 found
mod/labelcollapsed/db/access.php
(#42) Expected 1 newline at end of file; 0 found
mod/labelcollapsed/db/log.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#33) Expected 1 newline at end of file; 0 found
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) Expected 1 newline at end of file; 0 found
mod/labelcollapsed/db/upgrade.php
(#45) Missing docblock for function xmldb_labelcollapsed_upgrade
(#73) Expected 1 newline at end of file; 0 found
mod/labelcollapsed/index.php
(#37) Expected 1 newline at end of file; 0 found
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.
(#86) Short array syntax must be used to define arrays
(#92) Short array syntax must be used to define arrays
(#106) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#124) Short array syntax must be used to define arrays
(#136) Expected 1 space after SWITCH keyword; 0 found
(#156) No space found after comma in argument list
(#156) Commas (,) must be followed by white space.
(#156) Expected 1 space between the comma and "$_REQUEST". Found: no spaces
mod/labelcollapsed/mod_form.php
(#29) Expected at least 1 space before "."; 0 found
(#29) Expected at least 1 space after "."; 0 found
(#31) Missing docblock for class mod_labelcollapsed_mod_form
(#31) Opening brace must not be followed by a blank line
(#33) Missing docblock for function definition
(#39) Opening parenthesis of a multi-line function call must be the last content on the line
(#41) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#41) Closing parenthesis of a multi-line function call must be on a line by itself
(#43) Opening parenthesis of a multi-line function call must be the last content on the line
(#46) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#46) Closing parenthesis of a multi-line function call must be on a line by itself
(#55) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#55) Closing parenthesis of a multi-line function call must be on a line by itself
(#71) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#71) Closing parenthesis of a multi-line function call must be on a line by itself
(#83) Expected 1 newline at end of file; 0 found
mod/labelcollapsed/version.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file version.php
(#1) Moodle boilerplate not found
(#4) Inline comments must end in full-stops, exclamation marks, or question marks
(#6) Inline comments must end in full-stops, exclamation marks, or question marks
(#9) Expected 1 newline at end of file; 0 found
mod/labelcollapsed/view.php
(#43) Blank line found at end of control structure
(#49) Expected 0 spaces before closing bracket; 1 found
(#59) Expected 1 newline at end of file; 0 found

Javascript coding style problems

(3 errors, 2 warnings)

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

mod/labelcollapsed/Gruntfile.js
(#2) 'module' is not defined. (no-undef)
mod/labelcollapsed/amd/src/toggler.js
(#4) Expected { after 'if' condition. (curly)
(#10) Expected { after 'if' condition. (curly)
(#29) There should be no space after '{'. (@babel/object-curly-spacing)
(#29) There should be no space before '}'. (@babel/object-curly-spacing)

CSS problems

(3 errors, 1 warnings)

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

mod/labelcollapsed/styles.css
(#28) Expected "#333333" to be "#333" (color-hex-length)
(#18) Unexpected shorthand "font" after "font-weight" (declaration-block-no-shorthand-property-overrides)
(#18) Unexpected shorthand "font" after "font-family" (declaration-block-no-shorthand-property-overrides)
(#36) Unexpected !important (declaration-no-important)

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 "eslint:amd" 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, 2 warnings)

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

mod/labelcollapsed/templates/content_view-new.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 9: Bad value “button” for attribute “role” on element “h4”. (ner"> <h4 role="button" class="lc_section collapsed d-flex justify-content-between align-items-center" data-toggle="collapse" data-target="#lcc" aria-expanded="false" aria-controls="lcc" style="cursor: pointer; padding: 10px; margin-bottom: 15px; margin-top: 8px;"> )
(#1) HTML Validation info, line 9: Empty heading. (ner"> <h4 role="button" class="lc_section collapsed d-flex justify-content-between align-items-center" data-toggle="collapse" data-target="#lcc" aria-expanded="false" aria-controls="lcc" style="cursor: pointer; padding: 10px; margin-bottom: 15px; margin-top: 8px;"> )
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]