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

(46 errors, 46 warnings)

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

grade/report/gradedist/ajax_handler.php
(#82) Inline comments must start with a capital letter, digit or 3-dots sequence
(#85) Expected 1 space after "!="; 0 found
grade/report/gradedist/edit_form.php
(#65) Line exceeds 132 characters; contains 134 characters
(#98) Whitespace found at end of line
grade/report/gradedist/export.php
(#72) Inline comments must end in full-stops, exclamation marks, or question marks
(#73) Whitespace found at end of line
(#74) Whitespace found at end of line
(#85) Inline comments must end in full-stops, exclamation marks, or question marks
(#90) Whitespace found at end of line
(#91) Inline comments must end in full-stops, exclamation marks, or question marks
(#164) Commas (,) must be followed by white space.
(#165) Commas (,) must be followed by white space.
(#166) Commas (,) must be followed by white space.
(#167) Line exceeds 132 characters; contains 158 characters
(#170) Inline comments must start with a capital letter, digit or 3-dots sequence
(#170) Inline comments must end in full-stops, exclamation marks, or question marks
(#173) Line indented incorrectly; expected at least 12 spaces, found 11
(#174) Line indented incorrectly; expected 12 spaces, found 11
(#175) Line indented incorrectly; expected at least 16 spaces, found 14
(#176) Line indented incorrectly; expected 12 spaces, found 11
(#180) Whitespace found at end of line
(#181) Whitespace found at end of line
(#185) Inline comments must start with a capital letter, digit or 3-dots sequence
(#185) Inline comments must end in full-stops, exclamation marks, or question marks
(#186) TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
(#187) Whitespace found at end of line
(#188) TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
(#190) Expected "if (...) {\n"; found "if (...) {"
(#190) TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
(#190) Closing brace must be on a line by itself
(#193) Whitespace found at end of line
(#194) Expected "if (...) {\n"; found "if (...) {"
(#194) Closing brace must be on a line by itself
(#195) Whitespace found at end of line
grade/report/gradedist/index.php
(#60) Expected 1 space before "="; 0 found
(#60) Expected 1 space after "="; 0 found
(#60) Whitespace found at end of line
(#64) Usage of ELSEIF not allowed; use ELSE IF instead
(#64) Expected 1 space before "="; 0 found
(#64) Expected 1 space after "="; 0 found
(#88) Line exceeds 132 characters; contains 134 characters
(#90) Line exceeds 132 characters; contains 134 characters
(#155) Whitespace found at end of line
grade/report/gradedist/lib.php
(#29) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#127) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#128) Whitespace found at end of line
(#210) Expected 9 space(s) before asterisk; 5 found
(#211) Expected 9 space(s) before asterisk; 5 found
(#219) Whitespace found at end of line
(#220) Whitespace found at end of line
(#221) Inline comments must start with a capital letter, digit or 3-dots sequence
(#221) Inline comments must end in full-stops, exclamation marks, or question marks
(#230) Expected 9 space(s) before asterisk; 5 found
(#231) Expected 9 space(s) before asterisk; 5 found
(#239) Whitespace found at end of line
(#240) Whitespace found at end of line
(#241) Inline comments must start with a capital letter, digit or 3-dots sequence
(#241) Inline comments must end in full-stops, exclamation marks, or question marks
(#249) Whitespace found at end of line
(#259) Inline comments must start with a capital letter, digit or 3-dots sequence
(#259) Inline comments must end in full-stops, exclamation marks, or question marks
(#261) Inline comments must start with a capital letter, digit or 3-dots sequence
(#261) Inline comments must end in full-stops, exclamation marks, or question marks
(#263) Whitespace found at end of line
(#265) Inline comments must start with a capital letter, digit or 3-dots sequence
(#265) Inline comments must end in full-stops, exclamation marks, or question marks
(#267) Whitespace found at end of line
(#280) Whitespace found at end of line
grade/report/gradedist/mtablepdf.php
(#29) Inline comments must start with a capital letter, digit or 3-dots sequence
(#29) Inline comments must end in full-stops, exclamation marks, or question marks
(#31) Expected login check (require_login, require_course_login, admin_externalpage_setup) following config inclusion. None found.
(#178) This comment is 100% 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?
(#181) This comment is 100% valid code; is this commented out code?
(#181) This comment is 67% valid code; is this commented out code?
(#184) This comment is 67% valid code; is this commented out code?
(#188) This comment is 67% valid code; is this commented out code?
(#189) This comment is 100% valid code; is this commented out code?
(#189) This comment is 67% valid code; is this commented out code?
(#192) This comment is 67% valid code; is this commented out code?
(#194) This comment is 67% valid code; is this commented out code?
(#202) This comment is 100% valid code; is this commented out code?
(#205) This comment is 67% valid code; is this commented out code?
(#206) This comment is 100% valid code; is this commented out code?
(#206) This comment is 67% valid code; is this commented out code?
(#209) This comment is 67% valid code; is this commented out code?
(#213) This comment is 67% valid code; is this commented out code?
(#215) This comment is 100% valid code; is this commented out code?
(#215) This comment is 67% valid code; is this commented out code?
(#218) This comment is 67% valid code; is this commented out code?
(#220) This comment is 67% valid code; is this commented out code?

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

(1 errors, 0 warnings)

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

grade/report/gradedist/styles.css
(#3) Missed semicolon (CssSyntaxError)

PHPDocs style problems

(28 errors, 0 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
(#33) Class confirmation_table_viewed is not documented
grade/report/gradedist/classes/event/gradedist_downloaded.php
(#33) Class gradedist_downloaded is not documented
grade/report/gradedist/classes/event/gradedist_viewed.php
(#33) Class gradedist_viewed is not documented
grade/report/gradedist/classes/event/newletters_submitted.php
(#33) Class newletters_submitted is not documented
grade/report/gradedist/confirm_form.php
(#35) Class confirm_letter_form is not documented
(#37) Function confirm_letter_form::definition is not documented
grade/report/gradedist/edit_form.php
(#35) Class edit_letter_form is not documented
(#37) Function edit_letter_form::definition is not documented
grade/report/gradedist/export.php
(#50) Function grade_export_gradedist::init is not documented
(#62) Function grade_export_gradedist::print_grades is not documented
(#40) Variable grade_export_gradedist::$course is not documented
(#41) Variable grade_export_gradedist::$grader is not documented
(#42) Variable grade_export_gradedist::$gradeitem is not documented
(#43) Variable grade_export_gradedist::$letters is not documented
(#44) Variable grade_export_gradedist::$newletters is not documented
(#45) Variable grade_export_gradedist::$exportformat is not documented
(#46) Variable grade_export_gradedist::$filename is not documented
(#47) Variable grade_export_gradedist::$groupid is not documented
(#48) Variable grade_export_gradedist::$groupingid is not documented
(#33) No one-line description found in phpdocs for class grade_export_gradedist
grade/report/gradedist/lib.php
(#321) Function grade_report_gradedist::get_gradeletter is not documented
(#250) Phpdocs for function grade_report_gradedist::load_distribution has incomplete parameters list
(#32) Class grade_report_gradedist does not have @copyright tag
(#32) Class grade_report_gradedist does not have @license tag
(#35) Package gradereport_overview is not valid
grade/report/gradedist/mtablepdf.php
(#20) Package mtablepdf is not valid
(#38) Package mod_checkmark is not valid
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

(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]