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

(158 errors, 24 warnings)

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

admin/tool/quizpasschange/ajax/getpassword.ajax.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#26) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#33) Variable "course_id" must not contain underscores.
(#44) Spaces must be used to indent lines; tabs are not allowed
(#44) Tab found within whitespace
(#44) Line indented incorrectly; expected at least 4 spaces, found 1
(#44) Variable "course_id" 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 4 spaces, found 1
(#47) Spaces must be used to indent lines; tabs are not allowed
(#47) Tab found within whitespace
(#47) Line indented incorrectly; expected at least 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 4 spaces, found 1
(#50) Line exceeds maximum limit of 180 characters; contains 187 characters
(#52) Spaces must be used to indent lines; tabs are not allowed
(#52) Tab found within whitespace
(#52) Line indented incorrectly; expected at least 4 spaces, found 1
(#53) Spaces must be used to indent lines; tabs are not allowed
(#53) Tab found within whitespace
(#53) Line indented incorrectly; expected at least 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
admin/tool/quizpasschange/classes/output/renderer.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#25) Line exceeds 132 characters; contains 142 characters
(#25) Whitespace found at end of line
(#26) Whitespace found at end of line
(#27) Whitespace found at end of line
(#28) Whitespace found at end of line
(#29) Whitespace found at end of line
(#30) Whitespace found at end of line
(#32) Whitespace found at end of line
(#33) Whitespace found at end of line
(#34) Whitespace found at end of line
(#35) Line exceeds 132 characters; contains 134 characters
(#35) Whitespace found at end of line
(#36) Whitespace found at end of line
(#37) Whitespace found at end of line
(#38) Whitespace found at end of line
(#39) Line exceeds 132 characters; contains 134 characters
(#39) Whitespace found at end of line
(#40) Whitespace found at end of line
(#41) Line exceeds 132 characters; contains 144 characters
(#41) Whitespace found at end of line
(#42) Whitespace found at end of line
admin/tool/quizpasschange/classes/output/success_html.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#25) Line exceeds 132 characters; contains 142 characters
(#25) Whitespace found at end of line
(#26) Whitespace found at end of line
(#27) Whitespace found at end of line
(#28) Whitespace found at end of line
(#29) Whitespace found at end of line
(#30) Whitespace found at end of line
(#31) Whitespace found at end of line
(#32) Expected MOODLE_INTERNAL check or config.php inclusion
(#32) Line exceeds 132 characters; contains 134 characters
(#32) Whitespace found at end of line
(#34) Member variable "success_string" must not contain underscores.
(#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 "$success_string"
(#35) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#35) Scope modifier not specified for member variable "$password"
(#36) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#36) Scope modifier not specified for member variable "$course"
(#37) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#37) Scope modifier not specified for member variable "$to"
(#37) Whitespace found at end of line
(#38) Whitespace found at end of line
(#39) Variable "success_string" must not contain underscores.
(#39) Line exceeds 132 characters; contains 163 characters
(#39) Whitespace found at end of line
(#40) Variable "success_string" must not contain underscores.
(#42) Whitespace found at end of line
(#43) Whitespace found at end of line
(#45) Whitespace found at end of line
(#46) Whitespace found at end of line
(#47) Whitespace found at end of line
(#48) Whitespace found at end of line
(#49) Whitespace found at end of line
(#50) Whitespace found at end of line
(#51) Whitespace found at end of line
(#52) Whitespace found at end of line
(#55) Whitespace found at end of line
(#56) Whitespace found at end of line
(#57) Whitespace found at end of line
admin/tool/quizpasschange/index.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#26) Inline comments must end in full-stops, exclamation marks, or question marks
(#32) Inline comments must end in full-stops, exclamation marks, or question marks
(#33) Whitespace found at end of line
(#44) Whitespace found at end of line
(#45) Whitespace found at end of line
(#52) Variable "success_output" must not contain underscores.
(#57) Spaces must be used to indent lines; tabs are not allowed
(#57) Tab found within whitespace
(#57) Line indented incorrectly; expected at least 4 spaces, found 1
(#58) Spaces must be used to indent lines; tabs are not allowed
(#58) Tab found within whitespace
(#58) Inline comments must end in full-stops, exclamation marks, or question marks
(#58) Line indented incorrectly; expected at least 4 spaces, found 1
(#59) Spaces must be used to indent lines; tabs are not allowed
(#59) Tab found within whitespace
(#59) 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
(#62) Spaces must be used to indent lines; tabs are not allowed
(#62) Tab found within whitespace
(#62) Inline comments must end in full-stops, exclamation marks, or question marks
(#62) Line indented incorrectly; expected at least 4 spaces, found 1
(#63) Spaces must be used to indent lines; tabs are not allowed
(#63) Tab found within whitespace
(#63) Line indented incorrectly; expected 4 spaces, found 1
(#64) Spaces must be used to indent lines; tabs are not allowed
(#64) Tab found within whitespace
(#64) Line indented incorrectly; expected at least 8 spaces, found 2
(#65) Spaces must be used to indent lines; tabs are not allowed
(#65) Tab found within whitespace
(#65) Line indented incorrectly; expected 4 spaces, found 1
(#66) Spaces must be used to indent lines; tabs are not allowed
(#66) Tab found within whitespace
(#66) Line indented incorrectly; expected at least 8 spaces, found 2
(#67) Spaces must be used to indent lines; tabs are not allowed
(#67) Tab found within whitespace
(#67) Line indented incorrectly; expected 4 spaces, found 1
(#69) Spaces must be used to indent lines; tabs are not allowed
(#69) Tab found within whitespace
(#69) Inline comments must end in full-stops, exclamation marks, or question marks
(#69) Line indented incorrectly; expected at least 4 spaces, found 1
(#70) Spaces must be used to indent lines; tabs are not allowed
(#70) Tab found within whitespace
(#70) Line indented incorrectly; expected at least 4 spaces, found 1
(#70) Line exceeds 132 characters; contains 167 characters
(#71) Spaces must be used to indent lines; tabs are not allowed
(#71) Tab found within whitespace
(#71) Line indented incorrectly; expected at least 4 spaces, found 1
(#71) Variable "success_output" must not contain underscores.
(#73) Spaces must be used to indent lines; tabs are not allowed
(#73) Tab found within whitespace
(#73) Line indented incorrectly; expected at least 4 spaces, found 1
(#76) Spaces must be used to indent lines; tabs are not allowed
(#76) Tab found within whitespace
(#76) Line indented incorrectly; expected at least 4 spaces, found 1
(#77) Spaces must be used to indent lines; tabs are not allowed
(#77) Tab found within whitespace
(#77) Inline comments must end in full-stops, exclamation marks, or question marks
(#77) Line indented incorrectly; expected at least 4 spaces, found 1
(#79) Spaces must be used to indent lines; tabs are not allowed
(#79) Tab found within whitespace
(#79) Inline comments must end in full-stops, exclamation marks, or question marks
(#79) Line indented incorrectly; expected at least 4 spaces, found 1
(#80) Spaces must be used to indent lines; tabs are not allowed
(#80) Tab found within whitespace
(#80) Line indented incorrectly; expected at least 4 spaces, found 1
(#83) Whitespace found at end of line
(#86) A closing tag is not permitted at the end of a PHP file
admin/tool/quizpasschange/lang/en/tool_quizpasschange.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
admin/tool/quizpasschange/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.
(#40) Whitespace found at end of line within string
(#41) Whitespace found at end of line within string
(#42) Whitespace found at end of line within string
(#46) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#64) Inline comments must start with a capital letter, digit or 3-dots sequence
(#64) Inline comments must end in full-stops, exclamation marks, or question marks
(#68) Whitespace found at end of line within string
(#69) Whitespace found at end of line within string
(#70) Whitespace found at end of line within string
(#73) Inline comments must start with a capital letter, digit or 3-dots sequence
(#73) Inline comments must end in full-stops, exclamation marks, or question marks
admin/tool/quizpasschange/passchange_form.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#34) Whitespace found at end of line
(#35) Whitespace found at end of line
(#47) Inline comments must start with a capital letter, digit or 3-dots sequence
(#47) Inline comments must end in full-stops, exclamation marks, or question marks
(#59) Line exceeds 132 characters; contains 149 characters
(#62) Whitespace found at end of line
(#62) Functions must not contain multiple empty lines in a row; found 2 empty lines
admin/tool/quizpasschange/settings.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
admin/tool/quizpasschange/version.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"

Javascript coding style problems

(63 errors, 2 warnings)

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

admin/tool/quizpasschange/ajax/onselect.js
(#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)
(#21) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#22) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#23) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#24) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#25) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#26) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#27) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#28) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#29) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#30) Unexpected tab character. (no-tabs)
(#30) 'select' is not defined. (no-undef)
(#30) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#31) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#32) 'select' is not defined. (no-undef)
(#32) Unexpected tab character. (no-tabs)
(#32) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#33) Trailing spaces not allowed. (no-trailing-spaces)
(#33) Unexpected tab character. (no-tabs)
(#33) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#34) Unexpected tab character. (no-tabs)
(#34) 'select' is not defined. (no-undef)
(#34) 'select' is not defined. (no-undef)
(#34) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#35) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#36) Unexpected tab character. (no-tabs)
(#36) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#37) Unexpected tab character. (no-tabs)
(#37) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#38) Unexpected tab character. (no-tabs)
(#38) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#39) Unexpected tab character. (no-tabs)
(#39) Identifier 'course_id' is not in camel case. (camelcase)
(#39) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#40) Unexpected tab character. (no-tabs)
(#40) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#41) Unexpected tab character. (no-tabs)
(#41) ["response"] is better written in dot notation. (dot-notation)
(#41) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#42) Unexpected tab character. (no-tabs)
(#42) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#43) Unexpected tab character. (no-tabs)
(#43) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#43) Missing semicolon. (semi)
(#44) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#45) 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

(12 errors, 0 warnings)

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

admin/tool/quizpasschange/classes/output/renderer.php
(#31) Class renderer is not documented
admin/tool/quizpasschange/classes/output/success_html.php
(#32) Class success_html is not documented
(#39) Function success_html::__construct is not documented
(#34) Variable success_html::$success_string is not documented
(#35) Variable success_html::$password is not documented
(#36) Variable success_html::$course is not documented
(#37) Variable success_html::$to is not documented
(#46) Phpdocs for function success_html::export_for_template has incomplete parameters list
admin/tool/quizpasschange/locallib.php
(#57) Phpdocs for function tool_quizpasschange_set_quiz_passwords has incomplete parameters list
(#83) Phpdocs for function tool_quizpasschange_get_course_string has incomplete parameters list
admin/tool/quizpasschange/passchange_form.php
(#34) Class passchange_form does not have @copyright tag
(#35) Class passchange_form does not have @license 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]


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

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

admin/tool/quizpasschange/templates/success_html.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 2: An “img” element must have an “alt” attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images. (<body><p><img src="images/checkmark.png"> ''!)