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

(28 errors, 25 warnings)

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

course/format/topicsactivitycards/backup/moodle2/backup_format_topicsactivitycards_plugin.class.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#40) Line exceeds 132 characters; contains 179 characters
(#47) Whitespace found at end of line within string
(#61) Line exceeds 132 characters; contains 135 characters
course/format/topicsactivitycards/backup/moodle2/restore_format_topicsactivitycards_plugin.class.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#79) Line exceeds 132 characters; contains 139 characters
(#97) Line exceeds 132 characters; contains 150 characters
course/format/topicsactivitycards/classes/course_renderer.php
(#67) global $PAGE cannot be used in renderers. Use $this->page.
(#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
(#92) Variable "cm_infos" must not contain underscores.
(#93) Variable "cm_infos" must not contain underscores.
(#94) Variable "cm_infos" must not contain underscores.
(#117) Inline comments must end in full-stops, exclamation marks, or question marks
(#123) Logical operator "and" is prohibited; use "&&" instead
(#124) Inline comments must start with a capital letter, digit or 3-dots sequence
(#124) Inline comments must end in full-stops, exclamation marks, or question marks
(#144) global $PAGE cannot be used in renderers. Use $this->page.
(#151) Line exceeds 132 characters; contains 147 characters
(#222) global $PAGE cannot be used in renderers. Use $this->page.
(#252) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#257) Inline comments must start with a capital letter, digit or 3-dots sequence
(#257) No space found before comment text; expected "// width!" but found "//width!"
(#289) global $PAGE cannot be used in renderers. Use $this->page.
(#292) global $PAGE cannot be used in renderers. Use $this->page.
(#387) Inline comments must start with a capital letter, digit or 3-dots sequence
course/format/topicsactivitycards/classes/privacy/provider.php
(#29) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
course/format/topicsactivitycards/db/upgrade.php
(#80) Variable "file_record" must not contain underscores.
(#81) Variable "file_record" must not contain underscores.
(#82) Variable "file_record" must not contain underscores.
course/format/topicsactivitycards/format.php
(#60) Inline comments must end in full-stops, exclamation marks, or question marks
course/format/topicsactivitycards/lib.php
(#82) Line exceeds 132 characters; contains 138 characters
(#148) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#151) Variable "format_options" must not contain underscores.
(#162) Variable "format_options" must not contain underscores.
(#164) Line exceeds maximum limit of 180 characters; contains 185 characters
(#190) Line exceeds 132 characters; contains 152 characters
(#203) Expected "if (...) {\n"; found "if (...){\n"
(#212) Variable "format_options" must not contain underscores.
(#214) Variable "format_options" must not contain underscores.
(#214) Variable "format_options" must not contain underscores.
(#351) Line exceeds 132 characters; contains 145 characters
(#367) Line exceeds 132 characters; contains 149 characters
(#370) Line exceeds 132 characters; contains 172 characters
(#376) Line exceeds 132 characters; contains 154 characters
course/format/topicsactivitycards/renderer.php
(#48) Variable "format_options" must not contain underscores.
(#49) Variable "format_options" must not contain underscores.
(#50) Line exceeds 132 characters; contains 171 characters
(#73) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#77) Line exceeds 132 characters; contains 171 characters
(#88) Variable "format_options" must not contain underscores.
(#90) Variable "format_options" must not contain underscores.
(#110) Variable "format_options" must not contain underscores.

Javascript coding style problems

(1 errors, 4 warnings)

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

course/format/topicsactivitycards/amd/src/collapse.js
(#1) Expected space or tab after '//' in comment. (spaced-comment)
(#20) @package should be empty. (jsdoc/empty-tags)
(#28) Unexpected space before function parentheses. (space-before-function-paren)
(#30) Unexpected space before function parentheses. (space-before-function-paren)
(#31) Unexpected space before function parentheses. (space-before-function-paren)

CSS problems

(6 errors, 0 warnings)

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

course/format/topicsactivitycards/styles.css
(#61) Expected single space before "{" (block-opening-brace-space-before)
(#53) Unexpected duplicate "display" (declaration-block-no-duplicate-properties)
(#16) Unexpected !important (declaration-no-important)
(#29) Unexpected !important (declaration-no-important)
(#47) Unexpected !important (declaration-no-important)
(#89) Unexpected !important (declaration-no-important)

PHPDocs style problems

(38 errors, 14 warnings)

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

course/format/topicsactivitycards/backup/moodle2/backup_format_topicsactivitycards_plugin.class.php
(#28) Class backup_format_topicsactivitycards_plugin is not documented
(#57) Function backup_format_topicsactivitycards_plugin::define_course_plugin_structure is not documented
(#17) No one-line description found in phpdocs for file
course/format/topicsactivitycards/backup/moodle2/restore_format_topicsactivitycards_plugin.class.php
(#18) Package format_topicsactivitycardsactivitycards is not valid
(#29) Class restore_format_topicsactivitycards_plugin is not documented
(#74) Function restore_format_topicsactivitycards_plugin::define_module_plugin_structure is not documented
(#102) Function restore_format_topicsactivitycards_plugin::after_restore_module is not documented
(#17) No one-line description found in phpdocs for file
(#78) Phpdocs for function restore_format_topicsactivitycards_plugin::process_metadata has incomplete parameters list
course/format/topicsactivitycards/classes/course_renderer.php
(#42) Class course_renderer is not documented
(#48) Function course_renderer::__construct is not documented
(#347) Function course_renderer::get_area_files is not documented
(#376) Function course_renderer::instance_sql_fields is not documented
(#17) No one-line description found in phpdocs for file
(#58) Inline phpdocs tag {@link core_course_renderer::course_section_cm()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#183) Inline phpdocs tag {@link core_course_renderer::course_section_cm()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#211) Inline phpdocs tag {@link core_course_renderer::course_section_cm()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
course/format/topicsactivitycards/classes/metadata.php
(#18) Package local_commerce is not valid
(#28) Class metadata is not documented
(#29) Constant metadata::TABLE is not documented
(#17) No one-line description found in phpdocs for file
course/format/topicsactivitycards/classes/privacy/provider.php
(#31) Class provider is not documented
(#17) No one-line description found in phpdocs for file
course/format/topicsactivitycards/db/upgrade.php
(#26) Function xmldb_format_topicsactivitycards_upgrade is not documented
(#17) No one-line description found in phpdocs for file
course/format/topicsactivitycards/format.php
(#17) No one-line description found in phpdocs for file
course/format/topicsactivitycards/lang/en/format_topicsactivitycards.php
(#17) No one-line description found in phpdocs for file
course/format/topicsactivitycards/lib.php
(#31) Class format_topicsactivitycards is not documented
(#38) Function format_topicsactivitycards::course_format_options is not documented
(#71) Function format_topicsactivitycards::section_format_options is not documented
(#141) Function format_topicsactivitycards::create_edit_form_elements is not documented
(#173) Function format_topicsactivitycards::update_section_format_options is not documented
(#202) Function format_topicsactivitycards::get_view_url is not documented
(#261) Function format_topicsactivitycards_override_webservice_execution is not documented
(#301) Function format_topicsactivitycards_cardbackgroundimage_filemanageroptions is not documented
(#385) Function format_topicsactivitycards_coursemodule_edit_post_actions is not documented
(#435) Function format_topicsactivitycards_coursemodule_validation is not documented
(#449) Function format_topicsactivitycards_pluginfile is not documented
(#32) Constant format_topicsactivitycards::SECTIONLAYOUT_CARDS is not documented
(#33) Constant format_topicsactivitycards::SECTIONLAYOUT_LIST is not documented
(#35) Constant format_topicsactivitycards::SECTIONHEADING_HEADER is not documented
(#36) Constant format_topicsactivitycards::SECTIONHEADING_LINKEDCARD is not documented
(#17) No one-line description found in phpdocs for file
(#223) There is no description in phpdocs for function texteditoroptions
course/format/topicsactivitycards/renderer.php
(#29) Class format_topicsactivitycards_renderer is not documented
(#46) Function format_topicsactivitycards_renderer::section_header is not documented
(#123) Function format_topicsactivitycards_renderer::section_footer is not documented
(#134) Function format_topicsactivitycards_renderer::end_section_list is not documented
(#43) Variable format_topicsactivitycards_renderer::$sectionlayoutinprogress is not documented
(#44) Variable format_topicsactivitycards_renderer::$sectioncardsopen is not documented
(#17) No one-line description found in phpdocs for file
course/format/topicsactivitycards/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, 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

(0 errors, 6 warnings)

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

course/format/topicsactivitycards/templates/coursemodule.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 5: Element “li” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (ad><body><li id="module-" data-region="module" data-module="" class="tac-container m-0 mb-4 activity modtype_ notavailable "> )
course/format/topicsactivitycards/templates/coursemoduleoverlay.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 5: Element “li” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (ad><body><li id="module-" data-region="module" data-module="" class=" coursemoduleoverlay collapse show borderdouble border-white rounded bg-light card notavailable bg-gray020 activity modtype_ "> <)
course/format/topicsactivitycards/templates/sectioncard.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 5: Element “li” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (ad><body><li id="section-" data-region="section" data-section="" class="tac-container m-0 mb-4 notavailable "> )

Gherkin .feature problems

(0 errors, 0 warnings)

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