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

(31 errors, 29 warnings)

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

course/format/softcourse/classes/output/courseformat/content/section.php
(#45) Missing docblock for function export_for_template
(#111) Short array syntax must be used to define arrays
course/format/softcourse/classes/output/renderer.php
(#106) Missing docblock for function render_content
(#245) There should be a comma after the last array item in a multi-line array.
(#250) There should be a comma after the last array item in a multi-line array.
(#251) There should be a comma after the last array item in a multi-line array.
(#266) There should be a comma after the last array item in a multi-line array.
(#271) There should be a comma after the last array item in a multi-line array.
(#272) There should be a comma after the last array item in a multi-line array.
course/format/softcourse/classes/privacy/provider.php
(#27) Missing docblock for class provider
(#35) There must not be a space before the colon in a return type declaration
course/format/softcourse/db/services.php
(#29) Short array syntax must be used to define arrays
(#30) Short array syntax must be used to define arrays
(#37) There should be a comma after the last array item in a multi-line array.
(#39) Short array syntax must be used to define arrays
(#46) There should be a comma after the last array item in a multi-line array.
(#47) There should be a comma after the last array item in a multi-line array.
(#51) Short array syntax must be used to define arrays
(#52) Short array syntax must be used to define arrays
(#53) Short array syntax must be used to define arrays
(#55) There should be a comma after the last array item in a multi-line array.
(#57) Short array syntax must be used to define arrays
(#58) Short array syntax must be used to define arrays
(#60) There should be a comma after the last array item in a multi-line array.
(#61) There should be a comma after the last array item in a multi-line array.
course/format/softcourse/externallib.php
(#53) Short array syntax must be used to define arrays
(#57) There should be a comma after the last array item in a multi-line array.
(#82) Short array syntax must be used to define arrays
(#99) Short array syntax must be used to define arrays
(#114) There should be a comma after the last array item in a multi-line array.
(#128) There should be a comma after the last array item in a multi-line array.
(#142) Short array syntax must be used to define arrays
(#144) There should be a comma after the last array item in a multi-line array.
(#167) Short array syntax must be used to define arrays
(#194) There should be a comma after the last array item in a multi-line array.
course/format/softcourse/lang/en/format_softcourse.php
(#29) The string key "deletesection" is not in the correct order, it should be before "editsectionname"
(#32) The string key "pluginname" is not in the correct order, it should be before "sectionname"
(#34) The string key "page-course-view-softcourse" is not in the correct order, it should be before "section0name"
(#36) The string key "hidefromothers" is not in the correct order, it should be before "page-course-view-softcourse-x"
(#38) The string key "privacy:metadata" is not in the correct order, it should be before "showfromothers"
(#40) The string key "countactivities" is not in the correct order, it should be before "startcourse"
(#42) The string key "hideallsections" is not in the correct order, it should be before "progression"
(#47) The string key "delete_img" is not in the correct order, it should be before "update_img"
(#50) The string key "hidesectionzero" is not in the correct order, it should be before "introduction_help"
course/format/softcourse/lib.php
(#119) Short array syntax must be used to define arrays
(#125) Usage of ELSEIF not allowed; use ELSE IF instead
(#262) Short array syntax must be used to define arrays
(#291) There should be a comma after the last array item in a multi-line array.
(#295) There should be a comma after the last array item in a multi-line array.
(#300) There should be a comma after the last array item in a multi-line array.
(#305) There should be a comma after the last array item in a multi-line array.
(#318) There should be a comma after the last array item in a multi-line array.
(#319) There should be a comma after the last array item in a multi-line array.
(#320) There should be a comma after the last array item in a multi-line array.
(#330) There should be a comma after the last array item in a multi-line array.
(#331) There should be a comma after the last array item in a multi-line array.
(#332) There should be a comma after the last array item in a multi-line array.
(#339) There should be a comma after the last array item in a multi-line array.
(#496) Short array syntax must be used to define arrays
(#514) Short array syntax must be used to define arrays

Javascript coding style problems

(0 errors, 15 warnings)

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

course/format/softcourse/amd/src/actions.js
(#113) Identifier 'get_config' is not in camel case. (camelcase)
(#115) Identifier 'container_node' is not in camel case. (camelcase)
(#115) Extra space after key 'container_node'. (key-spacing)
(#116) Identifier 'container_class' is not in camel case. (camelcase)
(#116) Extra space after key 'container_class'. (key-spacing)
(#117) Identifier 'section_node' is not in camel case. (camelcase)
(#117) Extra space after key 'section_node'. (key-spacing)
(#118) Identifier 'section_class' is not in camel case. (camelcase)
(#118) Extra space after key 'section_class'. (key-spacing)
(#129) Identifier 'swap_sections' is not in camel case. (camelcase)
(#131) Extra space after key 'COURSECONTENT'. (key-spacing)
(#132) Extra space after key 'SECTIONADDMENUS'. (key-spacing)
(#149) Identifier 'process_sections' is not in camel case. (camelcase)
(#151) Extra space after key 'SECTIONNAME'. (key-spacing)
(#154) Extra space after key 'SECTIONLEFTSIDE'. (key-spacing)

CSS problems

(39 errors, 42 warnings)

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

course/format/softcourse/styles.css
(#15) Invalid value for "color" (csstree/validator)
(#103) Invalid value for "background-color" (csstree/validator)
(#300) Invalid value for "color" (csstree/validator)
(#312) Invalid value for "color" (csstree/validator)
(#337) Invalid value for "color" (csstree/validator)
(#15) Unexpected duplicate "color" (declaration-block-no-duplicate-properties)
(#103) Unexpected duplicate "background-color" (declaration-block-no-duplicate-properties)
(#300) Unexpected duplicate "color" (declaration-block-no-duplicate-properties)
(#312) Unexpected duplicate "color" (declaration-block-no-duplicate-properties)
(#337) Unexpected duplicate "color" (declaration-block-no-duplicate-properties)
(#76) Expected line length to be no more than 132 characters (max-line-length)
(#80) Expected line length to be no more than 132 characters (max-line-length)
(#85) Expected line length to be no more than 132 characters (max-line-length)
(#89) Expected line length to be no more than 132 characters (max-line-length)
(#93) Expected line length to be no more than 132 characters (max-line-length)
(#101) Expected line length to be no more than 132 characters (max-line-length)
(#113) Expected line length to be no more than 132 characters (max-line-length)
(#120) Expected line length to be no more than 132 characters (max-line-length)
(#135) Expected line length to be no more than 132 characters (max-line-length)
(#141) Expected line length to be no more than 132 characters (max-line-length)
(#147) Expected line length to be no more than 132 characters (max-line-length)
(#152) Expected line length to be no more than 132 characters (max-line-length)
(#165) Expected line length to be no more than 132 characters (max-line-length)
(#169) Expected line length to be no more than 132 characters (max-line-length)
(#174) Expected line length to be no more than 132 characters (max-line-length)
(#182) Expected line length to be no more than 132 characters (max-line-length)
(#187) Expected line length to be no more than 132 characters (max-line-length)
(#192) Expected line length to be no more than 132 characters (max-line-length)
(#205) Expected line length to be no more than 132 characters (max-line-length)
(#209) Expected line length to be no more than 132 characters (max-line-length)
(#214) Expected line length to be no more than 132 characters (max-line-length)
(#222) Expected line length to be no more than 132 characters (max-line-length)
(#227) Expected line length to be no more than 132 characters (max-line-length)
(#232) Expected line length to be no more than 132 characters (max-line-length)
(#243) Expected line length to be no more than 132 characters (max-line-length)
(#248) Expected line length to be no more than 132 characters (max-line-length)
(#261) Expected line length to be no more than 132 characters (max-line-length)
(#274) Expected line length to be no more than 132 characters (max-line-length)
(#284) Expected line length to be no more than 132 characters (max-line-length)
(#288) Expected line length to be no more than 132 characters (max-line-length)
(#298) Expected line length to be no more than 132 characters (max-line-length)
(#306) Expected line length to be no more than 132 characters (max-line-length)
(#310) Expected line length to be no more than 132 characters (max-line-length)
(#318) Expected line length to be no more than 132 characters (max-line-length)
(#326) Expected line length to be no more than 132 characters (max-line-length)
(#331) Expected line length to be no more than 132 characters (max-line-length)
(#335) Expected line length to be no more than 132 characters (max-line-length)
(#344) Expected line length to be no more than 132 characters (max-line-length)
(#359) Expected line length to be no more than 132 characters (max-line-length)
(#374) Expected line length to be no more than 132 characters (max-line-length)
(#378) Expected line length to be no more than 132 characters (max-line-length)
(#386) Expected line length to be no more than 132 characters (max-line-length)
(#1) Expected newline after "," (selector-list-comma-newline-after)
(#9) Expected newline after "," (selector-list-comma-newline-after)
(#80) Expected newline after "," (selector-list-comma-newline-after)
(#80) Expected newline after "," (selector-list-comma-newline-after)
(#85) Expected newline after "," (selector-list-comma-newline-after)
(#85) Expected newline after "," (selector-list-comma-newline-after)
(#89) Expected newline after "," (selector-list-comma-newline-after)
(#93) Expected newline after "," (selector-list-comma-newline-after)
(#93) Expected newline after "," (selector-list-comma-newline-after)
(#93) Expected newline after "," (selector-list-comma-newline-after)
(#93) Expected newline after "," (selector-list-comma-newline-after)
(#93) Expected newline after "," (selector-list-comma-newline-after)
(#165) Expected newline after "," (selector-list-comma-newline-after)
(#205) Expected newline after "," (selector-list-comma-newline-after)
(#359) Expected newline after "," (selector-list-comma-newline-after)
(#374) Expected newline after "," (selector-list-comma-newline-after)
(#378) Expected newline after "," (selector-list-comma-newline-after)
(#386) Expected newline after "," (selector-list-comma-newline-after)
course/format/softcourse/scss/styles.scss
(#22) Unexpected duplicate "color" (declaration-block-no-duplicate-properties)
(#128) Unexpected duplicate "background-color" (declaration-block-no-duplicate-properties)
(#317) Unexpected duplicate "color" (declaration-block-no-duplicate-properties)
(#329) Unexpected duplicate "color" (declaration-block-no-duplicate-properties)
(#352) Unexpected duplicate "color" (declaration-block-no-duplicate-properties)
(#81) Expected newline after ":" with a multi-line declaration (declaration-colon-newline-after)
(#121) Expected newline after ":" with a multi-line declaration (declaration-colon-newline-after)
(#82) Expected indentation of 32 spaces (indentation)
(#83) Expected indentation of 32 spaces (indentation)
(#122) Expected indentation of 32 spaces (indentation)
(#123) Expected indentation of 32 spaces (indentation)

PHPDocs style problems

(3 errors, 0 warnings)

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

course/format/softcourse/externallib.php
(#44) Phpdocs for function format_softcourse_external::update_section_image has incomplete parameters list
(#136) Phpdocs for function format_softcourse_external::delete_section_image has incomplete parameters list
course/format/softcourse/lib.php
(#100) Inline phpdocs tag {@link course_can_delete_section()} 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

(0 errors, 21 warnings)

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

course/format/softcourse/templates/content.mustache
(#1) Example context missing.
(#1) ESLint warning [space-in-parens]: There should be no space before this paren. ( component.init('would-be-a-uniqid-course-format', {}, );
(#1) ESLint warning [space-before-function-paren]: Unexpected space before function parentheses. ( document.body.addEventListener('click', function (event) {
(#1) ESLint warning [capitalized-comments]: Comments should not begin with a lowercase character. ( // filter out clicks on any other elements
(#1) ESLint error [no-eq-null]: Use '===' to compare with null. ( if (selector != null && selector.length > 0) {
(#1) ESLint error [no-eq-null]: Use '===' to compare with null. ( if (el != null && el.innerHTML.length > 0) {
(#1) ESLint warning [keyword-spacing]: Expected space(s) after "if". ( if(el.innerHTML != fulltext[i].join(' ')) {
(#1) ESLint warning [max-depth]: Blocks are nested too deeply (5). Maximum allowed is 4. ( if(el.innerHTML != fulltext[i].join(' ')) {
(#1) ESLint warning [capitalized-comments]: Comments should not begin with a lowercase character. ( <!-- var p = container.querySelector('p');-->
(#1) ESLint warning [keyword-spacing]: Expected space(s) after "while". ( while(el.querySelector('div').offsetHeight > el.clientHeight) {
(#1) ESLint warning [keyword-spacing]: Expected space(s) after "if". ( if(truncate) {
(#1) ESLint warning [max-depth]: Blocks are nested too deeply (5). Maximum allowed is 4. ( if(truncate) {
(#1) ESLint warning [keyword-spacing]: Expected space(s) after "if". ( if(el.querySelector('div').lastChild.tagName) {
(#1) ESLint warning [max-depth]: Blocks are nested too deeply (6). Maximum allowed is 4. ( if(el.querySelector('div').lastChild.tagName) {
(#1) ESLint error [no-undef]: '$' is not defined. ( $(window).resize(function() {
(#1) ESLint warning [block-spacing]: Requires a space before '}'. ( }});
(#1) ESLint warning [brace-style]: Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. ( }});
course/format/softcourse/templates/section.mustache
(#1) Example context missing.
(#1) HTML Validation error, line 3: Element “li” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (d><body><li role="tab" id="softcourse-section-" class="softcourse-section card position-relative"> <)
(#1) HTML Validation error, line 3: An element with “role=tab” must be contained in, or owned by, an element with “role=tablist”. (d><body><li role="tab" id="softcourse-section-" class="softcourse-section card position-relative"> <)
course/format/softcourse/templates/sections.mustache
(#1) Example context missing.

Gherkin .feature problems

(0 errors, 0 warnings)

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