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

(85 errors, 2 warnings)

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

public/course/format/softcourse/backup/moodle2/restore_format_softcourse_plugin.class.php
(#36) Opening brace must not be followed by a blank line
(#64) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#65) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#68) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#68) Closing parenthesis of a multi-line function call must be on a line by itself
(#81) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#113) Opening parenthesis of a multi-line function call must be the last content on the line
(#114) Multi-line function call not indented correctly; expected 20 spaces but found 24
(#114) Closing parenthesis of a multi-line function call must be on a line by itself
public/course/format/softcourse/classes/output/courseformat/content.php
(#36) Opening brace must not be followed by a blank line
(#45) The closing brace for the class must go on the next line after the body
public/course/format/softcourse/classes/output/courseformat/content/section.php
(#40) Opening brace must not be followed by a blank line
(#78) Variable "sectionFieldsSet" must be all lower-case
(#96) Variable "sectionFieldsSet" must be all lower-case
(#105) Variable "sectionFieldsSet" must be all lower-case
(#151) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#152) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#160) Variable "onlyHiddenOrUnavailable" must be all lower-case
(#164) Variable "onlyHiddenOrUnavailable" must be all lower-case
(#202) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#205) Each line in a multi-line control structure must be indented at least once; expected at least 12 spaces, but found 8
(#205) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#271) Visibility must be declared on method "get_completion"
(#273) Inline comments must end in full-stops, exclamation marks, or question marks
(#278) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#279) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#280) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#281) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#281) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#286) Blank line found at start of control structure
(#288) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#291) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#314) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#315) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#323) There should be a comma after the last array item in a multi-line array.
public/course/format/softcourse/classes/output/renderer.php
(#40) Opening brace must not be followed by a blank line
(#117) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#118) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#119) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#120) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#120) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#145) Blank line found at start of control structure
(#156) Blank line found at end of control structure
(#234) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#235) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#236) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#237) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#237) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#290) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#293) Each line in a multi-line control structure must be indented at least once; expected at least 12 spaces, but found 8
(#293) The closing parenthesis of a multi-line control structure must be on the line after the last expression
public/course/format/softcourse/classes/privacy/provider.php
(#32) Opening brace must not be followed by a blank line
public/course/format/softcourse/db/upgrade.php
(#36) Blank line found at start of control structure
(#50) Blank line found at start of control structure
(#59) Blank line found at start of control structure
public/course/format/softcourse/db/upgradelib.php
(#108) Long list syntax is not allowed
public/course/format/softcourse/externallib.php
(#39) Opening brace must not be followed by a blank line
public/course/format/softcourse/format.php
(#28) Expected at least 1 space before "."; 0 found
(#28) Expected at least 1 space after "."; 0 found
(#29) Expected at least 1 space before "."; 0 found
(#29) Expected at least 1 space after "."; 0 found
public/course/format/softcourse/lib.php
(#38) Opening brace must not be followed by a blank line
(#126) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#127) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#128) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#129) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#129) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#139) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#142) Each line in a multi-line control structure must be indented at least once; expected at least 16 spaces, but found 12
(#142) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#247) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#248) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#249) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#250) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#250) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#295) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#298) Each line in a multi-line control structure must be indented at least once; expected at least 20 spaces, but found 16
(#298) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#299) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#302) Each line in a multi-line control structure must be indented at least once; expected at least 24 spaces, but found 20
(#302) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#564) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $sectionid.
(#595) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#596) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#597) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#598) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#598) The closing parenthesis of a multi-line control structure must be on the line after the last expression

Javascript coding style problems

(0 errors, 15 warnings)

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

public/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]

public/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)
public/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

(1 errors, 0 warnings)

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

public/course/format/softcourse/classes/output/courseformat/content/section.php
(#267) Phpdocs for function section::get_completion 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, 5 warnings)

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

public/course/format/softcourse/templates/content.mustache
(#1) Example context missing.
(#1) ESLint did not run
public/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"> <)
public/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]