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

(19 errors, 262 warnings)

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

grade/grading/form/btec/backup/moodle2/backup_gradingform_btec_plugin.class.php
(#53) Short array syntax must be used to define arrays
(#53) Short array syntax must be used to define arrays
(#59) Short array syntax must be used to define arrays
(#59) Short array syntax must be used to define arrays
(#72) Short array syntax must be used to define arrays
(#75) Short array syntax must be used to define arrays
(#102) Short array syntax must be used to define arrays
(#102) Short array syntax must be used to define arrays
(#113) Short array syntax must be used to define arrays
grade/grading/form/btec/backup/moodle2/restore_gradingform_btec_plugin.class.php
(#38) Short array syntax must be used to define arrays
(#56) Short array syntax must be used to define arrays
grade/grading/form/btec/bteceditor.php
(#105) Short array syntax must be used to define arrays
(#107) Short array syntax must be used to define arrays
(#108) Short array syntax must be used to define arrays
(#109) Short array syntax must be used to define arrays
(#110) Short array syntax must be used to define arrays
(#110) There should be a comma after the last array item in a multi-line array.
(#112) Short array syntax must be used to define arrays
(#113) Short array syntax must be used to define arrays
(#115) There should be a comma after the last array item in a multi-line array.
(#159) Short array syntax must be used to define arrays
(#160) Short array syntax must be used to define arrays
(#160) Short array syntax must be used to define arrays
(#161) Short array syntax must be used to define arrays
(#163) Short array syntax must be used to define arrays
(#193) Short array syntax must be used to define arrays
(#236) Short array syntax must be used to define arrays
(#273) Short array syntax must be used to define arrays
(#332) Short array syntax must be used to define arrays
(#336) Short array syntax must be used to define arrays
grade/grading/form/btec/classes/privacy/provider.php
(#27) Import statements must not begin with a leading backslash
(#28) Import statements must not begin with a leading backslash
(#29) Import statements must not begin with a leading backslash
(#47) There must not be a space before the colon in a return type declaration
grade/grading/form/btec/edit.php
(#41) Short array syntax must be used to define arrays
(#45) Short array syntax must be used to define arrays
(#46) Short array syntax must be used to define arrays
grade/grading/form/btec/edit_form.php
(#56) Short array syntax must be used to define arrays
(#62) Short array syntax must be used to define arrays
(#65) Short array syntax must be used to define arrays
(#68) Short array syntax must be used to define arrays
(#70) Short array syntax must be used to define arrays
(#78) Short array syntax must be used to define arrays
(#81) Short array syntax must be used to define arrays
(#83) Short array syntax must be used to define arrays
(#85) Short array syntax must be used to define arrays
(#95) Short array syntax must be used to define arrays
(#104) Short array syntax must be used to define arrays
(#141) Short array syntax must be used to define arrays
(#206) Short array syntax must be used to define arrays
grade/grading/form/btec/lang/en/gradingform_btec.php
(#26) The string key "addcomment" is not in the correct order, it should be before "definebtecmarking"
(#58) The string key "btecmappingexplained" is not in the correct order, it should be before "gradingof"
(#68) The string key "gradelevels" is not in the correct order, it should be before "needregrademessage"
(#71) The string key "btecgrading" is not in the correct order, it should be before "gradelevels_help"
(#87) The string key "btecscale" is not in the correct order, it should be before "savebtecdraft"
(#94) The string key "criteriarequirements" is not in the correct order, it should be before "showstudentdesc"
(#96) The string key "no" is not in the correct order, it should be before "yes"
(#98) The string key "endwithadigit" is not in the correct order, it should be before "startwithpmd"
(#99) The string key "and" is not in the correct order, it should be before "endwithadigit"
(#101) The string key "m" is not in the correct order, it should be before "p"
(#102) The string key "d" is not in the correct order, it should be before "m"
(#106) The string key "scaletypewarning_text" is not in the correct order, it should be before "warning"
(#107) The string key "here" is not in the correct order, it should be before "scaletypewarning_text"
grade/grading/form/btec/lib.php
(#93) Short array syntax must be used to define arrays
(#107) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $node.
(#122) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $node.
(#131) Short array syntax must be used to define arrays
(#191) Short array syntax must be used to define arrays
(#193) Short array syntax must be used to define arrays
(#204) Short array syntax must be used to define arrays
(#209) Short array syntax must be used to define arrays
(#222) Short array syntax must be used to define arrays
(#242) Short array syntax must be used to define arrays
(#249) Short array syntax must be used to define arrays
(#254) Short array syntax must be used to define arrays
(#258) Short array syntax must be used to define arrays
(#269) Short array syntax must be used to define arrays
(#288) Short array syntax must be used to define arrays
(#293) Short array syntax must be used to define arrays
(#320) Short array syntax must be used to define arrays
(#346) Short array syntax must be used to define arrays
(#356) Short array syntax must be used to define arrays
(#357) Short array syntax must be used to define arrays
(#358) Short array syntax must be used to define arrays
(#360) Short array syntax must be used to define arrays
(#372) Short array syntax must be used to define arrays
(#374) Short array syntax must be used to define arrays
(#388) Short array syntax must be used to define arrays
(#401) Short array syntax must be used to define arrays
(#439) Short array syntax must be used to define arrays
(#446) Short array syntax must be used to define arrays
(#446) Short array syntax must be used to define arrays
(#446) Short array syntax must be used to define arrays
(#450) Short array syntax must be used to define arrays
(#455) Short array syntax must be used to define arrays
(#472) Short array syntax must be used to define arrays
(#472) Short array syntax must be used to define arrays
(#472) Short array syntax must be used to define arrays
(#496) Short array syntax must be used to define arrays
(#518) Short array syntax must be used to define arrays
(#522) There should be a comma after the last array item in a multi-line array.
(#582) Short array syntax must be used to define arrays
(#589) Short array syntax must be used to define arrays
(#593) Short array syntax must be used to define arrays
(#610) Short array syntax must be used to define arrays
(#615) Short array syntax must be used to define arrays
(#670) Short array syntax must be used to define arrays
(#671) Short array syntax must be used to define arrays
(#677) Short array syntax must be used to define arrays
(#698) Short array syntax must be used to define arrays
(#706) Short array syntax must be used to define arrays
(#722) Short array syntax must be used to define arrays
(#766) Short array syntax must be used to define arrays
(#767) Short array syntax must be used to define arrays
(#767) Short array syntax must be used to define arrays
(#769) Short array syntax must be used to define arrays
(#792) Short array syntax must be used to define arrays
(#800) Short array syntax must be used to define arrays
(#802) Short array syntax must be used to define arrays
(#814) Short array syntax must be used to define arrays
(#851) Short array syntax must be used to define arrays
(#929) Short array syntax must be used to define arrays
(#930) Short array syntax must be used to define arrays
(#931) Short array syntax must be used to define arrays
(#949) Short array syntax must be used to define arrays
(#956) Short array syntax must be used to define arrays
(#963) Short array syntax must be used to define arrays
(#985) Short array syntax must be used to define arrays
(#988) Short array syntax must be used to define arrays
grade/grading/form/btec/preview.php
(#46) Short array syntax must be used to define arrays
grade/grading/form/btec/renderer.php
(#60) Short array syntax must be used to define arrays
(#68) Short array syntax must be used to define arrays
(#75) Short array syntax must be used to define arrays
(#79) Short array syntax must be used to define arrays
(#80) Short array syntax must be used to define arrays
(#82) Short array syntax must be used to define arrays
(#86) Short array syntax must be used to define arrays
(#89) Short array syntax must be used to define arrays
(#93) Short array syntax must be used to define arrays
(#98) Short array syntax must be used to define arrays
(#101) Short array syntax must be used to define arrays
(#104) Short array syntax must be used to define arrays
(#107) Short array syntax must be used to define arrays
(#109) Short array syntax must be used to define arrays
(#111) Short array syntax must be used to define arrays
(#113) Short array syntax must be used to define arrays
(#116) Short array syntax must be used to define arrays
(#124) Short array syntax must be used to define arrays
(#137) Short array syntax must be used to define arrays
(#140) Short array syntax must be used to define arrays
(#143) Short array syntax must be used to define arrays
(#152) Short array syntax must be used to define arrays
(#158) Short array syntax must be used to define arrays
(#185) Short array syntax must be used to define arrays
(#189) Short array syntax must be used to define arrays
(#197) Short array syntax must be used to define arrays
(#201) Short array syntax must be used to define arrays
(#203) Short array syntax must be used to define arrays
(#207) Short array syntax must be used to define arrays
(#208) Short array syntax must be used to define arrays
(#212) Short array syntax must be used to define arrays
(#216) Short array syntax must be used to define arrays
(#235) Short array syntax must be used to define arrays
(#238) Short array syntax must be used to define arrays
(#240) Short array syntax must be used to define arrays
(#244) Short array syntax must be used to define arrays
(#248) Short array syntax must be used to define arrays
(#250) Short array syntax must be used to define arrays
(#282) Short array syntax must be used to define arrays
(#287) Short array syntax must be used to define arrays
(#294) Short array syntax must be used to define arrays
(#297) Short array syntax must be used to define arrays
(#298) Short array syntax must be used to define arrays
(#300) Short array syntax must be used to define arrays
(#304) Short array syntax must be used to define arrays
(#307) Short array syntax must be used to define arrays
(#310) Short array syntax must be used to define arrays
(#311) Short array syntax must be used to define arrays
(#314) Short array syntax must be used to define arrays
(#316) Short array syntax must be used to define arrays
(#321) Short array syntax must be used to define arrays
(#332) Short array syntax must be used to define arrays
(#388) Short array syntax must be used to define arrays
(#390) Short array syntax must be used to define arrays
(#393) Short array syntax must be used to define arrays
(#395) Short array syntax must be used to define arrays
(#400) Short array syntax must be used to define arrays
(#402) Short array syntax must be used to define arrays
(#406) Short array syntax must be used to define arrays
(#409) Short array syntax must be used to define arrays
(#433) Short array syntax must be used to define arrays
(#436) Short array syntax must be used to define arrays
(#441) Short array syntax must be used to define arrays
(#442) Short array syntax must be used to define arrays
(#448) Short array syntax must be used to define arrays
(#451) Short array syntax must be used to define arrays
(#454) Short array syntax must be used to define arrays
(#455) Short array syntax must be used to define arrays
(#459) Short array syntax must be used to define arrays
(#461) Short array syntax must be used to define arrays
(#469) Short array syntax must be used to define arrays
(#483) Short array syntax must be used to define arrays
(#559) Short array syntax must be used to define arrays
(#560) Short array syntax must be used to define arrays
(#561) Short array syntax must be used to define arrays
(#562) Short array syntax must be used to define arrays
(#563) Short array syntax must be used to define arrays
(#576) Short array syntax must be used to define arrays
(#580) Short array syntax must be used to define arrays
(#583) Short array syntax must be used to define arrays
(#586) Short array syntax must be used to define arrays
(#590) Short array syntax must be used to define arrays
(#593) Short array syntax must be used to define arrays
(#632) Short array syntax must be used to define arrays
(#661) Short array syntax must be used to define arrays
(#674) Short array syntax must be used to define arrays
(#677) Short array syntax must be used to define arrays
(#679) There should be a comma after the last array item in a multi-line array.
(#684) Short array syntax must be used to define arrays
grade/grading/form/btec/settings.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
grade/grading/form/btec/tests/btec_test.php
(#29) Import statements must not begin with a leading backslash
(#30) Import statements must not begin with a leading backslash
(#31) Import statements must not begin with a leading backslash
(#32) Import statements must not begin with a leading backslash
(#48) Unit test btec_test should be declared as final.
(#54) Test method test_created_form() is missing a return type
(#64) Test method test_grade_calculation() is missing a return type
(#67) Short array syntax must be used to define arrays
(#67) Short array syntax must be used to define arrays
(#68) Short array syntax must be used to define arrays
(#69) Short array syntax must be used to define arrays
(#70) Short array syntax must be used to define arrays
(#71) Short array syntax must be used to define arrays
(#72) Short array syntax must be used to define arrays
(#73) Short array syntax must be used to define arrays
(#73) There should be a comma after the last array item in a multi-line array.
(#82) Short array syntax must be used to define arrays
(#82) Short array syntax must be used to define arrays
(#83) Short array syntax must be used to define arrays
(#84) Short array syntax must be used to define arrays
(#85) Short array syntax must be used to define arrays
(#86) Short array syntax must be used to define arrays
(#87) Short array syntax must be used to define arrays
(#88) Short array syntax must be used to define arrays
(#88) There should be a comma after the last array item in a multi-line array.
(#94) Short array syntax must be used to define arrays
(#94) Short array syntax must be used to define arrays
(#95) Short array syntax must be used to define arrays
(#96) Short array syntax must be used to define arrays
(#97) Short array syntax must be used to define arrays
(#98) Short array syntax must be used to define arrays
(#99) Short array syntax must be used to define arrays
(#100) Short array syntax must be used to define arrays
(#100) There should be a comma after the last array item in a multi-line array.
(#106) Short array syntax must be used to define arrays
(#106) Short array syntax must be used to define arrays
(#107) Short array syntax must be used to define arrays
(#108) Short array syntax must be used to define arrays
(#109) Short array syntax must be used to define arrays
(#110) Short array syntax must be used to define arrays
(#111) Short array syntax must be used to define arrays
(#112) Short array syntax must be used to define arrays
(#112) There should be a comma after the last array item in a multi-line array.
(#121) Short array syntax must be used to define arrays
(#121) Short array syntax must be used to define arrays
(#122) Short array syntax must be used to define arrays
(#123) Short array syntax must be used to define arrays
(#124) Short array syntax must be used to define arrays
(#125) Short array syntax must be used to define arrays
(#125) There should be a comma after the last array item in a multi-line array.
(#133) Short array syntax must be used to define arrays
(#133) Short array syntax must be used to define arrays
(#134) Short array syntax must be used to define arrays
(#135) Short array syntax must be used to define arrays
(#136) Short array syntax must be used to define arrays
(#137) Short array syntax must be used to define arrays
(#138) Short array syntax must be used to define arrays
(#139) Short array syntax must be used to define arrays
(#139) There should be a comma after the last array item in a multi-line array.
(#150) Test method test_created_renderer() is missing a return type
(#153) Short array syntax must be used to define arrays

Javascript coding style problems

(4 errors, 18 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)
(#9) 'options' is defined but never used. (no-unused-vars)
grade/grading/form/btec/js/bteceditor.js
(#1) Identifier 'gradingform_bteceditor' is not in camel case. (camelcase)
(#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)
(#122) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#125) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#146) 'height' is assigned a value but never used. (no-unused-vars)
(#167) Function has a complexity of 24. Maximum allowed is 20. (complexity)
(#204) ["criterion"] is better written in dot notation. (dot-notation)
(#205) 'newid' declared on line 190 column 13 is used outside of binding context. (block-scoped-var)
(#207) ["comment"] is better written in dot notation. (dot-notation)
(#208) 'newid' declared on line 190 column 13 is used outside of binding context. (block-scoped-var)
(#223) 'el' declared on line 216 column 13 is used outside of binding context. (block-scoped-var)
(#224) 'el' declared on line 216 column 13 is used outside of binding context. (block-scoped-var)
(#225) 'el' declared on line 216 column 13 is used outside of binding context. (block-scoped-var)
(#225) 'el' declared on line 216 column 13 is used outside of binding context. (block-scoped-var)
(#225) 'el' declared on line 216 column 13 is used outside of binding context. (block-scoped-var)
(#234) ["message"] is better written in dot notation. (dot-notation)
(#234) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#251) Function declared in a loop contains unsafe references to variable(s) 'i'. (no-loop-func)
(#264) Expected variable declaration to be on a new line. (one-var-declaration-per-line)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(0 errors, 0 warnings)

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


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 "gherkinlint" 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, 0 warnings)

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


Gherkin .feature problems

(40 errors, 0 warnings)

This section shows problems detected in behat .feature files [More info]

grade/grading/form/btec/tests/behat/edit_btec.feature
(#7) Wrong indentation for "scenario tag", expected indentation level of 2, but got 8
(#8) Wrong indentation for "Scenario", expected indentation level of 2, but got 8
(#9) Wrong indentation for "given", expected indentation level of 4, but got 12
(#13) Wrong indentation for "and", expected indentation level of 4, but got 14
(#16) Wrong indentation for "and", expected indentation level of 4, but got 14
(#20) Wrong indentation for "and", expected indentation level of 4, but got 14
(#21) Wrong indentation for "and", expected indentation level of 4, but got 14
(#27) Wrong indentation for "and", expected indentation level of 4, but got 14
(#28) Wrong indentation for "and", expected indentation level of 4, but got 14
(#32) Wrong indentation for "and", expected indentation level of 4, but got 14
(#33) Wrong indentation for "and", expected indentation level of 4, but got 14
(#34) Wrong indentation for "and", expected indentation level of 4, but got 14
(#35) Wrong indentation for "and", expected indentation level of 4, but got 14
(#37) Wrong indentation for "and", expected indentation level of 4, but got 14
(#38) Wrong indentation for "and", expected indentation level of 4, but got 14
(#39) Wrong indentation for "and", expected indentation level of 4, but got 14
(#40) Wrong indentation for "and", expected indentation level of 4, but got 14
(#41) Wrong indentation for "and", expected indentation level of 4, but got 14
(#43) Wrong indentation for "and", expected indentation level of 4, but got 14
(#44) Wrong indentation for "and", expected indentation level of 4, but got 14
(#45) Wrong indentation for "and", expected indentation level of 4, but got 14
(#46) Wrong indentation for "and", expected indentation level of 4, but got 14
(#47) Wrong indentation for "and", expected indentation level of 4, but got 14
(#49) Wrong indentation for "and", expected indentation level of 4, but got 14
(#50) Wrong indentation for "and", expected indentation level of 4, but got 14
(#51) Wrong indentation for "and", expected indentation level of 4, but got 14
(#52) Wrong indentation for "and", expected indentation level of 4, but got 14
(#53) Wrong indentation for "and", expected indentation level of 4, but got 14
(#55) Wrong indentation for "and", expected indentation level of 4, but got 14
(#56) Wrong indentation for "and", expected indentation level of 4, but got 14
(#57) Wrong indentation for "and", expected indentation level of 4, but got 14
(#58) Wrong indentation for "and", expected indentation level of 4, but got 14
(#59) Wrong indentation for "and", expected indentation level of 4, but got 14
(#61) Wrong indentation for "and", expected indentation level of 4, but got 14
(#62) Wrong indentation for "and", expected indentation level of 4, but got 14
(#63) Wrong indentation for "and", expected indentation level of 4, but got 14
(#64) Wrong indentation for "and", expected indentation level of 4, but got 14
(#65) Wrong indentation for "and", expected indentation level of 4, but got 14
(#67) Wrong indentation for "and", expected indentation level of 4, but got 14
(#69) Wrong indentation for "and", expected indentation level of 4, but got 14