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

(176 errors, 1 warnings)

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

public/question/type/formulas/answer_unit.php
(#1) No one-line description found in phpdocs for docblock of file answer_unit.php
(#50) Missing member variable doc comment
(#51) You must use "/**" style comments for a member variable comment
(#51) Member variable "additional_rules" must not contain underscores.
(#52) You must use "/**" style comments for a member variable comment
(#52) Member variable "default_mapping" must not contain underscores.
(#53) You must use "/**" style comments for a member variable comment
(#53) Member variable "default_last_id" must not contain underscores.
(#54) You must use "/**" style comments for a member variable comment
(#54) Member variable "default_id" must not contain underscores.
(#55) You must use "/**" style comments for a member variable comment
(#55) Member variable "default_rules" must not contain underscores.
(#58) Missing member variable doc comment
(#58) Member variable "prefix_scale_factors" must not contain underscores.
(#58) Short array syntax must be used to define arrays
(#60) Expected 1 space between the comma and "'M'". Found: 2 spaces
(#60) Expected 1 space between the comma and "'G'". Found: 2 spaces
(#60) Expected 1 space between the comma and "'T'". Found: 2 spaces
(#60) Expected 1 space between the comma and "'P'". Found: 2 spaces
(#60) Expected 1 space between the comma and "'E'". Found: 2 spaces
(#60) Expected 1 space between the comma and "'Z'". Found: 2 spaces
(#60) Expected 1 space between the comma and "'Y'". Found: 2 spaces
(#64) Missing docblock for function __construct
(#79) Variable "default_id" must not contain underscores.
(#79) Variable "default_rules" must not contain underscores.
(#80) Variable "default_id" must not contain underscores.
(#83) Variable "default_id" must not contain underscores.
(#84) Variable "default_rules" must not contain underscores.
(#96) Variable "additional_rules" must not contain underscores.
(#97) Variable "additional_rules" must not contain underscores.
(#107) Variable "tmp_mapping" must not contain underscores.
(#107) Short array syntax must be used to define arrays
(#108) Variable "tmp_counter" must not contain underscores.
(#109) Variable "tmp_mapping" must not contain underscores.
(#109) Variable "tmp_counter" must not contain underscores.
(#110) Variable "tmp_mapping" must not contain underscores.
(#111) Variable "tmp_counter" must not contain underscores.
(#114) Variable "tmp_mapping" must not contain underscores.
(#115) Variable "tmp_counter" must not contain underscores.
(#116) Variable "tmp_mapping" must not contain underscores.
(#116) Variable "tmp_counter" must not contain underscores.
(#117) Variable "tmp_mapping" must not contain underscores.
(#123) Missing docblock for function get_unit_mapping
(#129) Missing docblock for function get_dimension_list
(#130) Variable "dimension_list" must not contain underscores.
(#130) Short array syntax must be used to define arrays
(#131) Variable "class_scale" must not contain underscores.
(#132) Long list syntax is not allowed
(#132) Variable "class_scale" must not contain underscores.
(#133) Variable "dimension_list" must not contain underscores.
(#135) Variable "dimension_list" must not contain underscores.
(#155) Short array syntax must be used to define arrays
(#155) Expected 1 space between the comma and "'cfactor'". Found: 2 spaces
(#158) Short array syntax must be used to define arrays
(#163) Short array syntax must be used to define arrays
(#166) Variable "targets_list" must not contain underscores.
(#167) Variable "targets_list" must not contain underscores.
(#169) Short array syntax must be used to define arrays
(#172) Short array syntax must be used to define arrays
(#172) Expected 1 space between the comma and "'cfactor'". Found: 2 spaces
(#184) Variable "targets_list" must not contain underscores.
(#184) Short array syntax must be used to define arrays
(#186) Variable "targets_list" must not contain underscores.
(#190) Expected 0 spaces before closing parenthesis; 1 found
(#193) Variable "parsed_unit" must not contain underscores.
(#194) Variable "parsed_unit" must not contain underscores.
(#195) Expected at least 1 space before "."; 0 found
(#195) Expected at least 1 space after "."; 0 found
(#195) Expected at least 1 space before "."; 0 found
(#195) Expected at least 1 space after "."; 0 found
(#197) Variable "targets_list" must not contain underscores.
(#197) Variable "parsed_unit" must not contain underscores.
(#199) Variable "targets_list" must not contain underscores.
(#210) Variable "targets_list" must not contain underscores.
(#211) Variable "targets_list" must not contain underscores.
(#217) Variable "is_all_matches" must not contain underscores.
(#219) Variable "unit_found" must not contain underscores.
(#220) Variable "unit_found" must not contain underscores.
(#224) Long list syntax is not allowed
(#225) Variable "unit_found" must not contain underscores.
(#227) Variable "unit_found" must not contain underscores.
(#228) Variable "is_all_matches" must not contain underscores.
(#233) Variable "is_all_matches" must not contain underscores.
(#235) Short array syntax must be used to define arrays
(#250) Variable "test_unit_name" must not contain underscores.
(#250) Variable "base_unit_array" must not contain underscores.
(#252) Variable "test_unit_name" must not contain underscores.
(#255) Variable "test_unit_name" must not contain underscores.
(#259) Variable "base_unit_array" must not contain underscores.
(#262) Short array syntax must be used to define arrays
(#284) Short array syntax must be used to define arrays
(#286) Short array syntax must be used to define arrays
(#298) Variable "unit_expression" must not contain underscores.
(#298) Variable "no_divisor" must not contain underscores.
(#298) Incorrect spacing between argument "$no_divisor" and equals sign; expected 1 but found 0
(#298) Incorrect spacing between default value and equals sign for argument "$no_divisor"; expected 1 but found 0
(#299) Variable "unit_expression" must not contain underscores.
(#300) Short array syntax must be used to define arrays
(#303) Variable "unit_expression" must not contain underscores.
(#305) Variable "no_divisor" must not contain underscores.
(#305) Variable "unit_expression" must not contain underscores.
(#308) Variable "unit_expression" must not contain underscores.
(#309) Variable "unit_expression" must not contain underscores.
(#327) Short array syntax must be used to define arrays
(#328) Variable "unit_element_name" must not contain underscores.
(#328) Expected at least 1 space before "."; 0 found
(#328) Expected at least 1 space after "."; 0 found
(#328) Variable "unit_exclude_symbols" must not contain underscores.
(#328) Expected at least 1 space before "."; 0 found
(#328) Expected at least 1 space after "."; 0 found
(#329) Variable "unit_expression" must not contain underscores.
(#329) Variable "unit_expression" must not contain underscores.
(#330) Variable "unit_expression" must not contain underscores.
(#340) Expected at least 1 space before "."; 0 found
(#340) Expected at least 1 space after "."; 0 found
(#340) Variable "unit_element_name" must not contain underscores.
(#340) Expected at least 1 space before "."; 0 found
(#340) Expected at least 1 space after "."; 0 found
(#379) Variable "dim_id_count" must not contain underscores.
(#379) Variable "rules_string" must not contain underscores.
(#380) Variable "rules_string" must not contain underscores.
(#383) Variable "unit_scales" must not contain underscores.
(#383) Short array syntax must be used to define arrays
(#388) Variable "unit_name" must not contain underscores.
(#389) Expected at least 1 space before "."; 0 found
(#389) Expected at least 1 space after "."; 0 found
(#389) Variable "unit_exclude_symbols" must not contain underscores.
(#389) Expected at least 1 space before "."; 0 found
(#389) Expected at least 1 space after "."; 0 found
(#389) Variable "unit_name" must not contain underscores.
(#390) Expected at least 1 space before "."; 0 found
(#390) Expected at least 1 space after "."; 0 found
(#390) Variable "unit_name" must not contain underscores.
(#390) Expected at least 1 space before "."; 0 found
(#390) Expected at least 1 space after "."; 0 found
(#392) Variable "unit_scales" must not contain underscores.
(#392) Variable "unit_name" must not contain underscores.
(#393) Variable "si_prefixes" must not contain underscores.
(#394) Variable "si_prefixes" must not contain underscores.
(#396) Variable "prefix_scale_factors" must not contain underscores.
(#398) Expected at least 1 space before "."; 0 found
(#398) Expected at least 1 space after "."; 0 found
(#398) Expected at least 1 space before "."; 0 found
(#398) Expected at least 1 space after "."; 0 found
(#400) Variable "unit_scales" must not contain underscores.
(#400) Expected at least 1 space before "."; 0 found
(#400) Expected at least 1 space after "."; 0 found
(#400) Variable "unit_name" must not contain underscores.
(#407) Expected at least 1 space before "."; 0 found
(#407) Expected at least 1 space after "."; 0 found
(#407) Variable "unit_exclude_symbols" must not contain underscores.
(#407) Expected at least 1 space before "."; 0 found
(#407) Expected at least 1 space after "."; 0 found
(#408) Expected at least 1 space before "."; 0 found
(#408) Expected at least 1 space after "."; 0 found
(#408) Expected at least 1 space before "."; 0 found
(#408) Expected at least 1 space after "."; 0 found
(#410) Variable "unit_scales" must not contain underscores.
(#413) Variable "unit_scales" must not contain underscores.
(#414) Variable "unit_scales" must not contain underscores.
(#415) Variable "dim_id" must not contain underscores.
(#416) Variable "unit_scales" must not contain underscores.
(#418) Variable "dim_id" must not contain underscores.
(#418) Variable "dim_id_count" must not contain underscores.
(#421) Variable "unit_scales" must not contain underscores.
(#423) Short array syntax must be used to define arrays
(#423) Variable "dim_id" must not contain underscores.
(#429) The closing brace for the class must go on the next line after the body
public/question/type/formulas/conversion_rules.php
(#25) Missing @copyright tag
(#25) Missing @license tag
(#25) Missing docblock for class unit_conversion_rules
(#26) Missing member variable doc comment
(#29) Missing docblock for function __construct
(#52) This comment is 45% valid code; is this commented out code?
(#58) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#60) Missing docblock for function entry
(#67) Missing docblock for function allrules

Javascript coding style problems

(0 errors, 0 warnings)

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


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

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

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]


Gherkin .feature problems

(0 errors, 0 warnings)

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