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

(5 errors, 2 warnings)

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

course/format/periods/lib.php
(#502) Line exceeds 132 characters; contains 136 characters
(#550) This comment is 43% valid code; is this commented out code?
course/format/periods/periodduration.php
(#27) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#139) Public method name "format_periods_periodduration::_createElements" must be in lower-case letters only
(#173) Public method name "format_periods_periodduration::onQuickFormEvent" must be in lower-case letters only
(#222) Public method name "format_periods_periodduration::toHtml" must be in lower-case letters only
(#249) Public method name "format_periods_periodduration::exportValue" must be in lower-case letters only

Javascript coding style problems

(3 errors, 21 warnings)

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

course/format/periods/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)
(#45) Missing semicolon. (semi)
(#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)
(#47) Expected JSDoc for 'sectionfrom' but found 'sectionto'. (valid-jsdoc)
(#56) Identifier 'process_sections' is not in camel case. (camelcase)
(#58) Extra space after key 'SECTIONNAME'. (key-spacing)
(#61) Extra space after key 'SECTIONLEFTSIDE'. (key-spacing)
(#78) Infix operators must be spaced. (space-infix-ops)
(#97) Missing semicolon. (semi)

CSS problems

(41 errors, 0 warnings)

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

course/format/periods/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/periods/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)
(#9) 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)
(#9) Unexpected single-line block (block-no-single-line)
(#10) Unexpected single-line block (block-no-single-line)
(#12) 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)
(#7) 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)
(#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)
(#5) 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)
(#5) Expected no more than 1 declaration(s) (declaration-block-single-line-max-declarations)
(#7) 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)
(#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)
(#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)
(#7) 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)

PHPDocs style problems

(2 errors, 0 warnings)

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

course/format/periods/lib.php
(#921) Function format_periods::supports_news is not documented
(#568) Phpdocs for function format_periods::get_section_dates 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]