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

(6 errors, 127 warnings)

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

course/format/flexsections/format.php
(#32) Expected 1 space after ">="; 0 found
(#37) Inline comments must start with a capital letter, digit or 3-dots sequence
(#37) Inline comments must end in full-stops, exclamation marks, or question marks
(#47) Inline comments must end in full-stops, exclamation marks, or question marks
course/format/flexsections/lang/en/format_flexsections.php
(#2) The opening <?php tag must be followed by exactly one newline.
course/format/flexsections/lib.php
(#104) Inline comments must start with a capital letter, digit or 3-dots sequence
(#104) Inline comments must end in full-stops, exclamation marks, or question marks
(#110) Inline comments must start with a capital letter, digit or 3-dots sequence
(#110) Inline comments must end in full-stops, exclamation marks, or question marks
(#115) Inline comments must start with a capital letter, digit or 3-dots sequence
(#115) Inline comments must end in full-stops, exclamation marks, or question marks
(#182) Inline comments must start with a capital letter, digit or 3-dots sequence
(#184) Inline comments must end in full-stops, exclamation marks, or question marks
(#223) Inline comments must start with a capital letter, digit or 3-dots sequence
(#223) Inline comments must end in full-stops, exclamation marks, or question marks
(#426) Inline comments must start with a capital letter, digit or 3-dots sequence
(#426) Inline comments must end in full-stops, exclamation marks, or question marks
(#430) Inline comments must start with a capital letter, digit or 3-dots sequence
(#430) Inline comments must end in full-stops, exclamation marks, or question marks
(#449) Inline comments must start with a capital letter, digit or 3-dots sequence
(#449) Inline comments must end in full-stops, exclamation marks, or question marks
(#451) Inline comments must start with a capital letter, digit or 3-dots sequence
(#451) Inline comments must end in full-stops, exclamation marks, or question marks
(#469) Inline comments must start with a capital letter, digit or 3-dots sequence
(#469) Inline comments must end in full-stops, exclamation marks, or question marks
(#475) Inline comments must start with a capital letter, digit or 3-dots sequence
(#475) Inline comments must end in full-stops, exclamation marks, or question marks
(#561) Inline comments must start with a capital letter, digit or 3-dots sequence
(#561) Inline comments must end in full-stops, exclamation marks, or question marks
(#569) Inline comments must start with a capital letter, digit or 3-dots sequence
(#569) Inline comments must end in full-stops, exclamation marks, or question marks
(#578) Inline comments must start with a capital letter, digit or 3-dots sequence
(#578) Inline comments must end in full-stops, exclamation marks, or question marks
(#589) Inline comments must start with a capital letter, digit or 3-dots sequence
(#589) Inline comments must end in full-stops, exclamation marks, or question marks
(#603) Inline comments must start with a capital letter, digit or 3-dots sequence
(#603) Inline comments must end in full-stops, exclamation marks, or question marks
(#623) Inline comments must start with a capital letter, digit or 3-dots sequence
(#623) Inline comments must end in full-stops, exclamation marks, or question marks
(#627) Inline comments must start with a capital letter, digit or 3-dots sequence
(#627) Inline comments must end in full-stops, exclamation marks, or question marks
(#632) Inline comments must start with a capital letter, digit or 3-dots sequence
(#632) Inline comments must end in full-stops, exclamation marks, or question marks
(#640) Inline comments must start with a capital letter, digit or 3-dots sequence
(#640) Inline comments must end in full-stops, exclamation marks, or question marks
(#668) Inline comments must start with a capital letter, digit or 3-dots sequence
(#668) Inline comments must end in full-stops, exclamation marks, or question marks
(#673) Inline comments must start with a capital letter, digit or 3-dots sequence
(#673) Inline comments must end in full-stops, exclamation marks, or question marks
(#681) Inline comments must start with a capital letter, digit or 3-dots sequence
(#681) Inline comments must end in full-stops, exclamation marks, or question marks
(#726) Inline comments must start with a capital letter, digit or 3-dots sequence
(#726) Inline comments must end in full-stops, exclamation marks, or question marks
(#728) Inline comments must end in full-stops, exclamation marks, or question marks
(#742) Inline comments must end in full-stops, exclamation marks, or question marks
(#758) Inline comments must end in full-stops, exclamation marks, or question marks
(#765) Inline comments must end in full-stops, exclamation marks, or question marks
(#773) Inline comments must end in full-stops, exclamation marks, or question marks
(#781) Inline comments must end in full-stops, exclamation marks, or question marks
(#846) Inline comments must start with a capital letter, digit or 3-dots sequence
(#846) Inline comments must end in full-stops, exclamation marks, or question marks
(#853) Inline comments must start with a capital letter, digit or 3-dots sequence
(#853) Inline comments must end in full-stops, exclamation marks, or question marks
(#915) Inline comments must start with a capital letter, digit or 3-dots sequence
(#915) Inline comments must end in full-stops, exclamation marks, or question marks
(#925) Inline comments must start with a capital letter, digit or 3-dots sequence
(#925) Inline comments must end in full-stops, exclamation marks, or question marks
(#932) Inline comments must start with a capital letter, digit or 3-dots sequence
(#933) Inline comments must end in full-stops, exclamation marks, or question marks
(#1004) Line exceeds 132 characters; contains 139 characters
(#1005) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1005) Inline comments must end in full-stops, exclamation marks, or question marks
(#1014) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1014) Inline comments must end in full-stops, exclamation marks, or question marks
(#1019) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1019) Inline comments must end in full-stops, exclamation marks, or question marks
(#1021) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1021) Inline comments must end in full-stops, exclamation marks, or question marks
(#1050) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1050) Inline comments must end in full-stops, exclamation marks, or question marks
(#1052) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1052) Inline comments must end in full-stops, exclamation marks, or question marks
(#1056) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1056) Inline comments must end in full-stops, exclamation marks, or question marks
(#1064) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1064) Inline comments must end in full-stops, exclamation marks, or question marks
(#1072) Inline comments must end in full-stops, exclamation marks, or question marks
(#1094) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1095) Inline comments must end in full-stops, exclamation marks, or question marks
(#1106) Inline comments must end in full-stops, exclamation marks, or question marks
(#1108) Inline comments must end in full-stops, exclamation marks, or question marks
(#1115) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1115) Inline comments must end in full-stops, exclamation marks, or question marks
(#1140) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1140) Inline comments must end in full-stops, exclamation marks, or question marks
(#1154) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1154) Inline comments must end in full-stops, exclamation marks, or question marks
course/format/flexsections/renderer.php
(#132) Inline comments must start with a capital letter, digit or 3-dots sequence
(#132) Inline comments must end in full-stops, exclamation marks, or question marks
(#147) Inline comments must start with a capital letter, digit or 3-dots sequence
(#147) Inline comments must end in full-stops, exclamation marks, or question marks
(#149) Inline comments must start with a capital letter, digit or 3-dots sequence
(#149) Inline comments must end in full-stops, exclamation marks, or question marks
(#160) Inline comments must start with a capital letter, digit or 3-dots sequence
(#160) Inline comments must end in full-stops, exclamation marks, or question marks
(#166) Inline comments must start with a capital letter, digit or 3-dots sequence
(#166) Inline comments must end in full-stops, exclamation marks, or question marks
(#168) Inline comments must start with a capital letter, digit or 3-dots sequence
(#168) Inline comments must end in full-stops, exclamation marks, or question marks
(#171) Inline comments must start with a capital letter, digit or 3-dots sequence
(#171) Inline comments must end in full-stops, exclamation marks, or question marks
(#177) Inline comments must start with a capital letter, digit or 3-dots sequence
(#177) Inline comments must end in full-stops, exclamation marks, or question marks
(#180) Expected 1 space before "+"; 0 found
(#180) Expected 1 space after "+"; 0 found
(#183) Expected 1 space before "+"; 0 found
(#183) Expected 1 space after "+"; 0 found
(#186) Inline comments must start with a capital letter, digit or 3-dots sequence
(#186) Inline comments must end in full-stops, exclamation marks, or question marks
(#192) Inline comments must start with a capital letter, digit or 3-dots sequence
(#193) Inline comments must end in full-stops, exclamation marks, or question marks
(#198) Inline comments must start with a capital letter, digit or 3-dots sequence
(#198) Inline comments must end in full-stops, exclamation marks, or question marks
(#243) Line exceeds 132 characters; contains 140 characters
(#246) Line exceeds 132 characters; contains 140 characters
(#248) Line exceeds 132 characters; contains 141 characters
(#252) Inline comments must start with a capital letter, digit or 3-dots sequence
(#252) Inline comments must end in full-stops, exclamation marks, or question marks
(#256) Inline comments must start with a capital letter, digit or 3-dots sequence
(#256) Inline comments must end in full-stops, exclamation marks, or question marks
(#260) Inline comments must start with a capital letter, digit or 3-dots sequence
(#260) Inline comments must end in full-stops, exclamation marks, or question marks
course/format/flexsections/version.php
(#28) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(6 errors, 27 warnings)

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

course/format/flexsections/format.js
(#19) Identifier 'get_config' is not in camel case. (camelcase)
(#21) Identifier 'container_node' is not in camel case. (camelcase)
(#21) Extra space after key 'container_node'. (key-spacing)
(#22) Extra space after key 'container_class'. (key-spacing)
(#22) Identifier 'container_class' is not in camel case. (camelcase)
(#23) Extra space after key 'section_node'. (key-spacing)
(#23) Identifier 'section_node' is not in camel case. (camelcase)
(#24) Extra space after key 'section_class'. (key-spacing)
(#24) Identifier 'section_class' is not in camel case. (camelcase)
(#26) Missing semicolon. (semi)
(#28) Unexpected @return tag; function has no return statement. (valid-jsdoc)
(#36) Identifier 'swap_sections' is not in camel case. (camelcase)
(#38) Extra space after key 'COURSECONTENT'. (key-spacing)
(#39) Extra space after key 'SECTIONADDMENUS'. (key-spacing)
(#42) Infix operators must be spaced. (space-infix-ops)
(#42) Infix operators must be spaced. (space-infix-ops)
(#42) Infix operators must be spaced. (space-infix-ops)
(#44) Infix operators must be spaced. (space-infix-ops)
(#44) Infix operators must be spaced. (space-infix-ops)
(#45) Missing semicolon. (semi)
(#47) Expected JSDoc for 'sectionfrom' but found 'sectionto'. (valid-jsdoc)
(#47) Expected JSDoc for 'response' but found 'sectionfrom'. (valid-jsdoc)
(#47) Expected JSDoc for 'sectionlist' but found 'response'. (valid-jsdoc)
(#47) Unexpected @return tag; function has no return statement. (valid-jsdoc)
(#56) Identifier 'process_sections' is not in camel case. (camelcase)
(#56) 'sectionto' is defined but never used. (no-unused-vars)
(#58) Extra space after key 'SECTIONNAME'. (key-spacing)
(#64) Infix operators must be spaced. (space-infix-ops)
(#67) Missing semicolon. (semi)
(#69) Identifier 'handle_flexsections' is not in camel case. (camelcase)
(#88) Missing semicolon. (semi)
(#90) Identifier 'init_flexsections' is not in camel case. (camelcase)
(#92) Missing semicolon. (semi)

CSS problems

(114 errors, 12 warnings)

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

course/format/flexsections/styles_boost.css
(#3) "declaration-no-important" has already been disabled (CssSyntaxError)
course/format/flexsections/styles_bootstrapbase.css
(#1) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#1) Unexpected single-line block (block-no-single-line)
(#1) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
course/format/flexsections/styles.css
(#1) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#2) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#3) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#5) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#6) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#7) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#8) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#9) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#10) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#11) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#15) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#22) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#25) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#26) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#29) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#30) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#31) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#33) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#35) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#36) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#1) Unexpected single-line block (block-no-single-line)
(#2) Unexpected single-line block (block-no-single-line)
(#3) Unexpected single-line block (block-no-single-line)
(#5) Unexpected single-line block (block-no-single-line)
(#6) Unexpected single-line block (block-no-single-line)
(#7) Unexpected single-line block (block-no-single-line)
(#8) Unexpected single-line block (block-no-single-line)
(#9) Unexpected single-line block (block-no-single-line)
(#10) Unexpected single-line block (block-no-single-line)
(#11) Unexpected single-line block (block-no-single-line)
(#15) Unexpected single-line block (block-no-single-line)
(#22) Unexpected single-line block (block-no-single-line)
(#25) Unexpected single-line block (block-no-single-line)
(#26) Unexpected single-line block (block-no-single-line)
(#29) Unexpected single-line block (block-no-single-line)
(#30) Unexpected single-line block (block-no-single-line)
(#31) Unexpected single-line block (block-no-single-line)
(#33) Unexpected single-line block (block-no-single-line)
(#35) Unexpected single-line block (block-no-single-line)
(#36) Unexpected single-line block (block-no-single-line)
(#1) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#2) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#3) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#5) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#6) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#7) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#8) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#9) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#10) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#11) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#15) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#22) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#25) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#26) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#29) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#30) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#31) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#33) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#35) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#36) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#9) Expected "#DDDDDD" to be "#dddddd" (color-hex-case)
(#22) Expected "#AAAAAA" to be "#aaaaaa" (color-hex-case)
(#25) Expected "#DDDDDD" to be "#dddddd" (color-hex-case)
(#29) Expected "#EEEEEE" to be "#eeeeee" (color-hex-case)
(#35) Expected "#DDD" to be "#ddd" (color-hex-case)
(#9) Expected "#DDDDDD" to be "#DDD" (color-hex-length)
(#22) Expected "#AAAAAA" to be "#AAA" (color-hex-length)
(#25) Expected "#DDDDDD" to be "#DDD" (color-hex-length)
(#29) Expected "#EEEEEE" to be "#EEE" (color-hex-length)
(#2) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#2) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#2) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#3) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#9) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#9) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#10) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#31) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#31) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#31) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#31) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#31) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#31) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#31) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#35) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#35) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#2) Expected no more than 1 declaration(s) (declaration-block-single-line-max-declarations)
(#3) Expected no more than 1 declaration(s) (declaration-block-single-line-max-declarations)
(#9) Expected no more than 1 declaration(s) (declaration-block-single-line-max-declarations)
(#10) Expected no more than 1 declaration(s) (declaration-block-single-line-max-declarations)
(#31) Expected no more than 1 declaration(s) (declaration-block-single-line-max-declarations)
(#35) Expected no more than 1 declaration(s) (declaration-block-single-line-max-declarations)
(#10) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#2) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#2) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#2) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#3) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#5) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#8) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#9) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#9) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#10) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#10) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#15) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#22) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#29) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#30) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#31) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#31) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#31) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#31) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#31) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#31) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#31) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#31) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#33) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#35) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#36) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#2) Expected line length to be no more than 132 characters (max-line-length)
(#9) Expected line length to be no more than 132 characters (max-line-length)
(#31) Expected line length to be no more than 132 characters (max-line-length)

PHPDocs style problems

(11 errors, 1 warnings)

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

course/format/flexsections/format.php
(#17) No one-line description found in phpdocs for file
course/format/flexsections/lang/en/format_flexsections.php
(#2) Empty line found after PHP open tag
course/format/flexsections/lib.php
(#1264) Function format_flexsections_edit_control::__construct is not documented
(#1261) Variable format_flexsections_edit_control::$url is not documented
(#1262) Variable format_flexsections_edit_control::$text is not documented
(#1263) Variable format_flexsections_edit_control::$class is not documented
(#17) No one-line description found in phpdocs for file
(#126) Phpdocs for function format_flexsections::find_collapsed_parent has incomplete parameters list
(#813) Phpdocs for function format_flexsections::get_edit_control_movehere has incomplete parameters list
course/format/flexsections/renderer.php
(#42) Phpdocs for function format_flexsections_renderer::__construct has incomplete parameters list
(#53) Phpdocs for function format_flexsections_renderer::section_title has incomplete parameters list
(#205) Phpdocs for function format_flexsections_renderer::display_insert_section_here 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]

Task "stylelint:css" failed. Use --force to continue.
Problems running grunt

shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 0 warnings)

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