Prechecker results: error


Overview

(0 errors, 0 warnings)

This section shows the general problems detected when processing the code [More info]


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

(90 errors, 2 warnings)

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

filter/studietube/filter.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#24) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#27) Missing docblock for class filter_studietube
(#32) Whitespace found at end of line
(#36) Short array syntax must be used to define arrays
(#37) No space found after comma in argument list
(#37) Commas (,) must be followed by white space.
(#37) Expected 1 space between the comma and "$options". Found: no spaces
(#38) No space found after comma in argument list
(#38) Commas (,) must be followed by white space.
(#38) Expected 1 space between the comma and "$options". Found: no spaces
(#41) Whitespace found at end of line
(#42) Missing docblock for function new_filter
(#42) Short array syntax must be used to define arrays
(#43) Opening brace should be on the same line as the declaration
(#44) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#44) Whitespace found at end of line
(#45) Each line in a multi-line control structure must be indented at least once; expected at least 12 spaces, but found 11
(#45) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#45) Line exceeds maximum limit of 180 characters; contains 235 characters
(#49) Line exceeds maximum limit of 180 characters; contains 222 characters
(#50) Opening brace should be on the same line as the declaration
(#51) Expected at least 1 space before "."; 0 found
(#51) Expected at least 1 space after "."; 0 found
(#51) Expected at least 1 space before "."; 0 found
(#51) Expected at least 1 space after "."; 0 found
(#51) Expected at least 1 space before "."; 0 found
(#51) Expected at least 1 space after "."; 0 found
(#51) Expected at least 1 space before "."; 0 found
(#51) Expected at least 1 space after "."; 0 found
(#52) Expected "if (...) {\n"; found "if(...)\n {\n"
(#52) Expected 1 space after IF keyword; 0 found
(#52) Expected 1 space after closing parenthesis; found newline
(#56) Expected at least 1 space before "."; 0 found
(#56) Expected at least 1 space after "."; 0 found
(#56) Expected at least 1 space before "?"; 0 found
(#56) Expected at least 1 space after "?"; 0 found
(#56) Expected 1 space before "?"; 0 found
(#56) Expected 1 space after "?"; 0 found
(#56) Expected at least 1 space before ":"; 0 found
(#56) Expected at least 1 space after ":"; 0 found
(#56) Expected 1 space before ":"; 0 found
(#56) Expected 1 space after ":"; 0 found
(#56) Expected at least 1 space before "."; 0 found
(#56) Expected at least 1 space after "."; 0 found
(#56) Expected at least 1 space before "."; 0 found
(#56) Expected at least 1 space after "."; 0 found
(#56) Expected at least 1 space before "."; 0 found
(#56) Expected at least 1 space after "."; 0 found
(#56) Expected at least 1 space before "."; 0 found
(#56) Expected at least 1 space after "."; 0 found
(#56) Expected at least 1 space before "."; 0 found
(#56) Expected at least 1 space after "."; 0 found
(#56) Expected at least 1 space before "."; 0 found
(#56) Expected at least 1 space after "."; 0 found
(#56) Expected at least 1 space before "."; 0 found
(#56) Expected at least 1 space after "."; 0 found
(#56) Line exceeds maximum limit of 180 characters; contains 306 characters
(#58) Whitespace found at end of line
(#61) Whitespace found at end of line
(#62) Missing docblock for function old_filter
(#62) Short array syntax must be used to define arrays
(#63) Opening brace should be on the same line as the declaration
(#64) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#64) Whitespace found at end of line
(#65) Each line in a multi-line control structure must be indented at least once; expected at least 12 spaces, but found 11
(#65) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#65) Line exceeds 132 characters; contains 138 characters
(#69) Expected "foreach (...) {\n"; found "foreach(...)\n {\n"
(#69) Expected 1 space after FOREACH keyword; 0 found
(#69) Expected 1 space after closing parenthesis; found newline
(#71) The constant "FILTER_SANITIZE_STRING" is deprecated since PHP 8.1
(#73) Expected "if (...) {\n"; found "if(...)\n {\n"
(#73) Expected 1 space after IF keyword; 0 found
(#73) Expected 1 space after closing parenthesis; found newline
(#75) Line indented incorrectly; expected at least 16 spaces, found 15
(#75) Whitespace found at end of line
(#78) Expected at least 1 space before "."; 0 found
(#78) Expected at least 1 space after "."; 0 found
(#78) Expected at least 1 space before "."; 0 found
(#78) Expected at least 1 space after "."; 0 found
(#78) Expected at least 1 space before "."; 0 found
(#78) Expected at least 1 space after "."; 0 found
(#78) Expected at least 1 space before "."; 0 found
(#78) Expected at least 1 space after "."; 0 found
(#78) Line exceeds maximum limit of 180 characters; contains 422 characters
(#80) Whitespace found at end of line
filter/studietube/lang/en/filter_studietube.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#25) Unexpected string end, it should be a line feed after a semicolon
(#25) Expected 1 newline at end of file; 0 found
filter/studietube/version.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#30) Expected 1 newline at end of file; 0 found

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

(2 errors, 0 warnings)

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

filter/studietube/styles.css
(#14) Expected single space before "{" (block-opening-brace-space-before)
(#1) Unexpected whitespace at end of line (no-eol-whitespace)

PHPDocs style problems

(1 errors, 0 warnings)

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

filter/studietube/filter.php
(#32) Phpdocs for function filter_studietube::filter has incomplete parameters list

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]

Problems running grunt
Task "stylelint:css" 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, 0 warnings)

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


Gherkin .feature problems

(0 errors, 0 warnings)

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