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

(23 errors, 10 warnings)

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

mod/checkmark/classes/MTablePDF.php
(#793) Inline comments must end in full-stops, exclamation marks, or question marks
(#800) Inline comments must end in full-stops, exclamation marks, or question marks
mod/checkmark/classes/example.php
(#155) Expected "if (...) {\n"; found "if(...) {\n"
(#156) Commas (,) must be followed by white space.
(#174) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#285) Line indented incorrectly; expected 4 spaces, found 0
(#285) Closing brace indented incorrectly; expected 4 spaces, found 0
mod/checkmark/classes/exportform.php
(#173) Functions must not contain multiple empty lines in a row; found 3 empty lines
mod/checkmark/classes/submission.php
(#113) Commas (,) must be followed by white space.
(#114) Commas (,) must be followed by white space.
mod/checkmark/classes/submissionstable.php
(#1085) Expected 1 space after asterisk; 0 found
(#1684) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1684) Inline comments must end in full-stops, exclamation marks, or question marks
(#1684) This comment is 63% valid code; is this commented out code?
(#1684) No space found before comment text; expected "// return $example->is_checked() ? 'X' : ' ';" but found "//return $example->is_checked() ? 'X' : ' ';"
mod/checkmark/handlehideall.php
(#2) The opening <?php tag must be followed by exactly one newline.
mod/checkmark/lib.php
(#1583) Calls to inbuilt PHP functions must be lowercase; expected "gettype" but found "getType"
mod/checkmark/locallib.php
(#239) Commas (,) must be followed by white space.
(#469) Inline control structures are not allowed
(#2007) Expected "if (...) {\n"; found "if(...) {\n"
(#2191) Inline comments must start with a capital letter, digit or 3-dots sequence
(#2191) Inline comments must end in full-stops, exclamation marks, or question marks
(#2191) This comment is 91% valid code; is this commented out code?
(#2191) No space found before comment text; expected "// $mform->addElement('button','showexamples','Display examples in table');" but found "//$mform->addElement('button','showexamples','Display examples in table');"
(#3166) Commas (,) must be followed by white space.
(#3437) This comment is 57% valid code; is this commented out code?
mod/checkmark/submission_form.php
(#68) Line exceeds 132 characters; contains 135 characters
(#70) Expected "if (...) {\n"; found "if(...) {\n"
(#70) Commas (,) must be followed by white space.
(#71) Commas (,) must be followed by white space.
(#95) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#97) Variable "std_examples" must not contain underscores.
(#98) Variable "std_examples" must not contain underscores.

Javascript coding style problems

(1 errors, 30 warnings)

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

mod/checkmark/amd/src/overrides.js
(#43) Missing JSDoc for parameter 'config'. (valid-jsdoc)
mod/checkmark/amd/src/submission.js
(#34) Unexpected empty function. (no-empty-function)
(#47) Expected space(s) after "for". (keyword-spacing)
(#53) ["grade"] is better written in dot notation. (dot-notation)
(#91) Expected space(s) after "for". (keyword-spacing)
mod/checkmark/amd/src/utils.js
(#1) Unexpected space before function parentheses. (space-before-function-paren)
(#3) Unexpected space before function parentheses. (space-before-function-paren)
(#8) Unexpected space before function parentheses. (space-before-function-paren)
(#16) Unexpected space before function parentheses. (space-before-function-paren)
(#25) Unquoted number literal '200' used as key. (quote-props)
(#25) Unexpected space before function parentheses. (space-before-function-paren)
(#38) Unexpected space before function parentheses. (space-before-function-paren)
(#41) Unexpected space before function parentheses. (space-before-function-paren)
(#44) Identifier 'classes_arr' is not in camel case. (camelcase)
(#45) Identifier 'classes_arr' is not in camel case. (camelcase)
(#45) Unexpected space before function parentheses. (space-before-function-paren)
(#53) Unexpected space before function parentheses. (space-before-function-paren)
(#56) Unexpected space before function parentheses. (space-before-function-paren)
(#59) Unexpected space before function parentheses. (space-before-function-paren)
(#60) A space is required after ','. (comma-spacing)
(#63) Unexpected space before function parentheses. (space-before-function-paren)
(#86) Unexpected console statement. (no-console)
(#89) There should be no space after '['. (array-bracket-spacing)
(#92) A space is required after ','. (comma-spacing)
(#95) A space is required after ','. (comma-spacing)
(#101) Expected catch,fail() or return (promise/catch-or-return)
(#101) Each then() should return a value or throw (promise/always-return)
(#101) Unexpected space before function parentheses. (space-before-function-paren)
(#117) Unexpected space before function parentheses. (space-before-function-paren)
(#118) Unexpected space before function parentheses. (space-before-function-paren)
(#121) Unexpected space before function parentheses. (space-before-function-paren)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(70 errors, 1 warnings)

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

mod/checkmark/classes/MTablePDF.php
(#170) Phpdocs for function MTablePDF::setheadertext has incomplete parameters list
mod/checkmark/classes/example.php
(#77) Function example::__get is not documented
(#105) Function example::__set is not documented
(#120) Function example::export_for_snapshot is not documented
(#130) Function example::set_state is not documented
(#134) Function example::get_name is not documented
(#138) Function example::get_grade is not documented
(#142) Function example::get_pointsstring is not documented
(#154) Function example::get_forcedstring is not documented
(#161) Function example::from_id is not documented
(#190) Function example::print_examplestate is not documented
(#196) Function example::print_example is not documented
(#202) Function example::get_examplestate_for_export is not documented
(#275) Function example::get_static_pointstring is not documented
(#52) Variable example::$id is not documented
(#53) Variable example::$name is not documented
(#54) Variable example::$grade is not documented
(#55) Variable example::$prefix is not documented
(#56) Variable example::$state is not documented
(#38) Constant example::BITMASK_USER is not documented
(#39) Constant example::BITMASK_TEACHER is not documented
(#40) Constant example::BITMASK_FORCED is not documented
(#42) Constant example::CHECKEDBOX is not documented
(#43) Constant example::EMPTYBOX is not documented
(#44) Constant example::FORCED_EMPTYBOX is not documented
(#45) Constant example::FORCED_CHECKEDBOX is not documented
(#47) Constant example::UNCHECKED is not documented
(#48) Constant example::CHECKED is not documented
(#49) Constant example::UNCHECKED_OVERWRITTEN is not documented
(#50) Constant example::CHECKED_OVERWRITTEN is not documented
(#214) There is no description in phpdocs for function static_is_checked
(#224) There is no description in phpdocs for function static_is_forced
(#232) There is no description in phpdocs for function static_is_forced_checked
(#240) There is no description in phpdocs for function static_is_forced_unchecked
(#248) There is no description in phpdocs for function is_checked
(#255) There is no description in phpdocs for function is_forced
(#262) There is no description in phpdocs for function is_forced_checked
(#269) There is no description in phpdocs for function is_forced_unchecked
(#61) Phpdocs for function example::__construct has incomplete parameters list
(#215) Phpdocs for function example::static_is_checked has incomplete parameters list
(#225) Phpdocs for function example::static_is_forced has incomplete parameters list
(#233) Phpdocs for function example::static_is_forced_checked has incomplete parameters list
(#241) Phpdocs for function example::static_is_forced_unchecked has incomplete parameters list
mod/checkmark/classes/export.php
(#116) There is no description in phpdocs for function set_general_data
(#139) There is no description in phpdocs for function set_pdf_data
(#154) There is no description in phpdocs for function set_used_template
(#161) There is no description in phpdocs for function get_event_data
mod/checkmark/classes/report_editdates_integration.php
(#22) Package is not specified for class mod_checkmark_report_editdates_integration. It is also not specified in file-level phpdocs
(#17) File-level phpdocs block is not found
(#22) Class mod_checkmark_report_editdates_integration is not documented
(#25) Function mod_checkmark_report_editdates_integration::__construct is not documented
(#30) Function mod_checkmark_report_editdates_integration::get_settings is not documented
(#53) Function mod_checkmark_report_editdates_integration::validate_dates is not documented
(#82) Function mod_checkmark_report_editdates_integration::save_dates is not documented
mod/checkmark/classes/submission.php
(#113) Function submission::get_mock_submission is not documented
(#123) Function submission::export_for_snapshot is not documented
(#96) There is no description in phpdocs for function get_submission
(#134) There is no description in phpdocs for function get_example
(#146) There is no description in phpdocs for function get_examples
(#153) There is no description in phpdocs for function get_timemodified
(#160) There is no description in phpdocs for function get_id
(#167) There is no description in phpdocs for function get_userid
(#174) There is no description in phpdocs for function render
(#97) Phpdocs for function submission::get_submission has incomplete parameters list
(#135) Phpdocs for function submission::get_example has incomplete parameters list
mod/checkmark/handlehideall.php
(#5) Package moodle36 is not valid
(#2) Empty line found after PHP open tag
(#3) No one-line description found in phpdocs for file
mod/checkmark/locallib.php
(#1353) Function checkmark::get_autograded_feedbacks is not documented
(#3414) Phpdocs for function checkmark::print_user_submission has incomplete parameters list
mod/checkmark/mod_form.php
(#98) Function mod_checkmark_mod_form::add_availability_elements is not documented

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, 1 warnings)

This section shows files built by grunt and not commited [More info]

Problems running grunt
Task "eslint:amd" failed. Use --force to continue.

shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(3 errors, 0 warnings)

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

mod/checkmark/templates/example.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
mod/checkmark/templates/examplestate.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
mod/checkmark/templates/submission.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error