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

(193 errors, 78 warnings)

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

filter/simplequestion/classes/displayoptions.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#18) Whitespace found at end of line
(#29) Whitespace found at end of line
(#33) Whitespace found at end of line
(#41) Inline comments must end in full-stops, exclamation marks, or question marks
(#50) Expected "} else {\n"; found "} else {\n"
(#52) Whitespace found at end of line
filter/simplequestion/classes/task/simplequestion_cron.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#34) Expected MOODLE_INTERNAL check or config.php inclusion
(#49) Whitespace found at end of line
(#57) Whitespace found at end of line
(#58) Expected 1 space before "=>"; 0 found
(#58) Expected 1 space after "=>"; 0 found
(#58) Expected 1 space before "=>"; 0 found
(#58) Expected 1 space after "=>"; 0 found
(#59) Whitespace found at end of line
(#60) Line indented incorrectly; expected 8 spaces, found 7
(#61) Inline comments must start with a capital letter, digit or 3-dots sequence
(#61) Inline comments must end in full-stops, exclamation marks, or question marks
(#61) Line indented incorrectly; expected at least 12 spaces, found 11
(#62) Line indented incorrectly; expected at least 12 spaces, found 11
(#62) Whitespace found at end of line
(#63) Expected 1 space before "=>"; 0 found
(#63) Expected 1 space after "=>"; 0 found
(#63) Expected 1 space before "=>"; 0 found
(#63) Expected 1 space after "=>"; 0 found
(#65) Inline comments must start with a capital letter, digit or 3-dots sequence
(#65) Inline comments must end in full-stops, exclamation marks, or question marks
(#65) Line indented incorrectly; expected at least 12 spaces, found 11
(#66) Line indented incorrectly; expected 12 spaces, found 11
(#67) Inline comments must end in full-stops, exclamation marks, or question marks
(#67) Line indented incorrectly; expected at least 16 spaces, found 15
(#68) Line indented incorrectly; expected at least 16 spaces, found 15
(#68) Whitespace found at end of line
(#69) Expected 1 space before "=>"; 0 found
(#69) Expected 1 space after "=>"; 0 found
(#70) Line indented incorrectly; expected 16 spaces, found 15
(#71) Inline comments must start with a capital letter, digit or 3-dots sequence
(#71) Inline comments must end in full-stops, exclamation marks, or question marks
(#71) Line indented incorrectly; expected at least 20 spaces, found 19
(#72) Line indented incorrectly; expected at least 20 spaces, found 19
(#72) Whitespace found at end of line
(#73) Expected 1 space before "=>"; 0 found
(#73) Expected 1 space after "=>"; 0 found
(#74) Line indented incorrectly; expected 20 spaces, found 19
(#75) Inline comments must end in full-stops, exclamation marks, or question marks
(#75) Line indented incorrectly; expected at least 24 spaces, found 23
(#76) Line indented incorrectly; expected at least 24 spaces, found 23
(#77) Expected 1 space before "=>"; 0 found
(#77) Expected 1 space after "=>"; 0 found
(#78) Line indented incorrectly; expected 20 spaces, found 19
(#79) Inline comments must start with a capital letter, digit or 3-dots sequence
(#79) Inline comments must end in full-stops, exclamation marks, or question marks
(#79) Line indented incorrectly; expected at least 20 spaces, found 19
(#80) Line indented incorrectly; expected at least 20 spaces, found 19
(#81) Expected 1 space before "=>"; 0 found
(#81) Expected 1 space after "=>"; 0 found
(#82) Closing brace indented incorrectly; expected 15 spaces, found 16
(#83) Whitespace found at end of line
(#84) Line indented incorrectly; expected at least 16 spaces, found 15
(#85) Expected 1 space before "=>"; 0 found
(#85) Expected 1 space after "=>"; 0 found
(#85) Expected 1 space before "=>"; 0 found
(#85) Expected 1 space after "=>"; 0 found
(#85) Whitespace found at end of line
(#86) Line indented incorrectly; expected 12 spaces, found 11
(#87) Inline comments must start with a capital letter, digit or 3-dots sequence
(#87) Inline comments must end in full-stops, exclamation marks, or question marks
(#87) Line indented incorrectly; expected at least 12 spaces, found 11
(#88) Line indented incorrectly; expected at least 12 spaces, found 11
(#89) Expected 1 space before "=>"; 0 found
(#89) Expected 1 space after "=>"; 0 found
(#89) Expected 1 space before "=>"; 0 found
(#89) Expected 1 space after "=>"; 0 found
(#90) Line indented incorrectly; expected 8 spaces, found 7
(#91) Line indented incorrectly; expected at least 8 spaces, found 7
(#92) Line indented incorrectly; expected 4 spaces, found 2
(#92) Closing brace indented incorrectly; expected 4 spaces, found 2
filter/simplequestion/classes/urls.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#18) Whitespace found at end of line
(#34) Whitespace found at end of line
(#47) Line indented incorrectly; expected 4 spaces, found 5
(#54) Line indented incorrectly; expected 4 spaces, found 5
(#62) Whitespace found at end of line
(#67) Line indented incorrectly; expected 4 spaces, found 5
(#72) Line indented incorrectly; expected 8 spaces, found 9
(#74) Line indented incorrectly; expected 8 spaces, found 9
(#75) Line indented incorrectly; expected 8 spaces, found 9
(#77) Line indented incorrectly; expected 8 spaces, found 9
(#78) Line indented incorrectly; expected 8 spaces, found 9
(#85) Line indented incorrectly; expected 8 spaces, found 9
(#86) Line indented incorrectly; expected 8 spaces, found 9
(#88) Line indented incorrectly; expected 8 spaces, found 9
(#90) Closing brace indented incorrectly; expected 5 spaces, found 4
filter/simplequestion/classes/utility/tools.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#29) Whitespace found at end of line
(#36) Whitespace found at end of line
(#40) Whitespace found at end of line
(#50) Expected "for (...) {\n"; found "for(...) {\n"
(#57) Inline comments must end in full-stops, exclamation marks, or question marks
(#60) Whitespace found at end of line
(#63) Whitespace found at end of line
(#75) Whitespace found at end of line
(#78) Expected "for (...) {\n"; found "for(...) {\n"
filter/simplequestion/db/tasks.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".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#25) Whitespace found at end of line
(#27) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#28) Whitespace found at end of line
(#31) Whitespace found at end of line
filter/simplequestion/filter.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#44) Visibility must be declared on method "filter"
(#47) Inline comments must end in full-stops, exclamation marks, or question marks
(#49) Inline comments must start with a capital letter, digit or 3-dots sequence
(#49) Inline comments must end in full-stops, exclamation marks, or question marks
(#54) Inline comments must end in full-stops, exclamation marks, or question marks
(#55) Variable "def_config" must not contain underscores.
(#56) Variable "def_config" must not contain underscores.
(#57) Variable "def_config" must not contain underscores.
(#58) Variable "def_config" must not contain underscores.
(#59) Variable "def_config" must not contain underscores.
(#61) Inline comments must end in full-stops, exclamation marks, or question marks
(#67) Inline comments must end in full-stops, exclamation marks, or question marks
(#76) Inline comments must end in full-stops, exclamation marks, or question marks
(#98) Inline comments must end in full-stops, exclamation marks, or question marks
(#102) Inline comments must start with a capital letter, digit or 3-dots sequence
(#102) Inline comments must end in full-stops, exclamation marks, or question marks
(#104) Inline comments must start with a capital letter, digit or 3-dots sequence
(#105) Inline comments must end in full-stops, exclamation marks, or question marks
(#108) Inline comments must end in full-stops, exclamation marks, or question marks
(#117) Inline comments must end in full-stops, exclamation marks, or question marks
(#123) Inline comments must end in full-stops, exclamation marks, or question marks
(#129) Inline comments must end in full-stops, exclamation marks, or question marks
(#131) Inline comments must end in full-stops, exclamation marks, or question marks
(#138) Inline comments must end in full-stops, exclamation marks, or question marks
(#140) Inline comments must end in full-stops, exclamation marks, or question marks
(#146) Inline comments must end in full-stops, exclamation marks, or question marks
(#157) Inline comments must end in full-stops, exclamation marks, or question marks
(#164) Inline comments must end in full-stops, exclamation marks, or question marks
filter/simplequestion/lang/en/filter_simplequestion.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#31) Inline comments must end in full-stops, exclamation marks, or question marks
(#33) Whitespace found at end of line within string
(#34) Whitespace found at end of line within string
(#49) This comment is 47% valid code; is this commented out code?
(#49) Inline comments must start with a capital letter, digit or 3-dots sequence
(#50) No space found before comment text; expected "// $string['size_settings_heading'] = 'iFrame settings';" but found "//$string['size_settings_heading'] = 'iFrame settings';"
(#51) Inline comments must end in full-stops, exclamation marks, or question marks
(#51) No space found before comment text; expected "// $string['size_settings_desc'] = 'These only apply to embedded questions.';" but found "//$string['size_settings_desc'] = 'These only apply to embedded questions.';"
(#57) Inline comments must start with a capital letter, digit or 3-dots sequence
(#57) 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
(#68) No space found before comment text; expected "// Question form controls" but found "//Question form controls"
filter/simplequestion/lib.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#46) Whitespace found at end of line
(#47) This comment is 60% valid code; is this commented out code?
(#47) Inline comments must start with a capital letter, digit or 3-dots sequence
(#49) Whitespace found at end of line
filter/simplequestion/preview.php
(#42) Variable "def_config" must not contain underscores.
(#43) Variable "def_config" must not contain underscores.
(#51) Inline comments must end in full-stops, exclamation marks, or question marks
(#54) Inline comments must start with a capital letter, digit or 3-dots sequence
(#55) Inline comments must end in full-stops, exclamation marks, or question marks
(#63) Variable "page_url" must not contain underscores.
(#66) Variable "page_url" must not contain underscores.
(#106) Inline comments must end in full-stops, exclamation marks, or question marks
(#114) Whitespace found at end of line
(#131) Inline comments must start with a capital letter, digit or 3-dots sequence
(#131) Inline comments must end in full-stops, exclamation marks, or question marks
(#131) This comment is 53% valid code; is this commented out code?
(#131) No space found before comment text; expected "// $headtags = question_engine::initialise_js() . $quba->render_question_head_html($slot);" but found "//$headtags = question_engine::initialise_js() . $quba->render_question_head_html($slot);"
(#147) Whitespace found at end of line
(#152) Line indented incorrectly; expected at least 4 spaces, found 0
filter/simplequestion/renderer.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#52) Whitespace found at end of line
(#54) Commas (,) must be followed by white space.
(#54) Whitespace found at end of line
(#58) Whitespace found at end of line
(#64) Inline comments must end in full-stops, exclamation marks, or question marks
(#69) Inline comments must end in full-stops, exclamation marks, or question marks
(#71) Inline comments must end in full-stops, exclamation marks, or question marks
(#75) Inline comments must start with a capital letter, digit or 3-dots sequence
(#75) Inline comments must end in full-stops, exclamation marks, or question marks
(#97) Whitespace found at end of line
(#108) Variable "button_attributes" must not contain underscores.
(#108) Expected 1 space after "="; newline found
(#108) Whitespace found at end of line
(#109) Whitespace found at end of line
(#111) Variable "button_attributes" must not contain underscores.
(#112) Inline comments must end in full-stops, exclamation marks, or question marks
(#113) Commas (,) must be followed by white space.
(#114) Whitespace found at end of line
(#115) Inline comments must end in full-stops, exclamation marks, or question marks
(#116) Variable "def_config" must not contain underscores.
(#117) Variable "def_config" must not contain underscores.
(#118) Variable "def_config" must not contain underscores.
(#119) Whitespace found at end of line
(#121) Inline comments must end in full-stops, exclamation marks, or question marks
(#123) Expected 1 space before "=>"; 0 found
(#123) Expected 1 space after "=>"; 0 found
(#125) Inline comments must start with a capital letter, digit or 3-dots sequence
(#125) Inline comments must end in full-stops, exclamation marks, or question marks
(#125) Whitespace found at end of line
(#126) Variable "iframe_attributes" must not contain underscores.
(#126) Expected 1 space before "=>"; 0 found
(#126) Expected 1 space after "=>"; 0 found
(#126) Expected 1 space before "=>"; 0 found
(#126) Expected 1 space after "=>"; 0 found
(#126) Commas (,) must be followed by white space.
(#127) Variable "iframe_attributes" must not contain underscores.
(#132) Line indented incorrectly; expected 4 spaces, found 3
(#132) Closing brace indented incorrectly; expected 4 spaces, found 3
(#139) Whitespace found at end of line
(#140) Inline comments must end in full-stops, exclamation marks, or question marks
(#144) Inline comments must start with a capital letter, digit or 3-dots sequence
(#144) Inline comments must end in full-stops, exclamation marks, or question marks
(#146) Inline comments must end in full-stops, exclamation marks, or question marks
(#148) Whitespace found at end of line
(#150) Inline comments must start with a capital letter, digit or 3-dots sequence
(#150) Inline comments must end in full-stops, exclamation marks, or question marks
filter/simplequestion/settings.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#30) Inline comments must start with a capital letter, digit or 3-dots sequence
(#30) Inline comments must end in full-stops, exclamation marks, or question marks
(#31) Variable "START_TAG" must be all lower-case
(#31) Variable "START_TAG" must not contain underscores.
(#32) Variable "END_TAG" must be all lower-case
(#32) Variable "END_TAG" must not contain underscores.
(#33) Variable "LINKTEXTLIMIT" must be all lower-case
(#33) Whitespace found at end of line
(#34) Variable "KEY" must be all lower-case
(#35) Variable "HEIGHT" must be all lower-case
(#36) Variable "WIDTH" must be all lower-case
(#38) Inline comments must start with a capital letter, digit or 3-dots sequence
(#38) Inline comments must end in full-stops, exclamation marks, or question marks
(#42) Whitespace found at end of line
(#45) Inline comments must end in full-stops, exclamation marks, or question marks
(#46) Whitespace found at end of line
(#50) Variable "START_TAG" must be all lower-case
(#50) Variable "START_TAG" must not contain underscores.
(#51) Whitespace found at end of line
(#54) Whitespace found at end of line
(#55) Variable "END_TAG" must be all lower-case
(#55) Variable "END_TAG" must not contain underscores.
(#56) Whitespace found at end of line
(#57) Inline comments must end in full-stops, exclamation marks, or question marks
(#60) Whitespace found at end of line
(#61) Variable "LINKTEXTLIMIT" must be all lower-case
(#65) Whitespace found at end of line
(#66) Variable "KEY" must be all lower-case
(#68) Whitespace found at end of line
(#73) Whitespace found at end of line
(#78) Whitespace found at end of line
(#79) Variable "HEIGHT" must be all lower-case
(#80) Whitespace found at end of line
(#83) Whitespace found at end of line
(#84) Variable "WIDTH" must be all lower-case
filter/simplequestion/version.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#29) Whitespace found at end of line
(#30) Inline comments must start with a capital letter, digit or 3-dots sequence
(#30) Inline comments must end in full-stops, exclamation marks, or question marks
(#30) Whitespace found at end of line
(#33) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(13 errors, 0 warnings)

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

filter/simplequestion/amd/src/show_content.js
(#1) 'log' is defined but never used. (no-unused-vars)
(#1) Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
(#2) Trailing spaces not allowed. (no-trailing-spaces)
(#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) Trailing spaces not allowed. (no-trailing-spaces)
(#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)
(#9) Missing semicolon. (semi)

CSS problems

(13 errors, 5 warnings)

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

filter/simplequestion/styles.css
(#29) Expected newline before "}" (block-closing-brace-newline-before)
(#30) Expected newline before "}" (block-closing-brace-newline-before)
(#29) Expected newline after "{" (block-opening-brace-newline-after)
(#30) Expected newline after "{" (block-opening-brace-newline-after)
(#12) Expected "#FF6" to be "#ff6" (color-hex-case)
(#17) Expected "#FF6" to be "#ff6" (color-hex-case)
(#21) Expected "#FF6" to be "#ff6" (color-hex-case)
(#25) Expected "#FF0000" to be "#ff0000" (color-hex-case)
(#25) Expected "#FF0000" to be "#F00" (color-hex-length)
(#25) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#29) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#30) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#3) Expected indentation of 4 spaces (indentation)
(#4) Expected indentation of 4 spaces (indentation)
(#5) Expected indentation of 4 spaces (indentation)
(#21) Expected indentation of 4 spaces (indentation)
(#22) Expected indentation of 4 spaces (indentation)
(#25) Expected indentation of 4 spaces (indentation)

PHPDocs style problems

(31 errors, 1 warnings)

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

filter/simplequestion/classes/displayoptions.php
(#21) Package filter is not valid
(#17) No one-line description found in phpdocs for file
(#29) Class displayoptions does not have @copyright tag
(#29) Class displayoptions does not have @license tag
filter/simplequestion/classes/task/simplequestion_cron.php
(#21) Package filter is not valid
(#17) No one-line description found in phpdocs for file
(#28) No one-line description found in phpdocs for class simplequestion_cron
(#28) Class simplequestion_cron does not have @copyright tag
(#28) Class simplequestion_cron does not have @license tag
filter/simplequestion/classes/urls.php
(#21) Package moodlecore is not valid
(#17) No one-line description found in phpdocs for file
(#40) Phpdocs for function urls::preview_action_url has incomplete parameters list
(#57) Phpdocs for function urls::preview_url has incomplete parameters list
(#34) Class urls does not have @copyright tag
(#34) Class urls does not have @license tag
filter/simplequestion/classes/utility/tools.php
(#22) Package filter is not valid
(#36) Class tools does not have @copyright tag
(#36) Class tools does not have @license tag
filter/simplequestion/db/tasks.php
(#21) Package filter is not valid
(#2) Empty line found after PHP open tag
filter/simplequestion/filter.php
(#20) Package filter is not valid
(#27) No one-line description found in phpdocs for class filter_simplequestion
(#27) Class filter_simplequestion does not have @copyright tag
(#27) Class filter_simplequestion does not have @license tag
filter/simplequestion/lang/en/filter_simplequestion.php
(#19) Package filter is not valid
filter/simplequestion/lib.php
(#20) Package mod_qpractice is not valid
(#43) Function filter_simplequestion_question_pluginfile is not documented
filter/simplequestion/preview.php
(#24) Package moodlecore is not valid
filter/simplequestion/renderer.php
(#19) Package filter is not valid
filter/simplequestion/settings.php
(#20) Package filter is not valid
(#22) Inline phpdocs tag not enclosed with curly brackets @link found
filter/simplequestion/version.php
(#20) Package filter is not valid

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]

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

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]