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

(59 errors, 5 warnings)

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

grade/grading/form/btec/bteceditor.php
(#54) PHP4 style constructors are not allowed; use "__construct()" instead
(#332) Expected 1 space before ".="; 0 found
(#335) Expected 1 space before ".="; 0 found
(#335) Expected 1 space after ".="; 0 found
(#346) Expected 1 space before ".="; 0 found
(#346) Expected 1 space after ".="; 0 found
(#348) Expected 1 space before ".="; 0 found
(#348) Expected 1 space after ".="; 0 found
(#356) Expected 1 space before ".="; 0 found
(#356) Expected 1 space after ".="; 0 found
grade/grading/form/btec/db/install.php
(#24) Expected MOODLE_INTERNAL check or config.php inclusion
grade/grading/form/btec/edit_form.php
(#54) Expected 1 space before "=>"; 0 found
(#54) Expected 1 space after "=>"; 0 found
(#189) This comment is 67% valid code; is this commented out code?
grade/grading/form/btec/lang/en/gradingform_btec.php
(#26) Expected 1 space before "="; 0 found
(#26) Expected 1 space after "="; 0 found
(#41) Expected 1 space before "="; 0 found
(#41) Expected 1 space after "="; 0 found
(#69) Expected 1 space before "="; 0 found
(#69) Expected 1 space after "="; 0 found
(#70) Expected 1 space before "="; 0 found
(#70) Expected 1 space after "="; 0 found
(#72) Expected 1 space before "="; 0 found
(#72) Expected 1 space after "="; 0 found
(#73) Expected 1 space before "="; 0 found
(#73) Expected 1 space after "="; 0 found
(#76) Expected 1 space before "="; 0 found
(#76) Expected 1 space after "="; 0 found
(#77) Expected 1 space before "="; 0 found
(#77) Expected 1 space after "="; 0 found
(#88) Expected 1 space before "="; 0 found
(#88) Expected 1 space after "="; 0 found
(#89) Expected 1 space before "="; 0 found
(#89) Expected 1 space after "="; 0 found
(#98) Expected 1 space before "="; 0 found
(#98) Expected 1 space after "="; 0 found
(#99) Expected 1 space before "="; 0 found
(#99) Expected 1 space after "="; 0 found
(#100) Expected 1 space before "="; 0 found
(#100) Expected 1 space after "="; 0 found
(#101) Expected 1 space before "="; 0 found
(#101) Expected 1 space after "="; 0 found
(#102) Expected 1 space before "="; 0 found
(#102) Expected 1 space after "="; 0 found
(#103) Expected 1 space before "="; 0 found
(#103) Expected 1 space after "="; 0 found
(#104) Expected 1 space before "="; 0 found
(#104) Expected 1 space after "="; 0 found
(#105) Expected 1 space before "="; 0 found
(#105) Expected 1 space after "="; 0 found
grade/grading/form/btec/lib.php
(#192) This comment is 50% valid code; is this commented out code?
(#348) Line indented incorrectly; expected at least 12 spaces, found 8
(#734) This comment is 75% valid code; is this commented out code?
grade/grading/form/btec/renderer.php
(#74) This comment is 53% valid code; is this commented out code?
(#209) Line indented incorrectly; expected at least 17 spaces, found 16
(#396) Expected 1 space after ".="; 0 found
(#506) Expected 1 space before ".="; 0 found
(#532) Variable "checked_s1" must not contain underscores.
(#533) Variable "checked_s2" must not contain underscores.
(#541) Variable "checked_s1" must not contain underscores.
(#543) Variable "checked_s2" must not contain underscores.
(#559) Variable "checked_s1" must not contain underscores.
(#563) Variable "checked_s2" must not contain underscores.
grade/grading/form/btec/tests/btec_test.php
(#24) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.

Javascript coding style problems

(117 errors, 116 warnings)

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

grade/grading/form/btec/js/btec.js
(#1) Identifier 'gradingform_btec' is not in camel case. (camelcase)
(#3) Missing JSDoc for parameter 'Y'. (valid-jsdoc)
(#3) Missing JSDoc for parameter 'options'. (valid-jsdoc)
(#6) 'options' is defined but never used (no-unused-vars)
(#18) Infix operators must be spaced. (space-infix-ops)
(#26) Infix operators must be spaced. (space-infix-ops)
grade/grading/form/btec/js/bteceditor.js
(#1) Identifier 'gradingform_bteceditor' is not in camel case. (camelcase)
(#1) Extra space after key 'templates'. (key-spacing)
(#1) Extra space after key 'eventhandler'. (key-spacing)
(#1) Extra space after key 'name'. (key-spacing)
(#1) Extra space after key 'Y'. (key-spacing)
(#3) Missing JSDoc for parameter 'Y'. (valid-jsdoc)
(#3) Missing JSDoc for parameter 'options'. (valid-jsdoc)
(#7) Missing semicolon. (semi)
(#8) Missing semicolon. (semi)
(#10) Extra space after key 'criterion'. (key-spacing)
(#11) Extra space after key 'comment'. (key-spacing)
(#12) Missing semicolon. (semi)
(#13) Missing semicolon. (semi)
(#14) Missing semicolon. (semi)
(#15) A function with a name starting with an uppercase letter should only be used as a constructor. (new-cap)
(#15) 'YUI' is not defined. (no-undef)
(#15) Unexpected space before function parentheses. (space-before-function-paren)
(#18) Missing semicolon. (semi)
(#19) Missing semicolon. (semi)
(#24) Missing semicolon. (semi)
(#25) Missing semicolon. (semi)
(#27) Missing semicolon. (semi)
(#29) Line 29 exceeds the maximum line length of 132. (max-len)
(#29) Infix operators must be spaced. (space-infix-ops)
(#29) Infix operators must be spaced. (space-infix-ops)
(#30) Missing semicolon. (semi)
(#34) Missing semicolon. (semi)
(#35) Missing semicolon. (semi)
(#36) Line 36 exceeds the maximum line length of 132. (max-len)
(#36) Infix operators must be spaced. (space-infix-ops)
(#36) Infix operators must be spaced. (space-infix-ops)
(#36) There should be no spaces inside this paren. (space-in-parens)
(#36) Requires a space after '{'. (block-spacing)
(#36) Statement inside of curly braces should be on next line. (brace-style)
(#36) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#36) Missing semicolon. (semi)
(#36) Requires a space before '}'. (block-spacing)
(#36) There should be no spaces inside this paren. (space-in-parens)
(#37) Infix operators must be spaced. (space-infix-ops)
(#37) Infix operators must be spaced. (space-infix-ops)
(#37) There should be no spaces inside this paren. (space-in-parens)
(#37) Requires a space after '{'. (block-spacing)
(#37) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#37) Statement inside of curly braces should be on next line. (brace-style)
(#37) Requires a space before '}'. (block-spacing)
(#37) Missing semicolon. (semi)
(#37) There should be no spaces inside this paren. (space-in-parens)
(#38) Infix operators must be spaced. (space-infix-ops)
(#38) Infix operators must be spaced. (space-infix-ops)
(#38) There should be no spaces inside this paren. (space-in-parens)
(#38) Requires a space after '{'. (block-spacing)
(#38) Statement inside of curly braces should be on next line. (brace-style)
(#38) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#38) Requires a space before '}'. (block-spacing)
(#38) Missing semicolon. (semi)
(#38) There should be no spaces inside this paren. (space-in-parens)
(#39) Missing semicolon. (semi)
(#46) Missing semicolon. (semi)
(#48) Missing semicolon. (semi)
(#51) Missing semicolon. (semi)
(#54) Missing semicolon. (semi)
(#56) Missing semicolon. (semi)
(#58) Missing semicolon. (semi)
(#60) Missing semicolon. (semi)
(#64) Missing semicolon. (semi)
(#65) Missing semicolon. (semi)
(#67) Missing semicolon. (semi)
(#70) Missing semicolon. (semi)
(#71) Missing semicolon. (semi)
(#75) Missing semicolon. (semi)
(#76) Missing semicolon. (semi)
(#86) Missing semicolon. (semi)
(#89) Infix operators must be spaced. (space-infix-ops)
(#89) Infix operators must be spaced. (space-infix-ops)
(#89) Missing semicolon. (semi)
(#90) Missing semicolon. (semi)
(#91) Missing semicolon. (semi)
(#93) Infix operators must be spaced. (space-infix-ops)
(#93) Infix operators must be spaced. (space-infix-ops)
(#93) Missing semicolon. (semi)
(#94) Missing semicolon. (semi)
(#95) Missing semicolon. (semi)
(#99) Missing semicolon. (semi)
(#106) Missing semicolon. (semi)
(#107) Missing space before opening brace. (space-before-blocks)
(#108) Missing semicolon. (semi)
(#109) Missing semicolon. (semi)
(#111) Missing semicolon. (semi)
(#112) Missing semicolon. (semi)
(#114) Missing semicolon. (semi)
(#116) Missing semicolon. (semi)
(#119) Missing semicolon. (semi)
(#120) Missing semicolon. (semi)
(#122) Missing semicolon. (semi)
(#123) Missing semicolon. (semi)
(#131) Infix operators must be spaced. (space-infix-ops)
(#132) 'height' is defined but never used (no-unused-vars)
(#132) Missing semicolon. (semi)
(#133) A space is required after ','. (comma-spacing)
(#133) Infix operators must be spaced. (space-infix-ops)
(#133) Missing semicolon. (semi)
(#137) Closing curly brace does not appear on the same line as the subsequent block. (brace-style)
(#141) Missing semicolon. (semi)
(#142) Missing semicolon. (semi)
(#144) Missing semicolon. (semi)
(#145) Missing semicolon. (semi)
(#150) Missing semicolon. (semi)
(#152) Missing semicolon. (semi)
(#156) Missing semicolon. (semi)
(#157) Missing semicolon. (semi)
(#161) Missing semicolon. (semi)
(#162) Missing semicolon. (semi)
(#163) Missing semicolon. (semi)
(#164) Infix operators must be spaced. (space-infix-ops)
(#164) Missing semicolon. (semi)
(#172) 'elements_str' is not defined. (no-undef)
(#172) Identifier 'elements_str' is not in camel case. (camelcase)
(#172) Infix operators must be spaced. (space-infix-ops)
(#172) Infix operators must be spaced. (space-infix-ops)
(#172) Missing semicolon. (semi)
(#174) Identifier 'elements_str' is not in camel case. (camelcase)
(#174) 'elements_str' is not defined. (no-undef)
(#174) Infix operators must be spaced. (space-infix-ops)
(#174) Infix operators must be spaced. (space-infix-ops)
(#174) Missing semicolon. (semi)
(#177) 'elements_str' is not defined. (no-undef)
(#177) Missing semicolon. (semi)
(#179) Identifier 'dialog_options' is not in camel case. (camelcase)
(#180) Extra space after key 'scope'. (key-spacing)
(#181) Extra space after key 'callbackargs'. (key-spacing)
(#182) Extra space after key 'callback'. (key-spacing)
(#186) Infix operators must be spaced. (space-infix-ops)
(#186) Infix operators must be spaced. (space-infix-ops)
(#186) Infix operators must be spaced. (space-infix-ops)
(#186) Missing semicolon. (semi)
(#188) Missing semicolon. (semi)
(#191) ["criterion"] is better written in dot notation. (dot-notation)
(#191) Missing semicolon. (semi)
(#192) Infix operators must be spaced. (space-infix-ops)
(#192) 'newid' used outside of binding context. (block-scoped-var)
(#192) Missing semicolon. (semi)
(#194) ["comment"] is better written in dot notation. (dot-notation)
(#194) Missing semicolon. (semi)
(#195) Infix operators must be spaced. (space-infix-ops)
(#195) 'newid' used outside of binding context. (block-scoped-var)
(#195) Missing semicolon. (semi)
(#199) Missing semicolon. (semi)
(#200) 'elements_str' is not defined. (no-undef)
(#200) Missing semicolon. (semi)
(#201) Expected space or tab after '//' in comment. (spaced-comment)
(#204) 'el' is not defined. (no-undef)
(#204) Infix operators must be spaced. (space-infix-ops)
(#204) Infix operators must be spaced. (space-infix-ops)
(#204) Infix operators must be spaced. (space-infix-ops)
(#204) Infix operators must be spaced. (space-infix-ops)
(#204) Infix operators must be spaced. (space-infix-ops)
(#204) Missing semicolon. (semi)
(#205) 'el' is not defined. (no-undef)
(#206) 'el' is not defined. (no-undef)
(#206) 'el' is not defined. (no-undef)
(#206) 'el' is not defined. (no-undef)
(#206) Missing semicolon. (semi)
(#208) 'elements_str' is not defined. (no-undef)
(#208) Missing semicolon. (semi)
(#211) 'el' is not defined. (no-undef)
(#211) Infix operators must be spaced. (space-infix-ops)
(#211) Infix operators must be spaced. (space-infix-ops)
(#211) Infix operators must be spaced. (space-infix-ops)
(#211) Infix operators must be spaced. (space-infix-ops)
(#211) Infix operators must be spaced. (space-infix-ops)
(#211) Missing semicolon. (semi)
(#212) 'el' is not defined. (no-undef)
(#213) 'el' is not defined. (no-undef)
(#213) 'el' is not defined. (no-undef)
(#213) 'el' is not defined. (no-undef)
(#213) Missing semicolon. (semi)
(#215) 'elements_str' is not defined. (no-undef)
(#215) Missing semicolon. (semi)
(#219) Infix operators must be spaced. (space-infix-ops)
(#219) Infix operators must be spaced. (space-infix-ops)
(#219) Infix operators must be spaced. (space-infix-ops)
(#219) Infix operators must be spaced. (space-infix-ops)
(#219) Infix operators must be spaced. (space-infix-ops)
(#219) Missing semicolon. (semi)
(#220) 'elements_str' is not defined. (no-undef)
(#220) Missing semicolon. (semi)
(#222) Identifier 'dialog_options' is not in camel case. (camelcase)
(#222) ["message"] is better written in dot notation. (dot-notation)
(#222) Missing semicolon. (semi)
(#230) Missing semicolon. (semi)
(#233) Unexpected space before function parentheses. (space-before-function-paren)
(#233) Identifier 'elements_str' is not in camel case. (camelcase)
(#234) Missing semicolon. (semi)
(#235) Infix operators must be spaced. (space-infix-ops)
(#235) Infix operators must be spaced. (space-infix-ops)
(#237) Infix operators must be spaced. (space-infix-ops)
(#237) Infix operators must be spaced. (space-infix-ops)
(#237) Infix operators must be spaced. (space-infix-ops)
(#237) Infix operators must be spaced. (space-infix-ops)
(#237) Infix operators must be spaced. (space-infix-ops)
(#237) Infix operators must be spaced. (space-infix-ops)
(#237) Infix operators must be spaced. (space-infix-ops)
(#237) Missing semicolon. (semi)
(#239) Don't make functions within a loop (no-loop-func)
(#239) Requires a space after '{'. (block-spacing)
(#239) Statement inside of curly braces should be on next line. (brace-style)
(#239) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#239) Statement inside of curly braces should be on next line. (brace-style)
(#239) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#239) Requires a space before '}'. (block-spacing)
(#239) Missing semicolon. (semi)
(#239) Requires a space before '}'. (block-spacing)
(#242) Missing semicolon. (semi)
(#245) Unexpected space before function parentheses. (space-before-function-paren)
(#245) Identifier 'elements_str' is not in camel case. (camelcase)
(#246) Missing semicolon. (semi)
(#247) There should be no spaces inside this paren. (space-in-parens)
(#248) Expected variable declaration to be on a new line. (one-var-declaration-per-line)
(#249) Statement inside of curly braces should be on next line. (brace-style)
(#249) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#249) Infix operators must be spaced. (space-infix-ops)
(#249) Missing semicolon. (semi)
(#249) Requires a space before '}'. (block-spacing)
(#249) Unnecessary semicolon. (no-extra-semi)
(#250) There should be no spaces inside this paren. (space-in-parens)
(#251) Missing semicolon. (semi)
(#252) Missing semicolon. (semi)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(19 errors, 0 warnings)

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

grade/grading/form/btec/backup/moodle2/restore_gradingform_btec_plugin.class.php
(#27) Class restore_gradingform_btec_plugin is not documented
grade/grading/form/btec/bteceditor.php
(#29) Class moodlequickform_bteceditor is not documented
grade/grading/form/btec/db/install.php
(#17) File-level phpdocs block is not found
grade/grading/form/btec/lib.php
(#79) Function gradingform_btec_controller::get_scale_letters is not documented
(#814) Function gradingform_btec_instance::get_grade is not documented
(#821) Function gradingform_btec_instance::calculate_btec_grade is not documented
(#975) Function gradingform_btec_instance::has_config is not documented
(#67) Constant gradingform_btec_controller::REFER is not documented
(#68) Constant gradingform_btec_controller::PASS is not documented
(#69) Constant gradingform_btec_controller::MERIT is not documented
(#70) Constant gradingform_btec_controller::DISTINCTION is not documented
(#672) No one-line description found in phpdocs for class gradingform_btec_instance
grade/grading/form/btec/renderer.php
(#26) Class gradingform_btec_renderer is not documented
grade/grading/form/btec/settings.php
(#17) No one-line description found in phpdocs for file
grade/grading/form/btec/tests/btec_test.php
(#32) Class btec_test is not documented
(#20) Package btec is not valid
grade/grading/form/btec/tests/helper.php
(#26) Class moodlequickform_bteceditor_helper is not documented
(#28) Function moodlequickform_bteceditor_helper::get_btec_editor is not documented
(#20) Package qtype 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]