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

(30 errors, 38 warnings)

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

grade/report/gradedist/ajax_handler.php
(#81) Inline comments must start with a capital letter, digit or 3-dots sequence
(#84) Expected 1 space after "!="; 0 found
grade/report/gradedist/edit_form.php
(#64) Line exceeds 132 characters; contains 134 characters
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
(#87) Line exceeds 132 characters; contains 134 characters
(#89) Line exceeds 132 characters; contains 134 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
(#126) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#127) Whitespace found at end of line
(#209) Expected 9 space(s) before asterisk; 5 found
(#210) Expected 9 space(s) before asterisk; 5 found
(#218) Whitespace found at end of line
(#219) Whitespace found at end of line
(#220) Inline comments must start with a capital letter, digit or 3-dots sequence
(#220) Inline comments must end in full-stops, exclamation marks, or question marks
(#229) Expected 9 space(s) before asterisk; 5 found
(#230) Expected 9 space(s) before asterisk; 5 found
(#238) Whitespace found at end of line
(#239) Whitespace found at end of line
(#240) Inline comments must start with a capital letter, digit or 3-dots sequence
(#240) Inline comments must end in full-stops, exclamation marks, or question marks
(#248) Whitespace found at end of line
(#258) Inline comments must start with a capital letter, digit or 3-dots sequence
(#258) Inline comments must end in full-stops, exclamation marks, or question marks
(#260) Inline comments must start with a capital letter, digit or 3-dots sequence
(#260) Inline comments must end in full-stops, exclamation marks, or question marks
(#262) Whitespace found at end of line
(#264) Inline comments must start with a capital letter, digit or 3-dots sequence
(#264) Inline comments must end in full-stops, exclamation marks, or question marks
(#266) Whitespace found at end of line
(#279) Whitespace found at end of line
(#327) 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, 28 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.
(#118) Line is too long.
(#119) Unnecessary semicolon.
(#150) Missing semicolon.
(#206) Line is too long.
(#237) Use '!==' to compare with ''.
(#256) Line is too long.
(#264) Line is too long.
(#272) Line is too long.
(#288) Use '!==' to compare with '0'.
(#292) Use '===' to compare with ''.
(#299) Line is too long.
(#307) Missing semicolon.
(#345) Missing semicolon.
(#48) '$' is not defined.
(#54) '$' is not defined.
(#61) 'Highcharts' is not defined.
(#129) '$' is not defined.
(#142) '$' is not defined.
(#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.
(#180) 'e' is defined but never used.
(#193) 'e' is defined but never used.
(#205) '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
(#320) Function grade_report_gradedist::get_gradeletter is not documented
(#249) 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]


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]