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

(15 errors, 26 warnings)

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

grade/report/gradedist/export.php
(#72) Whitespace found at end of line
(#73) Inline comments must end in full-stops, exclamation marks, or question marks
(#146) Commas (,) must be followed by white space.
(#147) Commas (,) must be followed by white space.
(#148) Commas (,) must be followed by white space.
(#149) Line exceeds 132 characters; contains 158 characters
grade/report/gradedist/index.php
(#59) Expected 1 space before "="; 0 found
(#59) Expected 1 space after "="; 0 found
(#59) Whitespace found at end of line
(#63) Usage of ELSEIF not allowed; use ELSE IF instead
(#63) Expected 1 space before "="; 0 found
(#63) Expected 1 space after "="; 0 found
(#81) Line exceeds 132 characters; contains 136 characters
(#83) Line exceeds 132 characters; contains 136 characters
grade/report/gradedist/lib.php
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#70) Expected 1 space after "="; newline found
(#80) Expected 1 space after "="; newline found
(#271) Expected 1 space after "?"; newline found
grade/report/gradedist/mtablepdf.php
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#29) Expected login check (require_login, require_course_login, admin_externalpage_setup) following config inclusion. None found.
(#138) This comment is 100% valid code; is this commented out code?
(#138) This comment is 67% valid code; is this commented out code?
(#140) This comment is 67% valid code; is this commented out code?
(#141) This comment is 100% valid code; is this commented out code?
(#141) This comment is 67% valid code; is this commented out code?
(#144) This comment is 67% valid code; is this commented out code?
(#148) This comment is 67% valid code; is this commented out code?
(#149) This comment is 100% valid code; is this commented out code?
(#149) This comment is 67% valid code; is this commented out code?
(#152) This comment is 67% valid code; is this commented out code?
(#154) This comment is 67% valid code; is this commented out code?
(#162) This comment is 100% valid code; is this commented out code?
(#165) This comment is 67% valid code; is this commented out code?
(#166) This comment is 100% valid code; is this commented out code?
(#166) This comment is 67% valid code; is this commented out code?
(#169) This comment is 67% valid code; is this commented out code?
(#173) This comment is 67% valid code; is this commented out code?
(#175) This comment is 100% valid code; is this commented out code?
(#175) This comment is 67% valid code; is this commented out code?
(#178) This comment is 67% valid code; is this commented out code?
(#180) This comment is 67% valid code; is this commented out code?

Javascript coding style problems

(0 errors, 18 warnings)

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

grade/report/gradedist/js/gradedist.js
(#49) Missing semicolon.
(#116) Missing semicolon.
(#119) Unnecessary semicolon.
(#150) Missing semicolon.
(#211) Expected '!==' and instead saw '!='.
(#246) Line is too long.
(#262) Expected '!==' and instead saw '!='.
(#266) Expected '===' and instead saw '=='.
(#273) Line is too long.
(#281) Missing semicolon.
(#309) Expected '===' and instead saw '=='.
(#319) Missing semicolon.
(#54) 'index' is defined but never used.
(#121) 'args' is defined but never used.
(#129) 'index' is defined but never used.
(#142) 'index' is defined but never used.
(#169) 'e' is defined but never used.
(#179) 'e' is defined but never used.

CSS problems

(30 errors, 0 warnings)

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

grade/report/gradedist/styles.css
(#1) Unexpected token '/' at line 1, col 51.
(#1) Unexpected token '/' at line 1, col 1.
(#1) Unexpected token '-' at line 1, col 32.
(#1) Expected LBRACE at line 1, col 39.
(#1) Unexpected token '/' at line 1, col 39.
(#1) Unexpected token '/' at line 1, col 40.
(#1) Expected LBRACE at line 1, col 51.
(#1) Expected LBRACE at line 1, col 32.
(#1) Unexpected token '/' at line 1, col 2.
(#2) Unexpected token '/' at line 2, col 1.
(#2) Unexpected token '/' at line 2, col 2.
(#3) Unexpected token '/' at line 3, col 1.
(#3) Unexpected token '/' at line 3, col 2.
(#3) Expected LBRACE at line 3, col 56.
(#3) Unexpected token '/' at line 3, col 56.
(#4) Expected LBRACE at line 4, col 1.
(#4) Unexpected token '/' at line 4, col 1.
(#4) Unexpected token '/' at line 4, col 2.
(#5) Expected LBRACE at line 5, col 1.
(#5) Unexpected token '/' at line 5, col 2.
(#5) Expected LBRACE at line 5, col 49.
(#5) Unexpected token '3' at line 5, col 49.
(#5) Unexpected token '/' at line 5, col 1.
(#6) Expected LBRACE at line 6, col 1.
(#6) Expected IDENT at line 6, col 39.
(#6) Unexpected token '/' at line 6, col 2.
(#6) Unexpected token '(' at line 6, col 4.
(#6) Expected LBRACE at line 6, col 19.
(#6) Unexpected token ')' at line 6, col 19.
(#6) Unexpected token '/' at line 6, col 1.

PHPDocs style problems

(60 errors, 1 warnings)

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

grade/report/gradedist/classes/event/confirmation_table_viewed.php
(#32) Class confirmation_table_viewed is not documented
grade/report/gradedist/classes/event/gradedist_downloaded.php
(#32) Class gradedist_downloaded is not documented
grade/report/gradedist/classes/event/gradedist_viewed.php
(#32) Class gradedist_viewed is not documented
grade/report/gradedist/classes/event/newletters_submitted.php
(#32) Class newletters_submitted is not documented
grade/report/gradedist/confirm_form.php
(#34) Class confirm_letter_form is not documented
(#36) Function confirm_letter_form::definition is not documented
grade/report/gradedist/edit_form.php
(#34) Class edit_letter_form is not documented
(#36) Function edit_letter_form::definition is not documented
grade/report/gradedist/export.php
(#47) Function grade_export_gradedist::init is not documented
(#57) Function grade_export_gradedist::print_grades is not documented
(#39) Variable grade_export_gradedist::$course is not documented
(#40) Variable grade_export_gradedist::$grader is not documented
(#41) Variable grade_export_gradedist::$gradeitem is not documented
(#42) Variable grade_export_gradedist::$letters is not documented
(#43) Variable grade_export_gradedist::$newletters is not documented
(#44) Variable grade_export_gradedist::$exportformat is not documented
(#45) Variable grade_export_gradedist::$filename is not documented
(#32) No one-line description found in phpdocs for class grade_export_gradedist
grade/report/gradedist/lib.php
(#264) Function grade_report_gradedist::get_gradeletter is not documented
(#207) Phpdocs for function grade_report_gradedist::load_distribution has incomplete parameters list
(#31) Class grade_report_gradedist does not have @copyright tag
(#31) Class grade_report_gradedist does not have @license tag
(#34) Package gradereport_overview is not valid
grade/report/gradedist/mtablepdf.php
(#72) Function MTablePDF::__construct is not documented
(#91) Function MTablePDF::setcolumnformat is not documented
(#121) Function MTablePDF::header is not documented
(#231) Function MTablePDF::setoutputformat is not documented
(#331) Function MTablePDF::generate is not documented
(#758) Function MTablePDF::set_headerformat is not documented
(#763) Function MTablePDF::get_xls is not documented
(#776) Function MTablePDF::get_xlsx is not documented
(#789) Function MTablePDF::get_ods is not documented
(#802) Function MTablePDF::get_csv is not documented
(#58) Variable MTablePDF::$outputformat is not documented
(#60) Variable MTablePDF::$orientation is not documented
(#61) Variable MTablePDF::$rowsperpage is not documented
(#62) Variable MTablePDF::$fontsize is not documented
(#63) Variable MTablePDF::$showheaderfooter is not documented
(#65) Variable MTablePDF::$columnwidths is not documented
(#66) Variable MTablePDF::$titles is not documented
(#67) Variable MTablePDF::$columnformat is not documented
(#68) Variable MTablePDF::$headerformat is not documented
(#70) Variable MTablePDF::$data is not documented
(#44) Constant MTablePDF::PORTRAIT is not documented
(#45) Constant MTablePDF::LANDSCAPE is not documented
(#47) Constant MTablePDF::FONTSIZE_SMALL is not documented
(#48) Constant MTablePDF::FONTSIZE_MEDIUM is not documented
(#49) Constant MTablePDF::FONTSIZE_LARGE is not documented
(#51) Constant MTablePDF::OUTPUT_FORMAT_PDF is not documented
(#52) Constant MTablePDF::OUTPUT_FORMAT_XLSX is not documented
(#53) Constant MTablePDF::OUTPUT_FORMAT_XLS is not documented
(#54) Constant MTablePDF::OUTPUT_FORMAT_ODS is not documented
(#55) Constant MTablePDF::OUTPUT_FORMAT_CSV_COMMA is not documented
(#56) Constant MTablePDF::OUTPUT_FORMAT_CSV_TAB is not documented
(#38) No one-line description found in phpdocs for class MTablePDF
(#237) Phpdocs for function MTablePDF::setrowsperpage has incomplete parameters list
(#360) Phpdocs for function MTablePDF::get_pdf has incomplete parameters list
(#38) Class MTablePDF does not have @copyright tag
(#38) Class MTablePDF does not have @license tag
(#40) Not recommended phpdocs tag @version used
grade/report/gradedist/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]


Mustache template problems

(0 errors, 0 warnings)

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