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

(24 errors, 1 warnings)

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

course/format/masonry/colorpicker.php
(#26) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#50) method name "MoodleQuickForm_colorpicker::MoodleQuickForm_colorpicker" must be in lower-case letters only
(#50) PHP4 style constructors are not allowed; use "__construct()" instead
(#50) Visibility must be declared on method "MoodleQuickForm_colorpicker"
(#50) Variable "elementName" must be all lower-case
(#50) Variable "elementLabel" must be all lower-case
(#51) PHP4 style calls to parent constructors are not allowed; use "parent::__construct()" instead
(#51) Variable "elementName" must be all lower-case
(#51) Variable "elementLabel" must be all lower-case
(#54) method name "MoodleQuickForm_colorpicker::setHiddenLabel" must be in lower-case letters only
(#54) Visibility must be declared on method "setHiddenLabel"
(#58) method name "MoodleQuickForm_colorpicker::toHtml" must be in lower-case letters only
(#58) Visibility must be declared on method "toHtml"
(#72) method name "MoodleQuickForm_colorpicker::_generateId" must be in lower-case letters only
(#72) Visibility must be declared on method "_generateId"
(#79) method name "MoodleQuickForm_colorpicker::setHelpButton" must be in lower-case letters only
(#79) Visibility must be declared on method "setHelpButton"
(#83) method name "MoodleQuickForm_colorpicker::getHelpButton" must be in lower-case letters only
(#83) Visibility must be declared on method "getHelpButton"
(#87) method name "MoodleQuickForm_colorpicker::getElementTemplateType" must be in lower-case letters only
(#87) Visibility must be declared on method "getElementTemplateType"
course/format/masonry/format.php
(#18) Whitespace found at end of line
course/format/masonry/lib.php
(#60) Whitespace found at end of line
(#120) This comment is 47% valid code; is this commented out code?
course/format/masonry/renderer.php
(#72) Whitespace found at end of line

Javascript coding style problems

(6 errors, 52 warnings)

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

course/format/masonry/format.js
(#8) Missing JSDoc comment. (require-jsdoc)
(#16) Unexpected space before function parentheses. (space-before-function-paren)
(#34) There should be no space after '{' (object-curly-spacing)
(#34) A leading decimal point can be confused with a dot. (no-floating-decimal)
(#34) There should be no space before '}' (object-curly-spacing)
(#46) There should be no space after '{' (object-curly-spacing)
(#46) There should be no space before '}' (object-curly-spacing)
(#58) Unexpected space before function parentheses. (space-before-function-paren)
(#63) Unexpected space before function parentheses. (space-before-function-paren)
(#66) There should be no space after '{' (object-curly-spacing)
(#66) There should be no space before '}' (object-curly-spacing)
(#74) Unexpected space before function parentheses. (space-before-function-paren)
(#75) Line 75 exceeds the maximum line length of 132. (max-len)
(#78) Unexpected space before function parentheses. (space-before-function-paren)
(#79) Line 79 exceeds the maximum line length of 132. (max-len)
(#82) Unexpected space before function parentheses. (space-before-function-paren)
(#87) Unexpected space before function parentheses. (space-before-function-paren)
(#95) Unexpected space before function parentheses. (space-before-function-paren)
(#102) Unexpected space before function parentheses. (space-before-function-paren)
(#124) Unexpected space before function parentheses. (space-before-function-paren)
(#124) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#124) Statement inside of curly braces should be on next line. (brace-style)
(#127) Unexpected space before function parentheses. (space-before-function-paren)
(#132) Unexpected space before function parentheses. (space-before-function-paren)
(#144) Unexpected space before function parentheses. (space-before-function-paren)
(#145) Missing space before opening brace. (space-before-blocks)
(#145) Statement inside of curly braces should be on next line. (brace-style)
(#145) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#145) Requires a space before '}'. (block-spacing)
(#145) Missing semicolon. (semi)
(#151) Unexpected space before function parentheses. (space-before-function-paren)
(#151) 'e' is defined but never used (no-unused-vars)
(#152) Missing space before opening brace. (space-before-blocks)
(#152) Statement inside of curly braces should be on next line. (brace-style)
(#152) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#152) Requires a space before '}'. (block-spacing)
(#152) Missing semicolon. (semi)
(#157) Unexpected space before function parentheses. (space-before-function-paren)
(#162) Unexpected space before function parentheses. (space-before-function-paren)
(#163) Multiple spaces found before 'obj'. (no-multi-spaces)
(#166) Unexpected space before function parentheses. (space-before-function-paren)
(#182) Do not nest ternary expressions (no-nested-ternary)
(#206) Unexpected space before function parentheses. (space-before-function-paren)
(#212) Line 212 exceeds the maximum line length of 132. (max-len)
(#218) Unexpected space before function parentheses. (space-before-function-paren)
(#240) There should be no space after '{' (object-curly-spacing)
(#240) There should be no space before '}' (object-curly-spacing)
(#250) Unexpected space before function parentheses. (space-before-function-paren)
(#258) Unexpected space before function parentheses. (space-before-function-paren)
(#267) Unexpected space before function parentheses. (space-before-function-paren)
(#272) Unexpected space before function parentheses. (space-before-function-paren)
(#278) Unexpected space before function parentheses. (space-before-function-paren)
(#282) Unexpected space before function parentheses. (space-before-function-paren)
(#282) Statement inside of curly braces should be on next line. (brace-style)
(#282) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#289) Unexpected space before function parentheses. (space-before-function-paren)
(#295) Unexpected space before function parentheses. (space-before-function-paren)
(#297) Unexpected space before function parentheses. (space-before-function-paren)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(19 errors, 1 warnings)

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

course/format/masonry/colorpicker.php
(#35) Class MoodleQuickForm_colorpicker is not documented
(#54) Function MoodleQuickForm_colorpicker::setHiddenLabel is not documented
(#58) Function MoodleQuickForm_colorpicker::toHtml is not documented
(#72) Function MoodleQuickForm_colorpicker::_generateId is not documented
(#79) Function MoodleQuickForm_colorpicker::setHelpButton is not documented
(#83) Function MoodleQuickForm_colorpicker::getHelpButton is not documented
(#87) Function MoodleQuickForm_colorpicker::getElementTemplateType is not documented
(#95) Function MoodleQuickForm_colorpicker::verify is not documented
(#37) Variable MoodleQuickForm_colorpicker::$_helpbutton is not documented
(#38) Variable MoodleQuickForm_colorpicker::$_hiddenlabel is not documented
(#32) Not recommended phpdocs tag @access used
(#20) Package course format is not valid
course/format/masonry/format.php
(#17) No one-line description found in phpdocs for file
course/format/masonry/lang/en/format_masonry.php
(#20) Package course format is not valid
course/format/masonry/lib.php
(#29) Class format_masonry is not documented
(#20) Package course format is not valid
course/format/masonry/renderer.php
(#29) Class format_masonry_renderer is not documented
(#20) Package course format is not valid
course/format/masonry/settings.php
(#20) Package course format is not valid
course/format/masonry/version.php
(#20) Package course format is not valid

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

(0 errors, 0 warnings)

This section shows files built by grunt and not commited [More info]


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]