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

(2 errors, 1 warnings)

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

grade/grading/form/btec/tests/btec_test.php
(#41) PHPUnit class "btec_test" does not have any namespace. It is recommended to add it to the "gradingform_btec" namespace, using more levels if needed, in order to match the code being tested
(#57) Visibility must be declared on method "test_grade_calculation"
(#143) Visibility must be declared on method "test_created_renderer"

Javascript coding style problems

(4 errors, 20 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)
(#3) Missing JSDoc for parameter 'Y'. (valid-jsdoc)
(#3) Missing JSDoc for parameter 'options'. (valid-jsdoc)
(#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 AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#125) 'M.str' is restricted from being used. Use AMD module "core/str" 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' used outside of binding context. (block-scoped-var)
(#207) ["comment"] is better written in dot notation. (dot-notation)
(#208) 'newid' used outside of binding context. (block-scoped-var)
(#223) 'el' used outside of binding context. (block-scoped-var)
(#224) 'el' used outside of binding context. (block-scoped-var)
(#225) 'el' used outside of binding context. (block-scoped-var)
(#225) 'el' used outside of binding context. (block-scoped-var)
(#225) 'el' 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 AMD module "core/str" 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

(15 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
(#36) Inline phpdocs tag {@link restore_path_element} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
(#54) Inline phpdocs tag {@link restore_path_element} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
(#70) Inline phpdocs tag {@link self::process_gradinform_btec_filling()} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
grade/grading/form/btec/bteceditor.php
(#56) Phpdocs for function moodlequickform_bteceditor::__construct has incomplete parameters list
grade/grading/form/btec/lib.php
(#104) Inline phpdocs tag {@link settings_navigation} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
(#105) Inline phpdocs tag {@link navigation_node} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
(#118) Inline phpdocs tag {@link global_navigation} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
(#119) Inline phpdocs tag {@link navigation_node} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
(#465) Inline phpdocs tag {@link update_definition()} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
grade/grading/form/btec/renderer.php
(#48) Inline phpdocs tag {@link gradingform_btec_controller()} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
(#275) Inline phpdocs tag {@link gradingform_btec_controller} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
(#354) Inline phpdocs tag {@link gradingform_btec_controller} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
(#355) Inline phpdocs tag {@link gradingform_btec_renderer::btec_edit_options()} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
(#422) Inline phpdocs tag {@link gradingform_btec_controller} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
(#507) Inline phpdocs tag {@link gradingform_btec_controller} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}

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]


Missing changes in external functions or backup support for new detected tables or columns

(0 errors, 0 warnings)

This section shows potential problems detected when there are new database structures added in a patch and it is detected that nothing has been changed related with external functions (to be used by WS) or backup and restore. It must be checked that everything is correct and nothing is being missed in those areas. [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]


Gherkin .feature problems

(0 errors, 0 warnings)

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