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

(22 errors, 7 warnings)

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

filter/censor/classes/privacy/provider.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
filter/censor/filter.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#32) 62 slashes comments are not allowed; use "// Comment." instead
(#33) Expected 1 space before comment text but found 2; use block comment if you need indentation
(#35) Expected 1 space before comment text but found 2; use block comment if you need indentation
(#36) Expected 1 space before comment text but found 2; use block comment if you need indentation
(#38) Expected 1 space before comment text but found 2; use block comment if you need indentation
(#40) Inline comments must end in full-stops, exclamation marks, or question marks
(#40) 62 slashes comments are not allowed; use "// Comment." instead
(#43) Method name "_canseecensor" should not be prefixed with an underscore to indicate visibility
(#44) Inline comments must end in full-stops, exclamation marks, or question marks
(#44) No space found before comment text; expected "// TODO: add proper access control" but found "//TODO: add proper access control"
(#47) Visibility must be declared on method "hash"
(#47) Expected 1 space before opening brace; found 0
(#49) Inline comments must end in full-stops, exclamation marks, or question marks
(#49) No space found before comment text; expected "// TODO: add proper access control" but found "//TODO: add proper access control"
(#55) Visibility must be declared on method "filter"
(#55) Expected 1 space before opening brace; found 0
(#60) Commas (,) must be followed by white space.
(#66) Commas (,) must be followed by white space.
(#68) Expected "} else {\n"; found "}\n else {\n"
(#73) Expected "if (...) {\n"; found "if(...){\n"
(#78) Commas (,) must be followed by white space.
(#78) Commas (,) must be followed by white space.
filter/censor/lang/en/filter_censor.php
(#2) The opening <?php tag must be followed by exactly one newline.
filter/censor/settings.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#7) Commas (,) must be followed by white space.
filter/censor/version.php
(#30) Inline comments must end in full-stops, exclamation marks, or question marks

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

(0 errors, 0 warnings)

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


PHPDocs style problems

(9 errors, 3 warnings)

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

filter/censor/filter.php
(#24) Package filter is not valid
(#2) Empty line found after PHP open tag
(#42) Class filter_censor is not documented
(#43) Function filter_censor::_canseecensor is not documented
(#47) Function filter_censor::hash is not documented
(#55) Function filter_censor::filter is not documented
(#32) Found comment starting with three or more slashes
(#40) Found comment starting with three or more slashes
filter/censor/lang/en/filter_censor.php
(#2) Empty line found after PHP open tag
filter/censor/settings.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
filter/censor/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]


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

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


Gherkin .feature problems

(0 errors, 0 warnings)

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