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

(29 errors, 40 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) Inline comments must start with a capital letter, digit or 3-dots sequence
(#28) Inline comments must end in full-stops, exclamation marks, or question marks
(#30) Expected login check (require_login, require_course_login, admin_externalpage_setup) following config inclusion. None found.
(#177) This comment is 100% valid code; is this commented out code?
(#177) This comment is 67% valid code; is this commented out code?
(#179) This comment is 67% valid code; is this commented out code?
(#180) This comment is 100% valid code; is this commented out code?
(#180) This comment is 67% valid code; is this commented out code?
(#183) This comment is 67% valid code; is this commented out code?
(#187) This comment is 67% valid code; is this commented out code?
(#188) This comment is 100% valid code; is this commented out code?
(#188) This comment is 67% valid code; is this commented out code?
(#191) This comment is 67% valid code; is this commented out code?
(#193) This comment is 67% valid code; is this commented out code?
(#201) This comment is 100% valid code; is this commented out code?
(#204) This comment is 67% valid code; is this commented out code?
(#205) This comment is 100% valid code; is this commented out code?
(#205) This comment is 67% valid code; is this commented out code?
(#208) This comment is 67% valid code; is this commented out code?
(#212) This comment is 67% valid code; is this commented out code?
(#214) This comment is 100% valid code; is this commented out code?
(#214) This comment is 67% valid code; is this commented out code?
(#217) This comment is 67% valid code; is this commented out code?
(#219) This comment is 67% valid code; is this commented out code?

Javascript coding style problems

(27 errors, 31 warnings)

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

grade/report/gradedist/js/gradedist.js
(#27) Identifier 'gradereport_gradedist' is not in camel case. (camelcase)
(#28) Missing JSDoc for parameter 'data'. (valid-jsdoc)
(#28) Missing JSDoc for parameter 'Y'. (valid-jsdoc)
(#33) Unexpected space before function parentheses. (space-before-function-paren)
(#48) '$' is not defined. (no-undef)
(#49) Missing semicolon. (semi)
(#54) '$' is not defined. (no-undef)
(#54) 'index' is defined but never used (no-unused-vars)
(#59) Expected space(s) after "if". (keyword-spacing)
(#60) Trailing spaces not allowed. (no-trailing-spaces)
(#61) 'Highcharts' is not defined. (no-undef)
(#116) Missing semicolon. (semi)
(#118) Line 118 exceeds the maximum line length of 132. (max-len)
(#118) Infix operators must be spaced. (space-infix-ops)
(#118) Trailing spaces not allowed. (no-trailing-spaces)
(#119) Unnecessary semicolon. (no-extra-semi)
(#121) 'args' is defined but never used (no-unused-vars)
(#125) Expected space(s) after "if". (keyword-spacing)
(#129) '$' is not defined. (no-undef)
(#129) 'index' is defined but never used (no-unused-vars)
(#135) 'chart' used outside of binding context. (block-scoped-var)
(#137) 'chart' used outside of binding context. (block-scoped-var)
(#137) There should be no space after '{' (object-curly-spacing)
(#137) There should be no space before '}' (object-curly-spacing)
(#142) '$' is not defined. (no-undef)
(#142) 'index' is defined but never used (no-unused-vars)
(#149) 'chart' used outside of binding context. (block-scoped-var)
(#150) Missing semicolon. (semi)
(#169) Unexpected space before function parentheses. (space-before-function-paren)
(#169) 'e' is defined but never used (no-unused-vars)
(#180) Unexpected space before function parentheses. (space-before-function-paren)
(#180) 'e' is defined but never used (no-unused-vars)
(#193) Unexpected space before function parentheses. (space-before-function-paren)
(#193) 'e' is defined but never used (no-unused-vars)
(#205) Unexpected space before function parentheses. (space-before-function-paren)
(#205) 'e' is defined but never used (no-unused-vars)
(#206) Line 206 exceeds the maximum line length of 132. (max-len)
(#236) A space is required after ','. (comma-spacing)
(#256) Line 256 exceeds the maximum line length of 132. (max-len)
(#264) Line 264 exceeds the maximum line length of 132. (max-len)
(#272) Line 272 exceeds the maximum line length of 132. (max-len)
(#299) Line 299 exceeds the maximum line length of 132. (max-len)
(#307) Missing semicolon. (semi)
(#310) Unexpected space before function parentheses. (space-before-function-paren)
(#312) Identifier 'values_new' is not in camel case. (camelcase)
(#316) Identifier 'values_new' is not in camel case. (camelcase)
(#317) 'chart' used outside of binding context. (block-scoped-var)
(#320) 'chart' used outside of binding context. (block-scoped-var)
(#323) Identifier 'values_new' is not in camel case. (camelcase)
(#324) 'chart' used outside of binding context. (block-scoped-var)
(#327) 'chart' used outside of binding context. (block-scoped-var)
(#329) 'chart' used outside of binding context. (block-scoped-var)
(#330) 'chart' used outside of binding context. (block-scoped-var)
(#334) Unexpected space before function parentheses. (space-before-function-paren)
(#336) Expected space(s) after "if". (keyword-spacing)
(#337) 'chart' used outside of binding context. (block-scoped-var)
(#339) 'chart' used outside of binding context. (block-scoped-var)
(#345) Missing semicolon. (semi)

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

(26 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
(#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
(#20) Package mtablepdf is not valid
(#37) 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

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