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

(94 errors, 3 warnings)

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

admin/tool/coursesummary/classes/output/renderer.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#33) Line indented incorrectly; expected 4 spaces, found 2
(#34) Line indented incorrectly; expected at least 8 spaces, found 4
(#35) Line indented incorrectly; expected at least 8 spaces, found 4
(#36) Line indented incorrectly; expected 4 spaces, found 2
(#38) Line indented incorrectly; expected 4 spaces, found 2
(#39) Line indented incorrectly; expected at least 8 spaces, found 4
(#40) Line indented incorrectly; expected at least 8 spaces, found 4
(#41) Line indented incorrectly; expected 4 spaces, found 2
admin/tool/coursesummary/classes/output/success.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#32) Expected MOODLE_INTERNAL check or config.php inclusion
(#34) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#34) Scope modifier not specified for member variable "$category"
admin/tool/coursesummary/coursesummary_form.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
admin/tool/coursesummary/index.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#3) Line 2 of the opening comment must start "//".
(#3) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#3) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#3) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#3) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#3) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#4) Line 12 of the opening comment must start "//".
(#4) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#36) Spaces must be used to indent lines; tabs are not allowed
(#36) Tab found within whitespace
(#36) Line indented incorrectly; expected at least 4 spaces, found 1
(#37) Spaces must be used to indent lines; tabs are not allowed
(#37) Tab found within whitespace
(#37) Line indented incorrectly; expected at least 4 spaces, found 1
(#38) Spaces must be used to indent lines; tabs are not allowed
(#38) Tab found within whitespace
(#38) Line indented incorrectly; expected at least 4 spaces, found 1
(#40) Spaces must be used to indent lines; tabs are not allowed
(#40) Tab found within whitespace
(#40) Line indented incorrectly; expected 4 spaces, found 1
(#40) Expected "try {\n...} catch (...) {\n"; found "try {\n...} catch(...) {\n"
(#41) Spaces must be used to indent lines; tabs are not allowed
(#41) Tab found within whitespace
(#41) Line indented incorrectly; expected at least 8 spaces, found 2
(#42) Spaces must be used to indent lines; tabs are not allowed
(#42) Tab found within whitespace
(#42) Line indented incorrectly; expected at least 8 spaces, found 2
(#44) Spaces must be used to indent lines; tabs are not allowed
(#44) Tab found within whitespace
(#44) Inline comments must end in full-stops, exclamation marks, or question marks
(#44) Line indented incorrectly; expected at least 8 spaces, found 2
(#45) Spaces must be used to indent lines; tabs are not allowed
(#45) Tab found within whitespace
(#45) Line indented incorrectly; expected at least 8 spaces, found 2
(#45) Variable "success_output" must not contain underscores.
(#46) Spaces must be used to indent lines; tabs are not allowed
(#46) Tab found within whitespace
(#46) Line indented incorrectly; expected at least 8 spaces, found 2
(#46) Variable "success_output" must not contain underscores.
(#48) Spaces must be used to indent lines; tabs are not allowed
(#48) Tab found within whitespace
(#48) Line indented incorrectly; expected 4 spaces, found 1
(#50) Spaces must be used to indent lines; tabs are not allowed
(#50) Tab found within whitespace
(#50) Line indented incorrectly; expected at least 8 spaces, found 2
(#51) Spaces must be used to indent lines; tabs are not allowed
(#51) Tab found within whitespace
(#51) Line indented incorrectly; expected at least 8 spaces, found 2
(#53) Spaces must be used to indent lines; tabs are not allowed
(#53) Tab found within whitespace
(#53) Line indented incorrectly; expected 4 spaces, found 1
(#55) Spaces must be used to indent lines; tabs are not allowed
(#55) Tab found within whitespace
(#55) Line indented incorrectly; expected at least 4 spaces, found 1
(#56) Spaces must be used to indent lines; tabs are not allowed
(#56) Tab found within whitespace
(#56) Line indented incorrectly; expected at least 4 spaces, found 1
(#60) Spaces must be used to indent lines; tabs are not allowed
(#60) Tab found within whitespace
(#60) Line indented incorrectly; expected at least 4 spaces, found 1
(#61) Spaces must be used to indent lines; tabs are not allowed
(#61) Tab found within whitespace
(#61) Line indented incorrectly; expected at least 4 spaces, found 1
(#67) A closing tag is not permitted at the end of a PHP file
admin/tool/coursesummary/lang/en/tool_coursesummary.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
admin/tool/coursesummary/locallib.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#27) Expected login check (require_login, require_course_login, admin_externalpage_setup) following config inclusion. None found.
(#66) Line indented incorrectly; expected at least 4 spaces, found 2
(#68) Line indented incorrectly; expected at least 4 spaces, found 2
(#70) Line indented incorrectly; expected 4 spaces, found 2
(#71) Line indented incorrectly; expected at least 8 spaces, found 4
(#72) Line indented incorrectly; expected 4 spaces, found 2
(#73) Line indented incorrectly; expected at least 8 spaces, found 4
(#74) Line indented incorrectly; expected 4 spaces, found 2
admin/tool/coursesummary/settings.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
admin/tool/coursesummary/version.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"

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

(0 errors, 0 warnings)

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


PHPDocs style problems

(13 errors, 1 warnings)

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

admin/tool/coursesummary/classes/output/renderer.php
(#31) Class renderer is not documented
(#33) Function renderer::render_success is not documented
(#38) Function renderer::render_failure is not documented
admin/tool/coursesummary/classes/output/success.php
(#32) Class success is not documented
(#36) Function success::__construct is not documented
(#34) Variable success::$category is not documented
(#40) Phpdocs for function success::export_for_template has incomplete parameters list
admin/tool/coursesummary/coursesummary_form.php
(#30) Class coursesummary_form is not documented
(#32) Function coursesummary_form::definition is not documented
(#57) Function coursesummary_form::validation is not documented
admin/tool/coursesummary/index.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
admin/tool/coursesummary/locallib.php
(#51) Phpdocs for function tool_coursesummary_set_course_summaries has incomplete parameters list
(#62) Phpdocs for function tool_coursesummary_get_category_name has incomplete parameters list

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

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

admin/tool/coursesummary/templates/failure.mustache
(#1) Example context missing.
admin/tool/coursesummary/templates/success.mustache
(#1) Example context missing.
(#1) HTML Validation error, line 3: An “img” element must have an “alt” attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images. (ss"> <p><img src="images/checkmark.png">[[ suc)