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

(123 errors, 16 warnings)

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

mod/quiz/report/cbmgrades/cbmgrades_options.php
(#73) Inline comments must start with a capital letter, digit or 3-dots sequence
(#73) Inline comments must end in full-stops, exclamation marks, or question marks
(#73) This comment is 46% valid code; is this commented out code?
(#73) Line indented incorrectly; expected at least 8 spaces, found 0
(#73) Expected 1 space before comment text but found 8; use block comment if you need indentation
mod/quiz/report/cbmgrades/cbmgrades_table.php
(#61) Expected 1 space after "="; 2 found
(#109) Member variable "num_rs" must not contain underscores.
(#109) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#109) Scope modifier not specified for member variable "$num_rs"
(#109) Member variable "num_all" must not contain underscores.
(#109) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#109) Scope modifier not specified for member variable "$num_all"
(#109) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#109) Scope modifier not specified for member variable "$sumwts"
(#109) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#109) Scope modifier not specified for member variable "$sumcorr"
(#109) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#109) Scope modifier not specified for member variable "$sumcbm"
(#112) Inline comments must end in full-stops, exclamation marks, or question marks
(#127) Expected 1 space before "="; 0 found
(#127) Expected 1 space after "="; 0 found
(#127) Commas (,) must be followed by white space.
(#134) Commas (,) must be followed by white space.
(#138) Inline comments must end in full-stops, exclamation marks, or question marks
(#141) Expected 1 space before "="; 0 found
(#141) Expected 1 space after "="; 0 found
(#141) Expected 1 space before "+"; 0 found
(#141) Expected 1 space after "+"; 0 found
(#141) Expected 1 space before "*"; 0 found
(#141) Expected 1 space after "*"; 0 found
(#141) Expected 1 space before "+"; 0 found
(#141) Expected 1 space after "+"; 0 found
(#141) Expected 1 space before "*"; 0 found
(#141) Expected 1 space after "*"; 0 found
(#146) Commas (,) must be followed by white space.
(#150) Commas (,) must be followed by white space.
(#157) Commas (,) must be followed by white space.
(#164) Commas (,) must be followed by white space.
(#171) Commas (,) must be followed by white space.
(#175) Expected 1 space before "="; 0 found
(#175) Expected 1 space after "="; 0 found
(#176) Expected 1 space before "="; 0 found
(#176) Expected 1 space after "="; 0 found
(#177) Expected 1 space before "="; 0 found
(#177) Expected 1 space after "="; 0 found
(#178) Expected 1 space before "="; 0 found
(#178) Expected 1 space after "="; 0 found
(#179) Expected 1 space before "="; 0 found
(#179) Expected 1 space after "="; 0 found
(#180) Inline control structures are not allowed
(#181) Expected 1 space before "="; 0 found
(#181) Expected 1 space after "="; 0 found
(#182) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#190) Commas (,) must be followed by white space.
(#190) Commas (,) must be followed by white space.
(#190) Commas (,) must be followed by white space.
(#190) Commas (,) must be followed by white space.
(#190) Expected 1 space before ">"; 0 found
(#190) Expected 1 space after ">"; 0 found
(#191) Expected 1 space before "="; 0 found
(#191) Expected 1 space after "="; 0 found
(#197) Expected 1 space before "="; 0 found
(#197) Expected 1 space after "="; 0 found
(#199) Expected "} else if (...) {\n"; found "}\n else if (...) {\n"
(#200) Commas (,) must be followed by white space.
(#201) Expected 1 space before "="; 0 found
(#201) Expected 1 space after "="; 0 found
(#203) Expected "} else {\n"; found "}\n else {\n"
(#204) Expected 1 space before "="; 0 found
(#204) Expected 1 space after "="; 0 found
(#204) Inline comments must end in full-stops, exclamation marks, or question marks
(#204) No space found before comment text; expected "// NB this is a token fraction for partially correct (shd be rawfraction)" but found "//NB this is a token fraction for partially correct (shd be rawfraction)"
(#207) Inline control structures are not allowed
(#207) Expected 1 space before "="; 0 found
(#207) Expected 1 space after "="; 0 found
(#213) Expected 1 space before "="; 0 found
(#213) Expected 1 space after "="; 0 found
(#213) Expected 1 space before "+"; 0 found
(#213) Expected 1 space after "+"; 0 found
(#213) Expected 1 space before "*"; 0 found
(#213) Expected 1 space after "*"; 0 found
(#213) Expected 1 space before "+"; 0 found
(#213) Expected 1 space after "+"; 0 found
(#213) Expected 1 space before "*"; 0 found
(#213) Expected 1 space after "*"; 0 found
(#232) Line indented incorrectly; expected 8 spaces, found 9
(#234) Closing brace indented incorrectly; expected 9 spaces, found 8
(#241) Commas (,) must be followed by white space.
(#252) Expected 1 space before "="; 0 found
(#252) Expected 1 space after "="; 0 found
(#252) Commas (,) must be followed by white space.
(#253) Expected "if (...) {\n"; found "if(...){\n"
(#254) Expected 1 space before "="; 0 found
(#256) Inline control structures are not allowed
(#256) Expected 1 space before "="; 0 found
(#256) Expected 1 space after "="; 0 found
(#261) Line indented incorrectly; expected 8 spaces, found 9
(#261) Expected "if (...) {\n"; found "if(...) {\n"
(#263) Line indented incorrectly; expected 8 spaces, found 9
(#263) Inline control structures are not allowed
mod/quiz/report/cbmgrades/lang/en/quiz_cbmgrades.php
(#61) This comment is 61% valid code; is this commented out code?
(#61) Inline comments must start with a capital letter, digit or 3-dots sequence
(#61) No space found before comment text; expected "// $string['cannotloadoptions'] = 'Could not load question options';" but found "//$string['cannotloadoptions'] = 'Could not load question options';"
(#62) No space found before comment text; expected "// $string['include'] = 'Include the';" but found "//$string['include'] = 'Include the';"
(#63) No space found before comment text; expected "// $string['mustselectcols'] = 'You must include something.';" but found "//$string['mustselectcols'] = 'You must include something.';"
(#64) No space found before comment text; expected "// $string['questiontext'] = 'question data;';" but found "//$string['questiontext'] = 'question data;';"
(#65) No space found before comment text; expected "// $string['response'] = 'response ';" but found "//$string['response'] = 'response ';"
(#66) No space found before comment text; expected "// $string['rightanswerx'] = 'Right answer {$a}';" but found "//$string['rightanswerx'] = 'Right answer {$a}';"
(#67) No space found before comment text; expected "// $string['showattempts'] = 'Only show / download attempts';" but found "//$string['showattempts'] = 'Only show / download attempts';"
(#68) No space found before comment text; expected "// $string['summaryofquestiontext'] = 'Summary of the question';" but found "//$string['summaryofquestiontext'] = 'Summary of the question';"
(#69) No space found before comment text; expected "// $string['summaryofresponse'] = 'Summary of the response given';" but found "//$string['summaryofresponse'] = 'Summary of the response given';"
(#70) Inline comments must end in full-stops, exclamation marks, or question marks
(#70) No space found before comment text; expected "// $string['summaryofrightanswer'] = 'Summary of the right answer';" but found "//$string['summaryofrightanswer'] = 'Summary of the right answer';"
mod/quiz/report/cbmgrades/report.php
(#68) Inline comments must start with a capital letter, digit or 3-dots sequence
(#68) Inline comments must end in full-stops, exclamation marks, or question marks
(#72) Expected "} else {\n"; found "}\n else {\n"
(#98) Expected 1 space after "="; newline found
(#189) Line exceeds 132 characters; contains 139 characters
(#190) Line exceeds 132 characters; contains 155 characters
(#207) Inline comments must start with a capital letter, digit or 3-dots sequence
(#207) Inline comments must end in full-stops, exclamation marks, or question marks
(#208) Line indented incorrectly; expected 16 spaces, found 24
(#209) Line indented incorrectly; expected 20 spaces, found 28
(#211) Line indented incorrectly; expected 24 spaces, found 32
(#212) Expected 1 space before "="; 0 found
(#212) Expected 1 space after "="; 0 found
(#213) Line indented incorrectly; expected 24 spaces, found 32
(#214) Inline control structures are not allowed
(#214) Expected 1 space before "="; 0 found
(#214) Expected 1 space after "="; 0 found
(#215) Line indented incorrectly; expected 24 spaces, found 32
(#215) Expected "if (...) {\n"; found "if(...) {\n"
(#215) Expected 1 space before "!="; 0 found
(#215) Expected 1 space after "!="; 0 found
(#216) Commas (,) must be followed by white space.
(#217) Line indented incorrectly; expected 24 spaces, found 32
(#219) Line indented incorrectly; expected 20 spaces, found 28
(#220) Line indented incorrectly; expected 16 spaces, found 24
mod/quiz/report/cbmgrades/version.php
(#31) Inline comments must end in full-stops, exclamation marks, or question marks

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

(42 errors, 0 warnings)

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

mod/quiz/report/cbmgrades/cbmgrades_form.php
(#39) Function quiz_cbmgrades_settings_form::other_preference_fields is not documented
(#49) Function quiz_cbmgrades_settings_form::validation is not documented
(#17) No one-line description found in phpdocs for file
(#21) File-level phpdocs block does not have @copyright tag
mod/quiz/report/cbmgrades/cbmgrades_options.php
(#51) Function quiz_cbmgrades_options::get_url_params is not documented
(#60) Function quiz_cbmgrades_options::get_initial_form_data is not documented
(#70) Function quiz_cbmgrades_options::setup_from_form_data is not documented
(#79) Function quiz_cbmgrades_options::setup_from_params is not documented
(#88) Function quiz_cbmgrades_options::setup_from_user_preferences is not documented
(#97) Function quiz_cbmgrades_options::update_user_preferences is not documented
(#106) Function quiz_cbmgrades_options::resolve_dependencies is not documented
(#17) No one-line description found in phpdocs for file
(#21) File-level phpdocs block does not have @copyright tag
mod/quiz/report/cbmgrades/cbmgrades_table.php
(#57) Function quiz_cbmgrades_table::load_question_latest_steps is not documented
(#101) Function quiz_cbmgrades_table::build_table is not documented
(#111) Function quiz_cbmgrades_table::col_sumgrades is not documented
(#122) Function quiz_cbmgrades_table::col_resp_num is not documented
(#126) Function quiz_cbmgrades_table::col_marks is not documented
(#130) Function quiz_cbmgrades_table::col_cbm_av is not documented
(#137) Function quiz_cbmgrades_table::col_cbm_avchosen is not documented
(#149) Function quiz_cbmgrades_table::col_accy is not documented
(#153) Function quiz_cbmgrades_table::col_cbm_bonus is not documented
(#160) Function quiz_cbmgrades_table::col_cbm_accy is not documented
(#167) Function quiz_cbmgrades_table::col_cbm_grade is not documented
(#174) Function quiz_cbmgrades_table::calc_scores is not documented
(#218) Function quiz_cbmgrades_table::data_col is not documented
(#260) Function quiz_cbmgrades_table::other_cols is not documented
(#266) Function quiz_cbmgrades_table::requires_latest_steps_loaded is not documented
(#270) Function quiz_cbmgrades_table::is_latest_step_column is not documented
(#109) Variable quiz_cbmgrades_table::$num_rs is not documented
(#109) Variable quiz_cbmgrades_table::$num_all is not documented
(#109) Variable quiz_cbmgrades_table::$sumwts is not documented
(#109) Variable quiz_cbmgrades_table::$sumcorr is not documented
(#109) Variable quiz_cbmgrades_table::$sumcbm is not documented
(#17) No one-line description found in phpdocs for file
(#32) No one-line description found in phpdocs for class quiz_cbmgrades_table
(#22) File-level phpdocs block does not have @copyright tag
(#34) Invalid inline phpdocs tag @copyright found
mod/quiz/report/cbmgrades/report.php
(#95) Function quiz_cbmgrades_report::display is not documented
(#17) No one-line description found in phpdocs for file
(#21) File-level phpdocs block does not have @copyright tag
mod/quiz/report/cbmgrades/version.php
(#17) No one-line description found in phpdocs for file

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]