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

(53 errors, 59 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
(#1) No one-line description found in phpdocs for docblock of file backup_format_topicsactivitycards_plugin.class.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#28) Missing docblock for class backup_format_topicsactivitycards_plugin
(#40) Line exceeds 132 characters; contains 179 characters
(#57) Missing docblock for function define_course_plugin_structure
(#61) Line exceeds 132 characters; contains 135 characters
course/format/topicsactivitycards/backup/moodle2/restore_format_topicsactivitycards_plugin.class.php
(#1) No one-line description found in phpdocs for docblock of file restore_format_topicsactivitycards_plugin.class.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#29) Missing docblock for class restore_format_topicsactivitycards_plugin
(#74) Missing docblock for function define_module_plugin_structure
(#79) Line exceeds 132 characters; contains 139 characters
(#97) Line exceeds 132 characters; contains 150 characters
(#102) Missing docblock for function after_restore_module
course/format/topicsactivitycards/classes/metadata.php
(#1) No one-line description found in phpdocs for docblock of file metadata.php
(#31) Missing docblock for class metadata
(#32) Missing docblock for constant metadata::TABLE
(#92) Missing docblock for function formattedduration
course/format/topicsactivitycards/classes/output/courseformat/content.php
(#1) No one-line description found in phpdocs for docblock of file content.php
(#31) Missing docblock for class content
(#42) Missing docblock for function export_for_template
course/format/topicsactivitycards/classes/output/courseformat/content/section.php
(#1) No one-line description found in phpdocs for docblock of file section.php
(#35) Missing docblock for class section
(#37) Missing docblock for function export_for_template
(#84) Line exceeds 132 characters; contains 149 characters
(#101) Line exceeds 132 characters; contains 134 characters
(#104) Inline comments must start with a capital letter, digit or 3-dots sequence
(#112) Missing docblock for function add_cm_data
(#154) Missing docblock for function get_template_name
course/format/topicsactivitycards/classes/output/courseformat/content/section/cmitem.php
(#1) No one-line description found in phpdocs for docblock of file cmitem.php
(#31) Missing docblock for class cmitem
(#32) Missing docblock for function export_for_template
(#60) Inline comments must start with a capital letter, digit or 3-dots sequence
(#74) Line exceeds 132 characters; contains 134 characters
(#104) Missing docblock for function get_template_name
course/format/topicsactivitycards/classes/output/courseformat/content/section/header.php
(#1) No one-line description found in phpdocs for docblock of file header.php
(#31) Missing docblock for class header
(#32) Missing docblock for function export_for_template
course/format/topicsactivitycards/classes/output/renderer.php
(#1) No one-line description found in phpdocs for docblock of file renderer.php
(#30) Missing docblock for class renderer
course/format/topicsactivitycards/db/upgrade.php
(#1) No one-line description found in phpdocs for docblock of file upgrade.php
(#26) Missing docblock for function xmldb_format_topicsactivitycards_upgrade
course/format/topicsactivitycards/format.php
(#1) No one-line description found in phpdocs for docblock of file format.php
course/format/topicsactivitycards/lang/en/format_topicsactivitycards.php
(#1) No one-line description found in phpdocs for docblock of file format_topicsactivitycards.php
course/format/topicsactivitycards/lib.php
(#1) No one-line description found in phpdocs for docblock of file lib.php
(#32) Missing docblock for class format_topicsactivitycards
(#33) Missing docblock for constant format_topicsactivitycards::SECTIONLAYOUT_COURSEDEFAULT
(#34) Missing docblock for constant format_topicsactivitycards::SECTIONLAYOUT_CARDS
(#35) Missing docblock for constant format_topicsactivitycards::SECTIONLAYOUT_LIST
(#37) Missing docblock for constant format_topicsactivitycards::SECTIONHEADING_COURSEDEFAULT
(#38) Missing docblock for constant format_topicsactivitycards::SECTIONHEADING_HEADER
(#39) Missing docblock for constant format_topicsactivitycards::SECTIONHEADING_LINKEDCARD
(#40) Missing docblock for constant format_topicsactivitycards::SECTIONHEADING_CARD_WITHCONTENTS
(#42) Missing docblock for constant format_topicsactivitycards::PAGELAYOUT_FIXEDWIDTH
(#43) Missing docblock for constant format_topicsactivitycards::PAGELAYOUT_FULLWIDTH
(#45) Missing docblock for function page_set_course
(#51) Missing docblock for function course_format_options
(#79) Line exceeds 132 characters; contains 133 characters
(#80) Line exceeds 132 characters; contains 147 characters
(#158) Missing docblock for function section_format_options
(#171) Line exceeds 132 characters; contains 139 characters
(#278) Missing docblock for function create_edit_form_elements
(#299) Line exceeds maximum limit of 180 characters; contains 185 characters
(#311) Line exceeds 132 characters; contains 171 characters
(#322) Missing docblock for function update_course_format_options
(#326) Line exceeds 132 characters; contains 149 characters
(#335) Missing docblock for function update_section_format_options
(#352) Line exceeds 132 characters; contains 152 characters
(#361) Missing docblock for function get_view_url
(#386) Missing docblock for function uses_sections
(#390) Missing docblock for function get_best_editing_context
(#403) No one-line description found in phpdocs for docblock of function texteditoroptions
(#413) Missing docblock for function uses_indentation
(#431) Missing member variable doc comment
(#433) Missing docblock for function get_cm_metadatas
(#453) Missing member variable doc comment
(#455) Missing docblock for function get_cm_cardimages
(#480) Missing member variable doc comment
(#482) Missing docblock for function get_section_cardimages
(#490) Line exceeds 132 characters; contains 176 characters
(#508) Missing docblock for function get_area_files
(#537) Missing docblock for function instance_sql_fields
(#548) Inline comments must start with a capital letter, digit or 3-dots sequence
(#562) Missing docblock for function normalise_render_width
(#569) Missing docblock for function get_format_options
(#587) Missing member variable doc comment
(#589) Missing docblock for function get_tactags
(#676) Missing docblock for function format_topicsactivitycards_cardbackgroundimage_filemanageroptions
(#686) Missing docblock for function format_topicsactivitycards_showcoursemoduleelements
(#742) Line exceeds 132 characters; contains 145 characters
(#758) Line exceeds 132 characters; contains 149 characters
(#761) Line exceeds 132 characters; contains 172 characters
(#767) Line exceeds 132 characters; contains 154 characters
(#776) Missing docblock for function format_topicsactivitycards_coursemodule_edit_post_actions
(#827) Missing docblock for function format_topicsactivitycards_coursemodule_validation
(#845) Missing docblock for function format_topicsactivitycards_pluginfile
course/format/topicsactivitycards/tests/fixtures/overridde_testing_data_generator.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#7) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#8) Missing @copyright tag
(#8) Missing @license tag
(#8) Missing docblock for class overridde_testing_data_generator
(#9) Missing docblock for function create_course
course/format/topicsactivitycards/tests/format_topicsactivitycards_test.php
(#1) No one-line description found in phpdocs for docblock of file format_topicsactivitycards_test.php
(#28) PHPUnit class namespace "tests" does not match expected file namespace "format_topicsactivitycards"
(#41) Missing docblock for class format_topicsactivitycards_test
(#43) Missing member variable doc comment
(#46) Docblock tag "@static" is not recommended.
(#63) Test method test_get_default_section_name() is missing any coverage information, own or at class level
(#94) Test method test_update_inplace_editable() is missing any coverage information, own or at class level
(#118) Line exceeds 132 characters; contains 134 characters
(#129) Test method test_inplace_editable() is missing any coverage information, own or at class level
(#143) Line exceeds 132 characters; contains 135 characters
course/format/topicsactivitycards/version.php
(#1) No one-line description found in phpdocs for docblock of file version.php

Javascript coding style problems

(2 errors, 8 warnings)

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

course/format/topicsactivitycards/Gruntfile.js
(#2) 'module' is not defined. (no-undef)
(#14) Extra space after key 'styles.css'. (key-spacing)
(#20) A space is required after ','. (comma-spacing)
(#21) Missing semicolon. (@babel/semi)
course/format/topicsactivitycards/amd/src/tactags.js
(#24) Unexpected space before function parentheses. (space-before-function-paren)
(#26) Unexpected space before function parentheses. (space-before-function-paren)
(#27) Unexpected space before function parentheses. (space-before-function-paren)
(#37) Expected space or tab after '//' in comment. (spaced-comment)
(#39) Expected space or tab after '//' in comment. (spaced-comment)
(#43) Expected space or tab after '//' in comment. (spaced-comment)

CSS problems

(197 errors, 4 warnings)

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

course/format/topicsactivitycards/styles.css
(#2) Expected newline before "}" (block-closing-brace-newline-before)
(#7) Expected newline before "}" (block-closing-brace-newline-before)
(#10) Expected newline before "}" (block-closing-brace-newline-before)
(#14) Expected newline before "}" (block-closing-brace-newline-before)
(#23) Expected newline before "}" (block-closing-brace-newline-before)
(#32) Expected newline before "}" (block-closing-brace-newline-before)
(#35) Expected newline before "}" (block-closing-brace-newline-before)
(#39) Expected newline before "}" (block-closing-brace-newline-before)
(#44) Expected newline before "}" (block-closing-brace-newline-before)
(#48) Expected newline before "}" (block-closing-brace-newline-before)
(#52) Expected newline before "}" (block-closing-brace-newline-before)
(#57) Expected newline before "}" (block-closing-brace-newline-before)
(#60) Expected newline before "}" (block-closing-brace-newline-before)
(#65) Expected newline before "}" (block-closing-brace-newline-before)
(#70) Expected newline before "}" (block-closing-brace-newline-before)
(#73) Expected newline before "}" (block-closing-brace-newline-before)
(#75) Expected newline before "}" (block-closing-brace-newline-before)
(#81) Expected newline before "}" (block-closing-brace-newline-before)
(#84) Expected newline before "}" (block-closing-brace-newline-before)
(#88) Expected newline before "}" (block-closing-brace-newline-before)
(#92) Expected newline before "}" (block-closing-brace-newline-before)
(#95) Expected newline before "}" (block-closing-brace-newline-before)
(#100) Expected newline before "}" (block-closing-brace-newline-before)
(#6) Unexpected !important (declaration-no-important)
(#27) Unexpected !important (declaration-no-important)
(#60) Unexpected !important (declaration-no-important)
(#65) Unexpected !important (declaration-no-important)
(#69) Unexpected !important (declaration-no-important)
(#100) Unexpected !important (declaration-no-important)
(#59) Expected line length to be no more than 132 characters (max-line-length)
(#74) Expected line length to be no more than 132 characters (max-line-length)
(#77) Expected line length to be no more than 132 characters (max-line-length)
(#83) Expected line length to be no more than 132 characters (max-line-length)
(#2) Expected indentation of 4 spaces (indentation)
(#6) Expected indentation of 4 spaces (indentation)
(#7) Expected indentation of 4 spaces (indentation)
(#10) Expected indentation of 4 spaces (indentation)
(#13) Expected indentation of 4 spaces (indentation)
(#14) Expected indentation of 4 spaces (indentation)
(#18) Expected indentation of 4 spaces (indentation)
(#19) Expected indentation of 4 spaces (indentation)
(#20) Expected indentation of 4 spaces (indentation)
(#21) Expected indentation of 4 spaces (indentation)
(#22) Expected indentation of 4 spaces (indentation)
(#23) Expected indentation of 4 spaces (indentation)
(#27) Expected indentation of 4 spaces (indentation)
(#28) Expected indentation of 4 spaces (indentation)
(#29) Expected indentation of 4 spaces (indentation)
(#30) Expected indentation of 4 spaces (indentation)
(#31) Expected indentation of 4 spaces (indentation)
(#32) Expected indentation of 4 spaces (indentation)
(#33) Expected indentation of 0 spaces (indentation)
(#34) Expected indentation of 0 spaces (indentation)
(#36) Expected indentation of 0 spaces (indentation)
(#37) Expected indentation of 0 spaces (indentation)
(#42) Expected indentation of 4 spaces (indentation)
(#43) Expected indentation of 4 spaces (indentation)
(#44) Expected indentation of 4 spaces (indentation)
(#47) Expected indentation of 4 spaces (indentation)
(#48) Expected indentation of 4 spaces (indentation)
(#51) Expected indentation of 4 spaces (indentation)
(#52) Expected indentation of 4 spaces (indentation)
(#55) Expected indentation of 4 spaces (indentation)
(#56) Expected indentation of 4 spaces (indentation)
(#57) Expected indentation of 4 spaces (indentation)
(#60) Expected indentation of 4 spaces (indentation)
(#63) Expected indentation of 4 spaces (indentation)
(#64) Expected indentation of 4 spaces (indentation)
(#65) Expected indentation of 4 spaces (indentation)
(#69) Expected indentation of 4 spaces (indentation)
(#70) Expected indentation of 4 spaces (indentation)
(#73) Expected indentation of 4 spaces (indentation)
(#74) Expected indentation of 0 spaces (indentation)
(#78) Expected indentation of 4 spaces (indentation)
(#79) Expected indentation of 4 spaces (indentation)
(#80) Expected indentation of 4 spaces (indentation)
(#81) Expected indentation of 4 spaces (indentation)
(#84) Expected indentation of 4 spaces (indentation)
(#87) Expected indentation of 4 spaces (indentation)
(#88) Expected indentation of 4 spaces (indentation)
(#91) Expected indentation of 4 spaces (indentation)
(#92) Expected indentation of 4 spaces (indentation)
(#95) Expected indentation of 4 spaces (indentation)
(#100) Expected indentation of 4 spaces (indentation)
course/format/topicsactivitycards/scss/styles.scss
(#33) Expected single space before "{" (block-opening-brace-space-before)
(#8) Unexpected !important (declaration-no-important)
(#34) Unexpected !important (declaration-no-important)
(#76) Unexpected !important (declaration-no-important)
(#82) Unexpected !important (declaration-no-important)
(#88) Unexpected !important (declaration-no-important)
(#134) Unexpected !important (declaration-no-important)
(#2) Expected indentation of 4 spaces (indentation)
(#4) Expected indentation of 4 spaces (indentation)
(#3) Expected indentation of 8 spaces (indentation)
(#6) Expected indentation of 4 spaces (indentation)
(#10) Expected indentation of 4 spaces (indentation)
(#7) Expected indentation of 4 spaces (indentation)
(#8) Expected indentation of 8 spaces (indentation)
(#9) Expected indentation of 8 spaces (indentation)
(#12) Expected indentation of 4 spaces (indentation)
(#14) Expected indentation of 4 spaces (indentation)
(#13) Expected indentation of 8 spaces (indentation)
(#16) Expected indentation of 4 spaces (indentation)
(#126) Expected indentation of 4 spaces (indentation)
(#17) Expected indentation of 8 spaces (indentation)
(#20) Expected indentation of 8 spaces (indentation)
(#18) Expected indentation of 12 spaces (indentation)
(#19) Expected indentation of 12 spaces (indentation)
(#22) Expected indentation of 8 spaces (indentation)
(#30) Expected indentation of 8 spaces (indentation)
(#23) Expected indentation of 8 spaces (indentation)
(#24) Expected indentation of 12 spaces (indentation)
(#25) Expected indentation of 12 spaces (indentation)
(#26) Expected indentation of 12 spaces (indentation)
(#27) Expected indentation of 12 spaces (indentation)
(#28) Expected indentation of 12 spaces (indentation)
(#29) Expected indentation of 12 spaces (indentation)
(#32) Expected indentation of 8 spaces (indentation)
(#48) Expected indentation of 8 spaces (indentation)
(#33) Expected indentation of 8 spaces (indentation)
(#34) Expected indentation of 12 spaces (indentation)
(#35) Expected indentation of 12 spaces (indentation)
(#36) Expected indentation of 12 spaces (indentation)
(#37) Expected indentation of 12 spaces (indentation)
(#38) Expected indentation of 12 spaces (indentation)
(#39) Expected indentation of 12 spaces (indentation)
(#41) Expected indentation of 12 spaces (indentation)
(#43) Expected indentation of 12 spaces (indentation)
(#42) Expected indentation of 16 spaces (indentation)
(#44) Expected indentation of 12 spaces (indentation)
(#47) Expected indentation of 12 spaces (indentation)
(#45) Expected indentation of 16 spaces (indentation)
(#46) Expected indentation of 16 spaces (indentation)
(#50) Expected indentation of 8 spaces (indentation)
(#54) Expected indentation of 8 spaces (indentation)
(#51) Expected indentation of 12 spaces (indentation)
(#52) Expected indentation of 12 spaces (indentation)
(#53) Expected indentation of 12 spaces (indentation)
(#56) Expected indentation of 8 spaces (indentation)
(#66) Expected indentation of 8 spaces (indentation)
(#57) Expected indentation of 12 spaces (indentation)
(#60) Expected indentation of 12 spaces (indentation)
(#58) Expected indentation of 16 spaces (indentation)
(#59) Expected indentation of 16 spaces (indentation)
(#62) Expected indentation of 12 spaces (indentation)
(#65) Expected indentation of 12 spaces (indentation)
(#63) Expected indentation of 16 spaces (indentation)
(#64) Expected indentation of 16 spaces (indentation)
(#68) Expected indentation of 8 spaces (indentation)
(#72) Expected indentation of 8 spaces (indentation)
(#69) Expected indentation of 12 spaces (indentation)
(#70) Expected indentation of 12 spaces (indentation)
(#71) Expected indentation of 12 spaces (indentation)
(#74) Expected indentation of 8 spaces (indentation)
(#84) Expected indentation of 8 spaces (indentation)
(#75) Expected indentation of 12 spaces (indentation)
(#77) Expected indentation of 12 spaces (indentation)
(#76) Expected indentation of 16 spaces (indentation)
(#79) Expected indentation of 12 spaces (indentation)
(#83) Expected indentation of 12 spaces (indentation)
(#80) Expected indentation of 16 spaces (indentation)
(#81) Expected indentation of 16 spaces (indentation)
(#82) Expected indentation of 16 spaces (indentation)
(#86) Expected indentation of 8 spaces (indentation)
(#90) Expected indentation of 8 spaces (indentation)
(#87) Expected indentation of 8 spaces (indentation)
(#88) Expected indentation of 12 spaces (indentation)
(#89) Expected indentation of 12 spaces (indentation)
(#92) Expected indentation of 8 spaces (indentation)
(#98) Expected indentation of 8 spaces (indentation)
(#93) Expected indentation of 12 spaces (indentation)
(#95) Expected indentation of 12 spaces (indentation)
(#97) Expected indentation of 12 spaces (indentation)
(#96) Expected indentation of 16 spaces (indentation)
(#100) Expected indentation of 8 spaces (indentation)
(#105) Expected indentation of 8 spaces (indentation)
(#101) Expected indentation of 12 spaces (indentation)
(#102) Expected indentation of 12 spaces (indentation)
(#103) Expected indentation of 12 spaces (indentation)
(#104) Expected indentation of 12 spaces (indentation)
(#107) Expected indentation of 8 spaces (indentation)
(#109) Expected indentation of 8 spaces (indentation)
(#108) Expected indentation of 12 spaces (indentation)
(#111) Expected indentation of 8 spaces (indentation)
(#114) Expected indentation of 8 spaces (indentation)
(#112) Expected indentation of 12 spaces (indentation)
(#113) Expected indentation of 12 spaces (indentation)
(#116) Expected indentation of 8 spaces (indentation)
(#125) Expected indentation of 8 spaces (indentation)
(#117) Expected indentation of 12 spaces (indentation)
(#120) Expected indentation of 12 spaces (indentation)
(#118) Expected indentation of 16 spaces (indentation)
(#119) Expected indentation of 16 spaces (indentation)
(#122) Expected indentation of 12 spaces (indentation)
(#124) Expected indentation of 12 spaces (indentation)
(#123) Expected indentation of 16 spaces (indentation)
(#131) Expected indentation of 4 spaces (indentation)
(#135) Expected indentation of 4 spaces (indentation)
(#132) Expected indentation of 4 spaces (indentation)
(#133) Expected indentation of 4 spaces (indentation)
(#134) Expected indentation of 8 spaces (indentation)

PHPDocs style problems

(2 errors, 0 warnings)

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

course/format/topicsactivitycards/backup/moodle2/restore_format_topicsactivitycards_plugin.class.php
(#78) Phpdocs for function restore_format_topicsactivitycards_plugin::process_metadata has incomplete parameters list
course/format/topicsactivitycards/classes/output/courseformat/content.php
(#33) Phpdocs for function content::get_template_name has incomplete parameters list

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/local/content.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation info, line 3: Empty heading. (qid"> <h2 class="accesshide"></h2>)
(#1) ESLint warning [space-in-parens]: There should be no space before this paren. ( component.init('course-format-would-be-a-uniqid', {}, );
course/format/topicsactivitycards/templates/local/content/completion_automatic.mustache
(#1) HTML Validation error, line 3: An element with “role=listitem” must be contained in, or owned by, an element with “role=list” or “role=group”. (body> <span class="badge badge-pill alert-success icon-no-margin" role="listitem" title="((completion_automatic%3Adone%2C+core_course)) View" aria-label="Done: View (Set by Admin User)" > )
course/format/topicsactivitycards/templates/local/content/section.mustache
(#1) HTML Validation error, line 15: Element “li” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (ad><body><li id="section-3" class="section course-section main p-0 clearfix tactaggable current col-12 pull-left " data-sectionid="3" data-sectionreturnid="0" data-for="section" data-id="35" data-number="3"> <)
course/format/topicsactivitycards/templates/local/content/section/cmitem.mustache
(#1) HTML Validation error, line 9: Element “li” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (d><body><li class="activity activity-wrapper tac-container forum modtype_forum newmessages tactaggable " id="module-3" data-for="cmitem" data-id="3"> )
course/format/topicsactivitycards/templates/lozenges.mustache
(#1) Example context missing (@template section not found.)

Gherkin .feature problems

(0 errors, 0 warnings)

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