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

(22 errors, 34 warnings)

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

report/assign/classes/event/assignment_dump.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#85) File must end with a newline character
report/assign/classes/event/assignment_export.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#85) File must end with a newline character
report/assign/classes/event/assignment_offline.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#57) Line exceeds 132 characters; contains 140 characters
(#85) File must end with a newline character
report/assign/classes/event/assignment_viewed.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#85) File must end with a newline character
report/assign/classes/event/report_viewed.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#80) File must end with a newline character
report/assign/classes/forms/dumpselect.php
(#65) File must end with a newline character
report/assign/classes/lib.php
(#32) Inline comments must start with a capital letter, digit or 3-dots sequence
(#32) Inline comments must end in full-stops, exclamation marks, or question marks
(#32) This comment is 78% valid code; is this commented out code?
(#32) No space found before comment text; expected "// require_once($CFG->dirroot.'/mod/assign/locallib.php');" but found "//require_once($CFG->dirroot.'/mod/assign/locallib.php');"
(#356) Commas (,) must be followed by white space.
(#359) Whitespace found at end of line
(#573) Inline comments must start with a capital letter, digit or 3-dots sequence
(#573) This comment is 61% valid code; is this commented out code?
(#573) No space found before comment text; expected "// $submission->participantno = empty($submission->recordid) ? '-' : $submission->recordid;" but found "//$submission->participantno = empty($submission->recordid) ? '-' : $submission->recordid;"
(#781) Inline comments must end in full-stops, exclamation marks, or question marks
(#788) Inline comments must end in full-stops, exclamation marks, or question marks
(#811) Inline comments must end in full-stops, exclamation marks, or question marks
(#819) Inline comments must end in full-stops, exclamation marks, or question marks
report/assign/classes/output/listassign.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#103) File must end with a newline character
report/assign/classes/output/renderer.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
report/assign/classes/output/reportassign.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
report/assign/classes/privacy/provider.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
report/assign/db/install.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
report/assign/db/services.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#45) File must end with a newline character
report/assign/externallib.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#25) Whitespace found at end of line
(#59) Whitespace found at end of line
(#66) Whitespace found at end of line
(#74) Whitespace found at end of line
report/assign/index.php
(#82) Inline comments must start with a capital letter, digit or 3-dots sequence
(#82) This comment is 66% valid code; is this commented out code?
(#82) No space found before comment text; expected "// $assignment = $DB->get_record('assign', ['id' => $assignid], '*', MUST_EXIST);" but found "//$assignment = $DB->get_record('assign', ['id' => $assignid], '*', MUST_EXIST);"
(#88) Line exceeds 132 characters; contains 153 characters
(#100) Inline comments must end in full-stops, exclamation marks, or question marks
(#106) Inline comments must end in full-stops, exclamation marks, or question marks
(#151) Inline comments must end in full-stops, exclamation marks, or question marks
(#166) Inline comments must end in full-stops, exclamation marks, or question marks
(#184) Line exceeds 132 characters; contains 153 characters
report/assign/lib.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
report/assign/settings.php
(#55) File must end with a newline character
report/assign/userlog.php
(#35) Line exceeds 132 characters; contains 142 characters
(#53) Inline comments must start with a capital letter, digit or 3-dots sequence
(#54) Inline comments must end in full-stops, exclamation marks, or question marks
(#66) Inline comments must end in full-stops, exclamation marks, or question marks
(#68) Whitespace found at end of line within string
(#89) Commas (,) must be followed by white space.
(#103) File must end with a newline character

Javascript coding style problems

(0 errors, 3 warnings)

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

report/assign/amd/src/filter.js
(#22) Expected catch,fail() or return (promise/catch-or-return)
(#33) Each then() should return a value or throw (promise/always-return)
(#36) Comments should not begin with a lowercase character. (capitalized-comments)

CSS problems

(1 errors, 0 warnings)

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

report/assign/styles.css
(#6) Expected indentation of 0 spaces (indentation)

PHPDocs style problems

(49 errors, 0 warnings)

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

report/assign/classes/event/assignment_dump.php
(#29) Class assignment_dump is not documented
report/assign/classes/event/assignment_export.php
(#29) Class assignment_export is not documented
report/assign/classes/event/assignment_offline.php
(#29) Class assignment_offline is not documented
report/assign/classes/event/assignment_viewed.php
(#29) Class assignment_viewed is not documented
report/assign/classes/event/report_viewed.php
(#29) Class report_viewed is not documented
report/assign/classes/forms/dumpselect.php
(#21) Package report is not valid
(#32) Class dumpselect is not documented
(#34) Function dumpselect::definition is not documented
report/assign/classes/lib.php
(#20) Package report is not valid
(#38) Class lib is not documented
(#320) Phpdocs for function lib::add_files_zipfiles has incomplete parameters list
(#504) Phpdocs for function lib::add_assignment_data has incomplete parameters list
(#974) Phpdocs for function lib::download_feedback_files has incomplete parameters list
report/assign/classes/output/listassign.php
(#35) Class listassign is not documented
(#43) Function listassign::__construct is not documented
(#91) Function listassign::export_for_template is not documented
(#37) Variable listassign::$course is not documented
(#39) Variable listassign::$fullurl is not documented
(#41) Variable listassign::$assignments is not documented
(#51) Phpdocs for function listassign::groupmode_name has incomplete parameters list
report/assign/classes/output/renderer.php
(#20) Package report is not valid
(#33) Class renderer is not documented
(#37) Phpdocs for function renderer::render_listassign has incomplete parameters list
(#46) Phpdocs for function renderer::render_reportassign has incomplete parameters list
report/assign/classes/output/reportassign.php
(#35) Class reportassign is not documented
(#51) Function reportassign::__construct is not documented
(#75) Function reportassign::export_for_template is not documented
(#37) Variable reportassign::$course is not documented
(#39) Variable reportassign::$context is not documented
(#41) Variable reportassign::$fullurl is not documented
(#43) Variable reportassign::$submissions is not documented
(#45) Variable reportassign::$assignment is not documented
(#47) Variable reportassign::$showparticipantnumber is not documented
(#49) Variable reportassign::$extensionsok is not documented
report/assign/classes/privacy/provider.php
(#20) Package report_aassign is not valid
report/assign/db/access.php
(#17) File-level phpdocs block does not have @copyright tag
report/assign/db/install.php
(#20) Package report is not valid
(#27) Function xmldb_report_assign_install is not documented
(#17) File-level phpdocs block does not have @copyright tag
report/assign/dump.php
(#21) Package report is not valid
report/assign/index.php
(#21) Package report is not valid
report/assign/lang/en/report_assign.php
(#20) Package report is not valid
(#17) File-level phpdocs block does not have @copyright tag
report/assign/lib.php
(#20) Package report is not valid
report/assign/settings.php
(#20) Package report is not valid
(#17) File-level phpdocs block does not have @copyright tag
report/assign/userlog.php
(#21) Package report is not valid
report/assign/version.php
(#20) Package report is not valid
(#17) File-level phpdocs block does not have @copyright tag

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]


Missing changes in external functions or backup support for new detected tables or columns

(0 errors, 0 warnings)

This section shows potential problems detected when there are new database structures added in a patch and it is detected that nothing has been changed related with external functions (to be used by WS) or backup and restore. It must be checked that everything is correct and nothing is being missed in those areas. [More info]


grunt changes

(1 errors, 1 warnings)

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

Problems running grunt
Task "stylelint:css" failed. Use --force to continue.

shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 6 warnings)

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

report/assign/templates/extensionpopup.mustache
(#1) Example context missing (@template section not found.)
report/assign/templates/listassign.mustache
(#1) Example context missing (@template section not found.)
report/assign/templates/reportassign.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 7: “th” start tag in table body. ( <thead> <th>[[user)
report/assign/templates/userlog.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation info, line 3: Empty heading. (d><body><h1></h1>)

Gherkin .feature problems

(0 errors, 0 warnings)

This section shows problems detected in behat .feature files [More info]