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

(0 errors, 9 warnings)

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

admin/tool/editrolesbycap/classes/privacy/provider.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
admin/tool/editrolesbycap/renderer.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
admin/tool/editrolesbycap/tests/capability_form_field_test.php
(#30) PHPUnit class "capability_form_field_test" does not have any namespace. It is recommended to add it to the "tool_editrolesbycap" namespace, using more levels if needed, in order to match the code being tested
(#32) Test method test_all_capabilities_included() is missing any coverage information, own or at class level
admin/tool/editrolesbycap/tests/privacy_test.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#36) PHPUnit testcase name "tool_editrolesbycap_privacy_provider_testcase" does not match file name "privacy_test"
(#36) PHPUnit class "tool_editrolesbycap_privacy_provider_testcase" does not have any namespace. It is recommended to add it to the "tool_editrolesbycap" namespace, using more levels if needed, in order to match the code being tested
(#48) Test method test_export_user_preferences_single() is missing any coverage information, own or at class level
(#72) Test method test_export_user_preferences_not_defined() is missing any coverage information, own or at class level

Javascript coding style problems

(0 errors, 7 warnings)

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

admin/tool/editrolesbycap/yui/src/capabilityformfield/js/capabilityformfield.js
(#34) Unexpected empty method 'initializer'. (no-empty-function)
(#41) Identifier 'tool_editrolesbycap' is not in camel case. (camelcase)
(#43) Identifier 'init_capabilityformfield' is not in camel case. (camelcase)
(#87) A function with a name starting with an uppercase letter should only be used as a constructor. (new-cap)
(#98) Identifier 'set_filter_cookie' is not in camel case. (camelcase)
(#114) Identifier 'get_filter_cookie' is not in camel case. (camelcase)
(#148) Identifier 'set_visible' is not in camel case. (camelcase)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(4 errors, 0 warnings)

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

admin/tool/editrolesbycap/capabilityformfield.php
(#38) Function MoodleQuickForm_capability::__construct is not documented
(#110) Function MoodleQuickForm_capability::toHtml is not documented
(#115) Function MoodleQuickForm_capability::export_for_template is not documented
admin/tool/editrolesbycap/locallib.php
(#42) Function tool_editrolesbycap_capability_form::definition is not documented

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]