Prechecker results: error


PHP lint problems

(1 errors, 0 warnings)

This section shows php lint problems in the code detected by php -l [More info]

theme/sharp/version.php
BOM character found

PHP coding style problems

(61 errors, 105 warnings)

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

theme/sharp/config.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#24) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#43) Spaces must be used to indent lines; tabs are not allowed
(#43) Tab found within whitespace
(#187) Inline comments must end in full-stops, exclamation marks, or question marks
(#219) Inline comments must end in full-stops, exclamation marks, or question marks
theme/sharp/lang/en/theme_sharp.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
theme/sharp/layout/frontpage.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#24) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#107) Line indented incorrectly; expected 48 spaces, found 56
(#108) Line exceeds 132 characters; contains 175 characters
(#108) Line exceeds 132 characters; contains 175 characters
(#108) Line exceeds 132 characters; contains 175 characters
(#108) Line exceeds 132 characters; contains 175 characters
(#108) Line exceeds 132 characters; contains 175 characters
(#108) Line exceeds 132 characters; contains 175 characters
(#108) Line exceeds 132 characters; contains 175 characters
(#108) Line exceeds 132 characters; contains 175 characters
(#108) Line exceeds 132 characters; contains 175 characters
(#108) Line exceeds 132 characters; contains 175 characters
(#108) Line exceeds 132 characters; contains 175 characters
(#108) Line exceeds 132 characters; contains 175 characters
(#108) Line exceeds 132 characters; contains 175 characters
(#108) Line exceeds 132 characters; contains 175 characters
(#108) Line exceeds 132 characters; contains 175 characters
(#108) Inline comments must start with a capital letter, digit or 3-dots sequence
(#108) Inline comments must end in full-stops, exclamation marks, or question marks
(#108) This comment is 64% valid code; is this commented out code?
(#108) Line exceeds 132 characters; contains 175 characters
(#108) Line exceeds 132 characters; contains 175 characters
(#108) Line exceeds 132 characters; contains 175 characters
(#108) Line exceeds 132 characters; contains 175 characters
(#108) Line exceeds 132 characters; contains 175 characters
(#108) Line exceeds 132 characters; contains 175 characters
(#108) Line exceeds 132 characters; contains 175 characters
(#108) Line exceeds 132 characters; contains 175 characters
(#108) Line exceeds 132 characters; contains 175 characters
(#108) Line exceeds 132 characters; contains 175 characters
(#108) Line exceeds 132 characters; contains 175 characters
(#108) Line exceeds 132 characters; contains 175 characters
(#108) Line exceeds 132 characters; contains 175 characters
(#108) Line exceeds 132 characters; contains 175 characters
(#108) Line indented incorrectly; expected at least 52 spaces, found 36
(#108) No space found before comment text; expected "// echo html_writer::link(new moodle_url('/'), "<img src='" . (!empty($PAGE->theme->setting_file_url('logo', 'logo'))) . "' alt='logo' />");" but found "//echo html_writer::link(new moodle_url('/'), "<img src='" . (!empty($PAGE->theme->setting_file_url('logo', 'logo'))) . "' alt='logo' />");"
(#109) Spaces must be used to indent lines; tabs are not allowed
(#109) Tab found within whitespace
(#109) Line indented incorrectly; expected 12 spaces, found 9
(#110) Spaces must be used to indent lines; tabs are not allowed
(#111) Spaces must be used to indent lines; tabs are not allowed
(#112) Spaces must be used to indent lines; tabs are not allowed
(#113) Spaces must be used to indent lines; tabs are not allowed
(#113) Line indented incorrectly; expected 12 spaces, found 9
(#114) Line indented incorrectly; expected 48 spaces, found 32
(#114) Closing brace indented incorrectly; expected 56 spaces, found 32
(#117) Spaces must be used to indent lines; tabs are not allowed
(#118) Spaces must be used to indent lines; tabs are not allowed
(#120) Line indented incorrectly; expected 48 spaces, found 32
(#130) Line exceeds 132 characters; contains 133 characters
(#130) Line exceeds 132 characters; contains 133 characters
(#130) Line exceeds 132 characters; contains 133 characters
(#130) Line exceeds 132 characters; contains 133 characters
(#130) Line exceeds 132 characters; contains 133 characters
(#130) Line exceeds 132 characters; contains 133 characters
(#130) Line exceeds 132 characters; contains 133 characters
(#130) Line exceeds 132 characters; contains 133 characters
(#130) Line exceeds 132 characters; contains 133 characters
(#130) Line exceeds 132 characters; contains 133 characters
(#130) Line exceeds 132 characters; contains 133 characters
(#130) Line exceeds 132 characters; contains 133 characters
(#130) Line exceeds 132 characters; contains 133 characters
(#130) Line exceeds 132 characters; contains 133 characters
(#130) Line exceeds 132 characters; contains 133 characters
(#130) Line exceeds 132 characters; contains 133 characters
(#130) Line exceeds 132 characters; contains 133 characters
(#130) Line exceeds 132 characters; contains 133 characters
(#130) Line exceeds 132 characters; contains 133 characters
(#130) Line exceeds 132 characters; contains 133 characters
(#130) Line exceeds 132 characters; contains 133 characters
(#130) Line exceeds 132 characters; contains 133 characters
(#130) Line exceeds 132 characters; contains 133 characters
(#130) Line exceeds 132 characters; contains 133 characters
(#130) Line exceeds 132 characters; contains 133 characters
(#130) Line exceeds 132 characters; contains 133 characters
(#130) Line exceeds 132 characters; contains 133 characters
(#130) Line exceeds 132 characters; contains 133 characters
(#130) Line exceeds 132 characters; contains 133 characters
theme/sharp/layout/general.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#24) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Inline comments must start with a capital letter, digit or 3-dots sequence
(#111) Inline comments must end in full-stops, exclamation marks, or question marks
(#111) This comment is 64% valid code; is this commented out code?
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line exceeds 132 characters; contains 175 characters
(#111) Line indented incorrectly; expected at least 60 spaces, found 36
(#111) No space found before comment text; expected "// echo html_writer::link(new moodle_url('/'), "<img src='" . (!empty($PAGE->theme->setting_file_url('logo', 'logo'))) . "' alt='logo' />");" but found "//echo html_writer::link(new moodle_url('/'), "<img src='" . (!empty($PAGE->theme->setting_file_url('logo', 'logo'))) . "' alt='logo' />");"
(#112) Spaces must be used to indent lines; tabs are not allowed
(#112) Tab found within whitespace
(#112) Line indented incorrectly; expected 12 spaces, found 9
(#113) Spaces must be used to indent lines; tabs are not allowed
(#114) Spaces must be used to indent lines; tabs are not allowed
(#115) Spaces must be used to indent lines; tabs are not allowed
(#116) Spaces must be used to indent lines; tabs are not allowed
(#116) Line indented incorrectly; expected 12 spaces, found 9
(#117) Line indented incorrectly; expected 56 spaces, found 32
(#117) Closing brace indented incorrectly; expected 56 spaces, found 32
(#120) Spaces must be used to indent lines; tabs are not allowed
(#121) Spaces must be used to indent lines; tabs are not allowed
(#123) Line indented incorrectly; expected 56 spaces, found 32
theme/sharp/layout/login.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#24) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
theme/sharp/lib.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#24) Expected MOODLE_INTERNAL check or config.php inclusion
(#95) Spaces must be used to indent lines; tabs are not allowed
(#95) Tab found within whitespace
(#95) Line indented incorrectly; expected 4 spaces, found 1
(#95) Empty IF statement detected
(#96) Closing brace indented incorrectly; expected 1 spaces, found 4
(#162) Line indented incorrectly; expected 4 spaces, found 1
(#163) Line indented incorrectly; expected at least 8 spaces, found 2
(#164) Line indented incorrectly; expected at least 8 spaces, found 2
(#165) Line indented incorrectly; expected 8 spaces, found 2
(#166) Line indented incorrectly; expected at least 12 spaces, found 3
(#167) Line indented incorrectly; expected 8 spaces, found 2
(#168) Line indented incorrectly; expected at least 8 spaces, found 2
(#169) Line indented incorrectly; expected 4 spaces, found 1
(#170) Line indented incorrectly; expected at least 8 spaces, found 2
(#171) Line indented incorrectly; expected 4 spaces, found 1
theme/sharp/settings.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
theme/sharp/version.php
(#1) The first thing in a PHP file must be the <?php tag.
(#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

(13 errors, 114 warnings)

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

theme/sharp/style/bootstrap.css
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Unexpected token '1px\9' at line 5, col 35737.
(#5) Unexpected token '4px\9' at line 5, col 38398.
(#5) Expected (auto | none | pan-x | pan-y) but found 'manipulation'.
(#5) Expected (auto | none | pan-x | pan-y) but found 'manipulation'.
(#5) Expected end of value but found 'solid\9'.
(#5) Expected end of value but found 'solid\9'.
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Expected (left | right | center | justify | inherit) but found 'start'.
(#5) Expected (left | right | center | justify | inherit) but found 'start'.
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Expected (<length> | <percentage> | <content-sizing> | auto | inherit) but found 'device-width'.
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
(#5) Use of !important
theme/sharp/style/core.css
(#12) Use of !important
(#31) Use of !important
(#32) Use of !important
(#99) Rule is empty.
(#102) Rule is empty.
(#105) Rule is empty.
(#108) Rule is empty.
(#129) Duplicate property 'float' found.
(#239) Use of !important
(#406) Use of !important
theme/sharp/style/menus.css
(#1) Rule is empty.
(#10) Use of !important
(#27) Rule is empty.
(#29) Rule is empty.
(#32) Rule is empty.
(#34) Rule is empty.
(#36) Rule is empty.
(#39) Rule is empty.
(#43) Rule is empty.
(#47) Rule is empty.
(#51) Rule is empty.
(#70) Use of !important
(#71) Use of !important
(#72) Use of !important
(#103) Rule is empty.
(#108) Rule is empty.
(#114) Rule is empty.
(#119) Rule is empty.
(#125) Rule is empty.
(#130) Rule is empty.
(#135) Rule is empty.
(#158) Rule is empty.
(#163) Rule is empty.
(#173) Rule is empty.
(#178) Rule is empty.
(#184) Use of !important
theme/sharp/style/pagelayout.css
(#11) Rule is empty.
(#13) Rule is empty.
(#30) Rule is empty.
(#73) Rule is empty.
(#80) Rule is empty.
(#83) Rule is empty.
(#163) Duplicate property 'font-style' found.
theme/sharp/style/settings.css
(#1) Rule is empty.
(#2) Unexpected token '[' at line 2, col 11.
(#5) Expected RBRACKET at line 5, col 79.
(#7) Expected RBRACKET at line 7, col 52.
(#10) Expected RBRACE at line 10, col 40.
(#11) Unexpected token '[' at line 11, col 12.
(#14) Expected RBRACE at line 14, col 40.
(#15) Unexpected token '[' at line 15, col 12.
(#18) Expected IDENT at line 18, col 2.
(#18) Expected IDENT at line 18, col 2.

PHPDocs style problems

(26 errors, 1 warnings)

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

theme/sharp/config.php
(#19) Package theme is not valid
theme/sharp/lang/en/theme_sharp.php
(#19) Package theme is not valid
theme/sharp/layout/frontpage.php
(#19) Package theme is not valid
theme/sharp/layout/general.php
(#19) Package theme is not valid
theme/sharp/layout/login.php
(#19) Package theme is not valid
theme/sharp/lib.php
(#16) File-level phpdocs block is not found
(#34) Function sharp_set_gradientstart is not documented
(#44) Function sharp_set_gradientend is not documented
(#54) Function sharp_set_buttonbg is not documented
(#64) Function sharp_set_buttoncolor is not documented
(#74) Function sharp_set_buttonhovercolor is not documented
(#84) Function sharp_set_customcss is not documented
(#94) Function sharp_process_css is not documented
(#16) Phpdocs for function sharp_set_linkcolor has incomplete parameters list
(#34) Package is not specified for function sharp_set_gradientstart. It is also not specified in file-level phpdocs
(#44) Package is not specified for function sharp_set_gradientend. It is also not specified in file-level phpdocs
(#54) Package is not specified for function sharp_set_buttonbg. It is also not specified in file-level phpdocs
(#64) Package is not specified for function sharp_set_buttoncolor. It is also not specified in file-level phpdocs
(#74) Package is not specified for function sharp_set_buttonhovercolor. It is also not specified in file-level phpdocs
(#84) Package is not specified for function sharp_set_customcss. It is also not specified in file-level phpdocs
(#94) Package is not specified for function sharp_process_css. It is also not specified in file-level phpdocs
(#149) Package is not specified for function theme_sharp_pluginfile. It is also not specified in file-level phpdocs
(#19) Package theme is not valid
theme/sharp/settings.php
(#19) Package theme is not valid
theme/sharp/version.php
(#2) Empty line found after PHP open tag
(#1) File-level phpdocs block is not found
(#19) Package theme 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

(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]