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

(27 errors, 16 warnings)

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

blocks/edureportbook/assistant.php
(#46) Variable "role_legalguardian" must not contain underscores.
(#47) Variable "role_student" must not contain underscores.
(#48) Variable "role_legalguardian" must not contain underscores.
(#48) Variable "role_student" must not contain underscores.
(#102) Inline comments must end in full-stops, exclamation marks, or question marks
(#103) Inline comments must start with a capital letter, digit or 3-dots sequence
(#103) Inline comments must end in full-stops, exclamation marks, or question marks
(#133) Line exceeds 132 characters; contains 139 characters
(#145) Variable "role_legalguardian" must not contain underscores.
(#146) Variable "role_student" must not contain underscores.
(#239) Line exceeds 132 characters; contains 160 characters
blocks/edureportbook/block_edureportbook.php
(#36) Line indented incorrectly; expected at least 12 spaces, found 10
(#38) global $PAGE cannot be used in block classes. Use $this->page.
(#61) Commas (,) must be followed by white space.
blocks/edureportbook/classes/privacy/provider.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
blocks/edureportbook/externallib.php
(#38) global $PAGE cannot be used in block classes. Use $this->page.
(#39) Line exceeds 132 characters; contains 170 characters
(#66) Line exceeds 132 characters; contains 133 characters
blocks/edureportbook/lib.php
(#39) Inline control structures are not allowed
(#60) Expected 5 space(s) before asterisk; 4 found
(#66) Line exceeds maximum limit of 180 characters; contains 202 characters
(#91) Line exceeds maximum limit of 180 characters; contains 187 characters
(#96) Line exceeds maximum limit of 180 characters; contains 184 characters
(#121) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#121) AS keyword must be lowercase; expected "as" but found "AS"
(#124) Inline comments must end in full-stops, exclamation marks, or question marks
(#144) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#144) AS keyword must be lowercase; expected "as" but found "AS"
(#165) Line exceeds 132 characters; contains 137 characters
(#202) Inline control structures are not allowed
(#214) Inline comments must start with a capital letter, digit or 3-dots sequence
(#223) Expected "do {\n...} while (...);\n"; found "do {\n...} while(...);\n"
(#225) AS keyword must be lowercase; expected "as" but found "AS"
blocks/edureportbook/settings.php
(#21) Expected 1 space(s) before asterisk; 0 found
(#26) The use of the AS keyword to alias tables is bad for cross-db
(#26) Line exceeds 132 characters; contains 173 characters
(#28) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#28) AS keyword must be lowercase; expected "as" but found "AS"
(#32) Line exceeds 132 characters; contains 148 characters
(#33) Line exceeds 132 characters; contains 159 characters
(#35) Line exceeds 132 characters; contains 136 characters
(#36) Line exceeds 132 characters; contains 147 characters
blocks/edureportbook/version.php
(#20) Line exceeds 132 characters; contains 151 characters

Javascript coding style problems

(13 errors, 11 warnings)

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

blocks/edureportbook/amd/src/main.js
(#3) 'STR' is defined but never used. (no-unused-vars)
(#3) 'URL' is defined but never used. (no-unused-vars)
(#3) 'ModalFactory' is defined but never used. (no-unused-vars)
(#3) 'ModalEvents' is defined but never used. (no-unused-vars)
(#5) Identifier 'relation_load' is not in camel case. (camelcase)
(#6) Unexpected console statement. (no-console)
(#7) Unary word operator 'typeof' must be followed by whitespace. (space-unary-ops)
(#7) Statement inside of curly braces should be on next line. (brace-style)
(#7) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#14) There should be no space after '{'. (babel/object-curly-spacing)
(#14) There should be no space before '}'. (babel/object-curly-spacing)
(#16) Missing semicolon. (babel/semi)
(#17) Unexpected console statement. (no-console)
(#20) 'a' is not defined. (no-undef)
(#20) 'a' is not defined. (no-undef)
(#20) 'a' is not defined. (no-undef)
(#21) 'a' is not defined. (no-undef)
(#28) Identifier 'relation_set' is not in camel case. (camelcase)
(#29) Unexpected console statement. (no-console)
(#41) There should be no space after '{'. (babel/object-curly-spacing)
(#41) There should be no space before '}'. (babel/object-curly-spacing)
(#42) Identifier 'confirmed_to' is not in camel case. (camelcase)
(#43) Unexpected console statement. (no-console)
(#47) Identifier 'confirmed_to' is not in camel case. (camelcase)

CSS problems

(191 errors, 4 warnings)

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

blocks/edureportbook/less/ui.less
(#39) Unexpected !important (declaration-no-important)
(#65) Unexpected !important (declaration-no-important)
(#13) Expected single space after "," in a single-line function (function-comma-space-after)
(#13) Expected single space after "," in a single-line function (function-comma-space-after)
(#13) Expected single space after "," in a single-line function (function-comma-space-after)
(#23) Expected single space after "," in a single-line function (function-comma-space-after)
(#23) Expected single space after "," in a single-line function (function-comma-space-after)
(#23) Expected single space after "," in a single-line function (function-comma-space-after)
(#27) Expected single space after "," in a single-line function (function-comma-space-after)
(#27) Expected single space after "," in a single-line function (function-comma-space-after)
(#27) Expected single space after "," in a single-line function (function-comma-space-after)
(#28) Expected single space after "," in a single-line function (function-comma-space-after)
(#28) Expected single space after "," in a single-line function (function-comma-space-after)
(#28) Expected single space after "," in a single-line function (function-comma-space-after)
(#29) Expected single space after "," in a single-line function (function-comma-space-after)
(#29) Expected single space after "," in a single-line function (function-comma-space-after)
(#29) Expected single space after "," in a single-line function (function-comma-space-after)
(#30) Expected single space after "," in a single-line function (function-comma-space-after)
(#30) Expected single space after "," in a single-line function (function-comma-space-after)
(#30) Expected single space after "," in a single-line function (function-comma-space-after)
(#49) Expected single space after "," in a single-line function (function-comma-space-after)
(#49) Expected single space after "," in a single-line function (function-comma-space-after)
(#49) Expected single space after "," in a single-line function (function-comma-space-after)
(#52) Expected single space after "," in a single-line function (function-comma-space-after)
(#52) Expected single space after "," in a single-line function (function-comma-space-after)
(#52) Expected single space after "," in a single-line function (function-comma-space-after)
(#28) Unexpected unit (length-zero-no-unit)
(#29) Unexpected unit (length-zero-no-unit)
(#30) Unexpected unit (length-zero-no-unit)
(#8) Expected single space after ">" (selector-combinator-space-after)
(#8) Expected single space before ">" (selector-combinator-space-before)
(#45) Expected newline after "," (selector-list-comma-newline-after)
blocks/edureportbook/style/ui.css
(#1) Expected newline after "}" (block-closing-brace-newline-after)
(#1) Expected newline after "}" (block-closing-brace-newline-after)
(#1) Expected newline after "}" (block-closing-brace-newline-after)
(#1) Expected newline after "}" (block-closing-brace-newline-after)
(#1) Expected newline after "}" (block-closing-brace-newline-after)
(#1) Expected newline after "}" (block-closing-brace-newline-after)
(#1) Expected newline after "}" (block-closing-brace-newline-after)
(#1) Expected newline after "}" (block-closing-brace-newline-after)
(#1) Expected newline after "}" (block-closing-brace-newline-after)
(#1) Expected newline after "}" (block-closing-brace-newline-after)
(#1) Expected newline after "}" (block-closing-brace-newline-after)
(#1) Expected newline before "}" (block-closing-brace-newline-before)
(#1) Expected newline before "}" (block-closing-brace-newline-before)
(#1) Expected newline before "}" (block-closing-brace-newline-before)
(#1) Expected newline before "}" (block-closing-brace-newline-before)
(#1) Expected newline before "}" (block-closing-brace-newline-before)
(#1) Expected newline before "}" (block-closing-brace-newline-before)
(#1) Expected newline before "}" (block-closing-brace-newline-before)
(#1) Expected newline before "}" (block-closing-brace-newline-before)
(#1) Expected newline before "}" (block-closing-brace-newline-before)
(#1) Expected newline before "}" (block-closing-brace-newline-before)
(#1) Expected newline before "}" (block-closing-brace-newline-before)
(#1) Expected newline before "}" (block-closing-brace-newline-before)
(#1) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#1) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#1) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#1) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#1) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#1) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#1) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#1) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#1) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#1) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#1) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#1) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#1) Expected newline after "{" (block-opening-brace-newline-after)
(#1) Expected newline after "{" (block-opening-brace-newline-after)
(#1) Expected newline after "{" (block-opening-brace-newline-after)
(#1) Expected newline after "{" (block-opening-brace-newline-after)
(#1) Expected newline after "{" (block-opening-brace-newline-after)
(#1) Expected newline after "{" (block-opening-brace-newline-after)
(#1) Expected newline after "{" (block-opening-brace-newline-after)
(#1) Expected newline after "{" (block-opening-brace-newline-after)
(#1) Expected newline after "{" (block-opening-brace-newline-after)
(#1) Expected newline after "{" (block-opening-brace-newline-after)
(#1) Expected newline after "{" (block-opening-brace-newline-after)
(#1) Expected newline after "{" (block-opening-brace-newline-after)
(#1) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#1) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#1) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#1) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#1) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#1) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#1) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#1) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#1) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#1) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#1) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#1) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#1) Expected single space before "{" (block-opening-brace-space-before)
(#1) Expected single space before "{" (block-opening-brace-space-before)
(#1) Expected single space before "{" (block-opening-brace-space-before)
(#1) Expected single space before "{" (block-opening-brace-space-before)
(#1) Expected single space before "{" (block-opening-brace-space-before)
(#1) Expected single space before "{" (block-opening-brace-space-before)
(#1) Expected single space before "{" (block-opening-brace-space-before)
(#1) Expected single space before "{" (block-opening-brace-space-before)
(#1) Expected single space before "{" (block-opening-brace-space-before)
(#1) Expected single space before "{" (block-opening-brace-space-before)
(#1) Expected single space before "{" (block-opening-brace-space-before)
(#1) Expected single space before "{" (block-opening-brace-space-before)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected no more than 1 declaration (declaration-block-single-line-max-declarations)
(#1) Expected no more than 1 declaration (declaration-block-single-line-max-declarations)
(#1) Expected no more than 1 declaration (declaration-block-single-line-max-declarations)
(#1) Expected no more than 1 declaration (declaration-block-single-line-max-declarations)
(#1) Expected no more than 1 declaration (declaration-block-single-line-max-declarations)
(#1) Expected no more than 1 declaration (declaration-block-single-line-max-declarations)
(#1) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#1) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#1) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#1) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#1) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#1) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#1) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#1) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#1) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#1) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#1) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#1) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#1) Unexpected !important (declaration-no-important)
(#1) Unexpected !important (declaration-no-important)
(#1) Expected line length to be no more than 132 characters (max-line-length)
(#1) Expected single space after ">" (selector-combinator-space-after)
(#1) Expected single space after ">" (selector-combinator-space-after)
(#1) Expected single space after ">" (selector-combinator-space-after)
(#1) Expected single space after ">" (selector-combinator-space-after)
(#1) Expected single space before ">" (selector-combinator-space-before)
(#1) Expected single space before ">" (selector-combinator-space-before)
(#1) Expected single space before ">" (selector-combinator-space-before)
(#1) Expected single space before ">" (selector-combinator-space-before)
(#1) Expected newline after "," (selector-list-comma-newline-after)
(#1) Expected newline after "," (selector-list-comma-newline-after)
(#1) Expected newline after "," (selector-list-comma-newline-after)
(#1) Expected newline after "," (selector-list-comma-newline-after)
(#1) Expected newline after "," (selector-list-comma-newline-after)

PHPDocs style problems

(32 errors, 0 warnings)

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

blocks/edureportbook/assistant.php
(#17) No one-line description found in phpdocs for file
blocks/edureportbook/block_edureportbook.php
(#30) Class block_edureportbook is not documented
(#31) Function block_edureportbook::init is not documented
(#34) Function block_edureportbook::get_content is not documented
(#69) Function block_edureportbook::hide_header is not documented
(#72) Function block_edureportbook::has_config is not documented
(#75) Function block_edureportbook::instance_allow_multiple is not documented
(#17) No one-line description found in phpdocs for file
blocks/edureportbook/classes/privacy/provider.php
(#18) Package block_edusupport is not valid
(#29) Class provider is not documented
(#30) Function provider::get_reason is not documented
(#17) No one-line description found in phpdocs for file
blocks/edureportbook/db/access.php
(#17) No one-line description found in phpdocs for file
blocks/edureportbook/db/services.php
(#17) No one-line description found in phpdocs for file
blocks/edureportbook/externallib.php
(#28) Class block_edureportbook_external is not documented
(#29) Function block_edureportbook_external::relation_parameters is not documented
(#37) Function block_edureportbook_external::relation is not documented
(#54) Function block_edureportbook_external::relation_returns is not documented
(#58) Function block_edureportbook_external::relations_parameters is not documented
(#64) Function block_edureportbook_external::relations is not documented
(#80) Function block_edureportbook_external::relations_returns is not documented
(#17) No one-line description found in phpdocs for file
blocks/edureportbook/lang/de/block_edureportbook.php
(#17) No one-line description found in phpdocs for file
blocks/edureportbook/lang/en/block_edureportbook.php
(#17) No one-line description found in phpdocs for file
blocks/edureportbook/lib.php
(#31) Class lib is not documented
(#17) No one-line description found in phpdocs for file
(#77) Phpdocs for function lib::get_student_group has incomplete parameters list
(#136) Phpdocs for function lib::get_users has incomplete parameters list
(#159) Phpdocs for function lib::is_role has incomplete parameters list
(#197) Phpdocs for function lib::remove_block has incomplete parameters list
blocks/edureportbook/settings.php
(#17) No one-line description found in phpdocs for file
blocks/edureportbook/version.php
(#17) No one-line description found in phpdocs for file

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]


Missing changes in external functions or backup support for new detected tables or columns

(0 errors, 0 warnings)

This section shows potential problems detected when there are new database structures added in a patch and it is detected that nothing has been changed related with external functions (to be used by WS) or backup and restore. It must be checked that everything is correct and nothing is being missed in those areas. [More info]


grunt changes

(1 errors, 1 warnings)

This section shows files built by grunt and not commited [More info]

Problems running grunt
Task "eslint:amd" failed. Use --force to continue.

shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 6 warnings)

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

blocks/edureportbook/templates/assistant_finish.mustache
(#1) Example context missing (@template section not found.)
blocks/edureportbook/templates/assistant_privacy.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 3: The “border” attribute on the “table” element is obsolete. Use CSS instead. (ums"> <table border="0" class="generaltable"> )
blocks/edureportbook/templates/assistant_progress.mustache
(#1) Example context missing (@template section not found.)
blocks/edureportbook/templates/assistant_progress_step.mustache
(#1) Example context missing (@template section not found.)
blocks/edureportbook/templates/assistant_users.mustache
(#1) Example context missing (@template section not found.)

Gherkin .feature problems

(0 errors, 0 warnings)

This section shows problems detected in behat .feature files [More info]