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

(8 errors, 7 warnings)

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

blocks/accessibility/changesize.php
(#32) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
blocks/accessibility/defaults.php
(#17) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
blocks/accessibility/edit_form.php
(#17) Expected MOODLE_INTERNAL check or config.php inclusion
blocks/accessibility/lang/fr/block_accessibility.php
(#50) Inline comments must start with a capital letter, digit or 3-dots sequence
(#50) Whitespace found at end of line
(#55) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/accessibility/lang/hr/block_accessibility.php
(#51) Whitespace found at end of line
(#54) This comment is 49% valid code; is this commented out code?
blocks/accessibility/lang/pt-br/block_accessibility.php
(#19) Whitespace found at end of line
(#21) Whitespace found at end of line
(#23) Whitespace found at end of line
(#24) Whitespace found at end of line
(#52) 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
blocks/accessibility/userstyles.php
(#32) Expected login check (require_login, require_course_login, admin_externalpage_setup) following config inclusion. None found.

Javascript coding style problems

(50 errors, 171 warnings)

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

blocks/accessibility/module.js
(#1) Identifier 'block_accessibility' is not in camel case. (camelcase)
(#18) Infix operators must be spaced. (space-infix-ops)
(#20) Extra space after key 'MAIN_SELECTOR'. (key-spacing)
(#22) Expected space or tab after '//' in comment. (spaced-comment)
(#26) Identifier 'instance_id' is not in camel case. (camelcase)
(#36) Identifier 'autoload_atbar' is not in camel case. (camelcase)
(#36) Identifier 'instance_id' is not in camel case. (camelcase)
(#37) Line 37 exceeds the maximum line length of 132. (max-len)
(#43) Identifier 'instance_id' is not in camel case. (camelcase)
(#43) Identifier 'instance_id' is not in camel case. (camelcase)
(#44) Trailing spaces not allowed. (no-trailing-spaces)
(#45) Infix operators must be spaced. (space-infix-ops)
(#45) Infix operators must be spaced. (space-infix-ops)
(#46) Infix operators must be spaced. (space-infix-ops)
(#46) Identifier 'instance_id' is not in camel case. (camelcase)
(#46) Infix operators must be spaced. (space-infix-ops)
(#47) Expected space or tab after '//' in comment. (spaced-comment)
(#50) Expected space or tab after '//' in comment. (spaced-comment)
(#51) Line 51 exceeds the maximum line length of 132. (max-len)
(#51) Expected space or tab after '//' in comment. (spaced-comment)
(#52) Trailing spaces not allowed. (no-trailing-spaces)
(#70) Missing space before opening brace. (space-before-blocks)
(#75) Expected space(s) after "if". (keyword-spacing)
(#75) Missing space before opening brace. (space-before-blocks)
(#77) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#84) Trailing spaces not allowed. (no-trailing-spaces)
(#97) Identifier 'autoload_atbar' is not in camel case. (camelcase)
(#103) Implied eval. Consider passing a function instead of a string. (no-implied-eval)
(#108) More than 2 blank lines not allowed. (no-multiple-empty-lines)
(#110) Line 110 exceeds the maximum line length of 132. (max-len)
(#118) Identifier 'load_atbar' is not in camel case. (camelcase)
(#131) Identifier 'show_message' is not in camel case. (camelcase)
(#132) Expected space or tab after '//' in comment. (spaced-comment)
(#136) Expected { after 'if' condition. (curly)
(#136) Expected space(s) after "if". (keyword-spacing)
(#136) Implied eval. Consider passing a function instead of a string. (no-implied-eval)
(#148) Infix operators must be spaced. (space-infix-ops)
(#152) 'o' is defined but never used (no-unused-vars)
(#154) Expected space or tab after '//' in comment. (spaced-comment)
(#157) Unexpected alert. (no-alert)
(#157) Infix operators must be spaced. (space-infix-ops)
(#157) Infix operators must be spaced. (space-infix-ops)
(#157) Infix operators must be spaced. (space-infix-ops)
(#157) Infix operators must be spaced. (space-infix-ops)
(#174) Identifier 'toggle_textsizer' is not in camel case. (camelcase)
(#175) Infix operators must be spaced. (space-infix-ops)
(#178) Expected space or tab after '//' in comment. (spaced-comment)
(#182) Expected space(s) after "if". (keyword-spacing)
(#183) Expected space or tab after '//' in comment. (spaced-comment)
(#211) Expected space or tab after '//' in comment. (spaced-comment)
(#212) Infix operators must be spaced. (space-infix-ops)
(#213) Line 213 exceeds the maximum line length of 132. (max-len)
(#213) Infix operators must be spaced. (space-infix-ops)
(#217) Trailing spaces not allowed. (no-trailing-spaces)
(#220) Unexpected alert. (no-alert)
(#220) Infix operators must be spaced. (space-infix-ops)
(#220) Infix operators must be spaced. (space-infix-ops)
(#220) Infix operators must be spaced. (space-infix-ops)
(#220) Infix operators must be spaced. (space-infix-ops)
(#224) Trailing spaces not allowed. (no-trailing-spaces)
(#225) Identifier 'new_fontsize' is not in camel case. (camelcase)
(#225) Multiple spaces found before 'M'. (no-multi-spaces)
(#226) Infix operators must be spaced. (space-infix-ops)
(#226) Identifier 'new_fontsize' is not in camel case. (camelcase)
(#229) 'min_fontsize' is defined but never used (no-unused-vars)
(#229) Identifier 'min_fontsize' is not in camel case. (camelcase)
(#230) Identifier 'max_fontsize' is not in camel case. (camelcase)
(#231) Expected space(s) after "if". (keyword-spacing)
(#231) Identifier 'new_fontsize' is not in camel case. (camelcase)
(#236) Identifier 'new_fontsize' is not in camel case. (camelcase)
(#236) Identifier 'max_fontsize' is not in camel case. (camelcase)
(#241) Trailing spaces not allowed. (no-trailing-spaces)
(#244) Unexpected alert. (no-alert)
(#244) Infix operators must be spaced. (space-infix-ops)
(#244) Infix operators must be spaced. (space-infix-ops)
(#244) Infix operators must be spaced. (space-infix-ops)
(#244) Infix operators must be spaced. (space-infix-ops)
(#248) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#252) Expected space or tab after '//' in comment. (spaced-comment)
(#253) Infix operators must be spaced. (space-infix-ops)
(#254) Infix operators must be spaced. (space-infix-ops)
(#261) Unexpected alert. (no-alert)
(#261) Infix operators must be spaced. (space-infix-ops)
(#261) Infix operators must be spaced. (space-infix-ops)
(#261) Infix operators must be spaced. (space-infix-ops)
(#261) Infix operators must be spaced. (space-infix-ops)
(#266) Identifier 'new_fontsize' is not in camel case. (camelcase)
(#266) Multiple spaces found before 'M'. (no-multi-spaces)
(#267) Infix operators must be spaced. (space-infix-ops)
(#267) Identifier 'new_fontsize' is not in camel case. (camelcase)
(#270) Identifier 'min_fontsize' is not in camel case. (camelcase)
(#271) 'max_fontsize' is defined but never used (no-unused-vars)
(#271) Identifier 'max_fontsize' is not in camel case. (camelcase)
(#272) Expected space(s) after "if". (keyword-spacing)
(#272) Identifier 'new_fontsize' is not in camel case. (camelcase)
(#277) Identifier 'new_fontsize' is not in camel case. (camelcase)
(#277) Identifier 'min_fontsize' is not in camel case. (camelcase)
(#279) Trailing spaces not allowed. (no-trailing-spaces)
(#282) Trailing spaces not allowed. (no-trailing-spaces)
(#285) Unexpected alert. (no-alert)
(#285) Infix operators must be spaced. (space-infix-ops)
(#285) Infix operators must be spaced. (space-infix-ops)
(#285) Infix operators must be spaced. (space-infix-ops)
(#285) Infix operators must be spaced. (space-infix-ops)
(#289) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#293) Expected space or tab after '//' in comment. (spaced-comment)
(#294) Infix operators must be spaced. (space-infix-ops)
(#295) Infix operators must be spaced. (space-infix-ops)
(#302) Unexpected alert. (no-alert)
(#302) Infix operators must be spaced. (space-infix-ops)
(#302) Infix operators must be spaced. (space-infix-ops)
(#302) Infix operators must be spaced. (space-infix-ops)
(#302) Infix operators must be spaced. (space-infix-ops)
(#307) Identifier 'new_fontsize' is not in camel case. (camelcase)
(#307) Multiple spaces found before 'M'. (no-multi-spaces)
(#308) Infix operators must be spaced. (space-infix-ops)
(#308) Identifier 'new_fontsize' is not in camel case. (camelcase)
(#309) Trailing spaces not allowed. (no-trailing-spaces)
(#311) Identifier 'min_fontsize' is not in camel case. (camelcase)
(#312) Identifier 'max_fontsize' is not in camel case. (camelcase)
(#314) Expected space(s) after "if". (keyword-spacing)
(#314) Identifier 'new_fontsize' is not in camel case. (camelcase)
(#314) Identifier 'min_fontsize' is not in camel case. (camelcase)
(#316) Identifier 'new_fontsize' is not in camel case. (camelcase)
(#316) Identifier 'max_fontsize' is not in camel case. (camelcase)
(#316) Missing space before opening brace. (space-before-blocks)
(#320) Expected space or tab after '//' in comment. (spaced-comment)
(#321) Trailing spaces not allowed. (no-trailing-spaces)
(#324) Unexpected alert. (no-alert)
(#324) Infix operators must be spaced. (space-infix-ops)
(#324) Infix operators must be spaced. (space-infix-ops)
(#324) Infix operators must be spaced. (space-infix-ops)
(#324) Infix operators must be spaced. (space-infix-ops)
(#328) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#332) Expected space or tab after '//' in comment. (spaced-comment)
(#355) 'scheme' is not defined. (no-undef)
(#356) Infix operators must be spaced. (space-infix-ops)
(#357) Infix operators must be spaced. (space-infix-ops)
(#357) 'scheme' is not defined. (no-undef)
(#360) Unexpected space before function parentheses. (space-before-function-paren)
(#363) Unexpected alert. (no-alert)
(#363) Infix operators must be spaced. (space-infix-ops)
(#363) Infix operators must be spaced. (space-infix-ops)
(#363) Infix operators must be spaced. (space-infix-ops)
(#363) Infix operators must be spaced. (space-infix-ops)
(#365) Trailing spaces not allowed. (no-trailing-spaces)
(#366) Trailing spaces not allowed. (no-trailing-spaces)
(#367) Expected space(s) after "if". (keyword-spacing)
(#367) 'scheme' is not defined. (no-undef)
(#367) Missing space before opening brace. (space-before-blocks)
(#371) Expected space(s) after "else". (keyword-spacing)
(#371) Closing curly brace does not appear on the same line as the subsequent block. (brace-style)
(#374) Trailing spaces not allowed. (no-trailing-spaces)
(#377) Unexpected alert. (no-alert)
(#377) 'get_string' is not defined. (no-undef)
(#377) Infix operators must be spaced. (space-infix-ops)
(#377) Infix operators must be spaced. (space-infix-ops)
(#377) Infix operators must be spaced. (space-infix-ops)
(#377) Infix operators must be spaced. (space-infix-ops)
(#385) Identifier 'atbar_autoload' is not in camel case. (camelcase)
(#387) Infix operators must be spaced. (space-infix-ops)
(#391) 'o' is defined but never used (no-unused-vars)
(#393) Expected space or tab after '//' in comment. (spaced-comment)
(#397) Unexpected alert. (no-alert)
(#397) Infix operators must be spaced. (space-infix-ops)
(#397) Infix operators must be spaced. (space-infix-ops)
(#397) Infix operators must be spaced. (space-infix-ops)
(#397) Infix operators must be spaced. (space-infix-ops)
(#402) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#405) Infix operators must be spaced. (space-infix-ops)
(#409) 'o' is defined but never used (no-unused-vars)
(#411) Expected space or tab after '//' in comment. (spaced-comment)
(#415) Unexpected alert. (no-alert)
(#415) Infix operators must be spaced. (space-infix-ops)
(#415) Infix operators must be spaced. (space-infix-ops)
(#415) Infix operators must be spaced. (space-infix-ops)
(#415) Infix operators must be spaced. (space-infix-ops)
(#420) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#425) Identifier 'watch_atbar_for_close' is not in camel case. (camelcase)
(#430) 'AtKit' is not defined. (no-undef)
(#441) Unexpected console statement. (no-console)
(#450) Identifier 'reload_stylesheet' is not in camel case. (camelcase)
(#450) Missing space before opening brace. (space-before-blocks)
(#451) Identifier 'cache_prevention_salt' is not in camel case. (camelcase)
(#454) Infix operators must be spaced. (space-infix-ops)
(#455) Infix operators must be spaced. (space-infix-ops)
(#456) Infix operators must be spaced. (space-infix-ops)
(#457) Infix operators must be spaced. (space-infix-ops)
(#457) Identifier 'cache_prevention_salt' is not in camel case. (camelcase)
(#457) Missing semicolon. (semi)
(#458) Trailing spaces not allowed. (no-trailing-spaces)
(#459) Opening curly brace does not appear on the same line as controlling statement. (brace-style)
(#459) Opening curly brace does not appear on the same line as controlling statement. (brace-style)
(#461) Trailing spaces not allowed. (no-trailing-spaces)
(#471) Trailing spaces not allowed. (no-trailing-spaces)
(#472) Trailing spaces not allowed. (no-trailing-spaces)
(#474) Trailing spaces not allowed. (no-trailing-spaces)
(#478) Closing curly brace does not appear on the same line as the subsequent block. (brace-style)
(#481) Line 481 exceeds the maximum line length of 132. (max-len)
(#484) Trailing spaces not allowed. (no-trailing-spaces)
(#487) Missing space before opening brace. (space-before-blocks)
(#497) Missing JSDoc @returns for function. (valid-jsdoc)
(#497) Expected JSDoc for 'root_element' but found 'root'. (valid-jsdoc)
(#506) Identifier 'get_current_fontsize' is not in camel case. (camelcase)
(#506) Identifier 'root_element' is not in camel case. (camelcase)
(#506) Missing space before opening brace. (space-before-blocks)
(#508) Expected space or tab after '//' in comment. (spaced-comment)
(#511) Infix operators must be spaced. (space-infix-ops)
(#513) Infix operators must be spaced. (space-infix-ops)
(#518) Identifier 'show_loading' is not in camel case. (camelcase)
(#518) Missing space before opening brace. (space-before-blocks)
(#521) Trailing spaces not allowed. (no-trailing-spaces)
(#523) Identifier 'hide_loading' is not in camel case. (camelcase)
(#523) Missing space before opening brace. (space-before-blocks)
(#524) Expected { after 'if' condition. (curly)
(#524) Expected space(s) after "if". (keyword-spacing)
(#525) Expected { after 'else'. (curly)
(#527) Expected space(s) after "if". (keyword-spacing)
(#527) Missing space before opening brace. (space-before-blocks)
(#529) Trailing spaces not allowed. (no-trailing-spaces)
(#532) Missing semicolon. (semi)

CSS problems

(3 errors, 24 warnings)

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

blocks/accessibility/styles.css
(#24) Use of !important
(#25) Use of !important
(#26) Use of !important
(#27) Use of !important
(#28) Use of !important
(#29) Use of !important
(#30) Use of !important
(#30) Duplicate property 'background' found.
(#42) Use of !important
(#43) Use of !important
(#44) Use of !important
(#45) Use of !important
(#46) Use of !important
(#47) Use of !important
(#48) Use of !important
(#48) Duplicate property 'background' found.
(#52) Use of !important
(#54) Use of !important
(#55) Use of !important
(#59) Use of !important
(#61) Use of !important
(#62) Use of !important
(#79) Rule is empty.
(#90) Unexpected token '-' at line 90, col 1.
(#124) Use of !important
(#129) Use of !important
(#130) Use of !important

PHPDocs style problems

(30 errors, 0 warnings)

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

blocks/accessibility/block_accessibility.php
(#34) Constant block_accessibility::JS_URL is not documented
(#35) Constant block_accessibility::CSS_URL is not documented
(#36) Constant block_accessibility::FONTSIZE_URL is not documented
(#37) Constant block_accessibility::COLOUR_URL is not documented
(#38) Constant block_accessibility::DB_URL is not documented
(#29) Class block_accessibility does not have @copyright tag
(#29) Class block_accessibility does not have @license tag
(#43) Invalid inline phpdocs tag @see found
blocks/accessibility/changecolour.php
(#27) Package block_accessibility (3) is not valid
blocks/accessibility/changesize.php
(#26) Package block_accessibility (3) is not valid
blocks/accessibility/database.php
(#27) Package block_accessibility (3) is not valid
blocks/accessibility/db/access.php
(#20) Package block is not valid
blocks/accessibility/db/upgrade.php
(#27) Function xmldb_block_accessibility_upgrade is not documented
(#20) Package block_accessibility (4) is not valid
blocks/accessibility/defaults.php
(#17) File-level phpdocs block is not found
blocks/accessibility/edit_form.php
(#17) File-level phpdocs block is not found
(#17) Class block_accessibility_edit_form is not documented
(#26) Function block_accessibility_edit_form::specific_definition is not documented
(#19) Constant block_accessibility_edit_form::CNF_AUTOSAVE is not documented
(#20) Constant block_accessibility_edit_form::CNF_ATBAR is not documented
(#21) Constant block_accessibility_edit_form::CNF_FG is not documented
(#22) Constant block_accessibility_edit_form::CNF_BG is not documented
(#24) Constant block_accessibility_edit_form::RE_COLOUR is not documented
(#17) Package is not specified for class block_accessibility_edit_form. It is also not specified in file-level phpdocs
blocks/accessibility/lang/de/block_accessibility.php
(#17) File-level phpdocs block does not have @copyright tag
blocks/accessibility/lang/es/block_accessibility.php
(#17) File-level phpdocs block does not have @copyright tag
blocks/accessibility/lib.php
(#55) Function accessibility_getsize is not documented
(#25) Package block_accessibility (3) is not valid
blocks/accessibility/userstyles.php
(#26) Package block_accessibility (4) is not valid
blocks/accessibility/version.php
(#25) Package block_accessibility (4) is not valid

Update savepoints problems

(0 errors, 1 warnings)

This section shows problems detected with the handling of upgrade savepoints [More info]

blocks/accessibility/db/upgrade.php
Detected less 'if' blocks (2) than 'savepoint' calls (4). Repeated savepoints?

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]