Prechecker results: error


Overview

(0 errors, 0 warnings)

This section shows the general problems detected when processing the code [More info]


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

(76 errors, 53 warnings)

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

report/coursemanager/admin_dashboard/orphaned_submissions.php
(#158) Whitespace found at end of line
report/coursemanager/classes/task/delete_cohorts_task.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#29) Missing docblock for class delete_cohorts_task
(#31) Missing docblock for function execute
report/coursemanager/classes/task/reset_course_task.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#29) Missing docblock for class reset_course_task
(#31) Missing docblock for function execute
(#48) Inline comments must end in full-stops, exclamation marks, or question marks
(#61) File must end with a newline character
report/coursemanager/classes/task/run_course_content_report_task.php
(#57) Expected "if (...) {\n"; found "if (...)\n {\n"
(#57) Line exceeds 132 characters; contains 152 characters
(#61) Line indented incorrectly; expected 12 spaces, found 16
(#61) Closing brace indented incorrectly; expected 12 spaces, found 16
(#62) Expected "if (...) {\n"; found "if (...)\n {\n"
(#66) Line indented incorrectly; expected 12 spaces, found 16
(#66) Closing brace indented incorrectly; expected 12 spaces, found 16
report/coursemanager/classes/task/run_student_visit_report_task.php
(#56) Expected "if (...) {\n"; found "if (...)\n {\n"
(#56) Line exceeds 132 characters; contains 142 characters
(#61) Expected "if (...) {\n"; found "if (...)\n {\n"
(#65) Line indented incorrectly; expected 12 spaces, found 16
(#65) Closing brace indented incorrectly; expected 12 spaces, found 16
(#66) Expected "if (...) {\n"; found "if (...)\n {\n"
(#66) Line exceeds 132 characters; contains 142 characters
(#70) Line indented incorrectly; expected 12 spaces, found 16
(#70) Closing brace indented incorrectly; expected 12 spaces, found 16
report/coursemanager/classes/task/run_teacher_visit_report_task.php
(#57) Expected "if (...) {\n"; found "if (...)\n {\n"
(#57) Line exceeds 132 characters; contains 148 characters
(#62) Expected "if (...) {\n"; found "if (...)\n {\n"
(#66) Line indented incorrectly; expected 12 spaces, found 16
(#66) Closing brace indented incorrectly; expected 12 spaces, found 16
(#67) Expected "if (...) {\n"; found "if (...)\n {\n"
(#67) Line exceeds 132 characters; contains 142 characters
(#71) Line indented incorrectly; expected 12 spaces, found 16
(#71) Closing brace indented incorrectly; expected 12 spaces, found 16
report/coursemanager/lang/en/report_coursemanager.php
(#129) Whitespace found at end of line within string
(#135) Whitespace found at end of line within string
report/coursemanager/lang/fr/report_coursemanager.php
(#260) Whitespace found at end of line within string
(#264) Whitespace found at end of line within string
report/coursemanager/lib.php
(#278) Whitespace found at end of line
(#302) Inline comments must start with a capital letter, digit or 3-dots sequence
(#302) Inline comments must end in full-stops, exclamation marks, or question marks
(#302) This comment is 50% valid code; is this commented out code?
(#302) No space found before comment text; expected "// break; // On sort de la boucle dès qu'on trouve la valeur" but found "//break; // On sort de la boucle dès qu'on trouve la valeur"
(#367) Inline comments must start with a capital letter, digit or 3-dots sequence
(#367) Inline comments must end in full-stops, exclamation marks, or question marks
(#367) This comment is 50% valid code; is this commented out code?
(#367) No space found before comment text; expected "// break; // On sort de la boucle dès qu'on trouve la valeur" but found "//break; // On sort de la boucle dès qu'on trouve la valeur"
(#481) Whitespace found at end of line
(#495) Short array syntax must be used to define arrays
(#518) Variable "middle_index" must not contain underscores.
(#520) Variable "middle_index" must not contain underscores.
(#522) Variable "middle_index" must not contain underscores.
(#523) Variable "middle_index" must not contain underscores.
(#542) Short array syntax must be used to define arrays
(#553) Variable "course_weight" must not contain underscores.
(#554) Variable "course_weight" must not contain underscores.
(#554) Variable "course_weight" must not contain underscores.
(#555) Variable "icon_median" must not contain underscores.
(#556) Usage of ELSEIF not allowed; use ELSE IF instead
(#556) Variable "course_weight" must not contain underscores.
(#557) Variable "icon_median" must not contain underscores.
(#558) Usage of ELSEIF not allowed; use ELSE IF instead
(#558) Variable "course_weight" must not contain underscores.
(#559) Variable "icon_median" must not contain underscores.
(#560) Usage of ELSEIF not allowed; use ELSE IF instead
(#560) Variable "course_weight" must not contain underscores.
(#561) Variable "icon_median" must not contain underscores.
(#564) Variable "icon_median" must not contain underscores.
(#574) Variable "course_weight" must not contain underscores.
(#575) Variable "course_weight" must not contain underscores.
(#575) Variable "course_weight" must not contain underscores.
(#576) Variable "icon_average" must not contain underscores.
(#577) Usage of ELSEIF not allowed; use ELSE IF instead
(#577) Variable "course_weight" must not contain underscores.
(#578) Variable "icon_average" must not contain underscores.
(#579) Usage of ELSEIF not allowed; use ELSE IF instead
(#579) Variable "course_weight" must not contain underscores.
(#580) Variable "icon_average" must not contain underscores.
(#582) Variable "icon_average" must not contain underscores.
(#585) Variable "icon_average" must not contain underscores.
report/coursemanager/reset.php
(#65) Inline comments must end in full-stops, exclamation marks, or question marks
(#68) Inline comments must end in full-stops, exclamation marks, or question marks
(#74) There should be a comma after the last array item in a multi-line array.
(#79) Whitespace found at end of line
(#80) Inline comments must end in full-stops, exclamation marks, or question marks
(#80) Line indented incorrectly; expected at least 4 spaces, found 0
(#84) Inline comments must start with a capital letter, digit or 3-dots sequence
(#84) This comment is 55% valid code; is this commented out code?
(#88) Inline comments must start with a capital letter, digit or 3-dots sequence
(#88) This comment is 56% valid code; is this commented out code?
(#92) Inline comments must start with a capital letter, digit or 3-dots sequence
(#92) This comment is 54% valid code; is this commented out code?
(#94) Expected 1 space before comment text but found 5; use block comment if you need indentation
(#95) Expected 1 space before comment text but found 9; use block comment if you need indentation
(#96) Expected 1 space before comment text but found 9; use block comment if you need indentation
(#97) Expected 1 space before comment text but found 5; use block comment if you need indentation
(#100) Inline comments must start with a capital letter, digit or 3-dots sequence
(#100) This comment is 72% valid code; is this commented out code?
(#102) Inline comments must start with a capital letter, digit or 3-dots sequence
(#102) This comment is 63% valid code; is this commented out code?
(#103) Expected 1 space before comment text but found 5; use block comment if you need indentation
(#104) Expected 1 space before comment text but found 5; use block comment if you need indentation
(#105) Expected 1 space before comment text but found 5; use block comment if you need indentation
(#106) Expected 1 space before comment text but found 5; use block comment if you need indentation
(#107) Expected 1 space before comment text but found 5; use block comment if you need indentation
(#108) Inline comments must end in full-stops, exclamation marks, or question marks
(#110) Inline comments must start with a capital letter, digit or 3-dots sequence
(#110) Inline comments must end in full-stops, exclamation marks, or question marks
(#110) This comment is 67% valid code; is this commented out code?
(#112) Inline comments must start with a capital letter, digit or 3-dots sequence
(#112) This comment is 69% valid code; is this commented out code?
(#113) Inline comments must end in full-stops, exclamation marks, or question marks
(#115) Inline comments must start with a capital letter, digit or 3-dots sequence
(#115) This comment is 57% valid code; is this commented out code?
(#121) Inline comments must start with a capital letter, digit or 3-dots sequence
(#121) Inline comments must end in full-stops, exclamation marks, or question marks
report/coursemanager/view.php
(#95) Inline comments must end in full-stops, exclamation marks, or question marks
(#153) Line exceeds 132 characters; contains 141 characters
(#154) Line exceeds 132 characters; contains 154 characters
(#156) Line exceeds 132 characters; contains 141 characters
(#157) Line exceeds 132 characters; contains 156 characters
(#229) Line exceeds 132 characters; contains 153 characters
(#232) Line exceeds 132 characters; contains 153 characters
(#305) Line exceeds 132 characters; contains 140 characters
(#309) Line exceeds 132 characters; contains 135 characters
(#315) Line exceeds 132 characters; contains 153 characters
(#318) Line exceeds 132 characters; contains 153 characters
(#319) Line exceeds 132 characters; contains 134 characters
(#497) Inline comments must start with a capital letter, digit or 3-dots sequence

Javascript coding style problems

(21 errors, 0 warnings)

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

report/coursemanager/search_courses.js
(#1) 'searchCourses' is defined but never used. (no-unused-vars)
(#1) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#2) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#3) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#4) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#5) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#6) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#7) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#8) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#9) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#10) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#11) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#12) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#13) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#14) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#15) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#16) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#17) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#18) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#19) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#20) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(0 errors, 0 warnings)

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


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]


Gherkin .feature problems

(0 errors, 0 warnings)

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