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

(5 errors, 0 warnings)

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

admin/tool/editrolesbycap/capabilityformfield.php
(#26) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#36) Public method name "MoodleQuickForm_capability::MoodleQuickForm_capability" must be in lower-case letters only
(#36) PHP4 style constructors are not allowed; use "__construct()" instead
(#85) Public method name "MoodleQuickForm_capability::toHtml" must be in lower-case letters only
admin/tool/editrolesbycap/locallib.php
(#26) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.

Javascript coding style problems

(2 errors, 22 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) Extra space after key 'initializer'. (key-spacing)
(#34) Unexpected empty function. (no-empty-function)
(#37) Extra space after key 'NAME'. (key-spacing)
(#38) Extra space after key 'ATTRS'. (key-spacing)
(#41) Identifier 'tool_editrolesbycap' is not in camel case. (camelcase)
(#43) Identifier 'init_capabilityformfield' is not in camel case. (camelcase)
(#54) Extra space after key 'width'. (key-spacing)
(#55) Extra space after key 'marginLeft'. (key-spacing)
(#56) Extra space after key 'marginRight'. (key-spacing)
(#86) Expected no return value. (consistent-return)
(#89) Missing JSDoc for parameter 'value'. (valid-jsdoc)
(#95) Identifier 'set_filter_cookie' is not in camel case. (camelcase)
(#97) Extra space after key 'flttime'. (key-spacing)
(#98) Extra space after key 'fltvalue'. (key-spacing)
(#103) Missing JSDoc @returns for function. (valid-jsdoc)
(#109) Identifier 'get_filter_cookie' is not in camel case. (camelcase)
(#134) Requires a space after '{'. (block-spacing)
(#134) Missing space before opening brace. (space-before-blocks)
(#134) Statement inside of curly braces should be on next line. (brace-style)
(#134) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#134) Requires a space before '}'. (block-spacing)
(#141) Identifier 'set_visible' is not in camel case. (camelcase)
(#178) 'lastgroup' is not defined. (no-undef)
(#183) 'lastgroup' is not defined. (no-undef)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(10 errors, 0 warnings)

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

admin/tool/editrolesbycap/capabilityformfield.php
(#36) Function MoodleQuickForm_capability::MoodleQuickForm_capability is not documented
(#43) Function MoodleQuickForm_capability::get_capabitity_optgroups is not documented
(#85) Function MoodleQuickForm_capability::toHtml is not documented
(#20) Package core_form is not valid
admin/tool/editrolesbycap/locallib.php
(#41) Function tool_editrolesbycap_capability_form::definition is not documented
(#56) Function tool_editrolesbycap_get_default_permission is not documented
(#77) There is no description in phpdocs for function tool_editrolesbycap_load_role_definitions
admin/tool/editrolesbycap/renderer.php
(#282) There is no description in phpdocs for function permission_names
(#39) Phpdocs for function tool_editrolesbycap_renderer::index_page_no_capability has incomplete parameters list
(#300) Phpdocs for function tool_editrolesbycap_renderer::permission_name 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, 0 warnings)

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

Problems running grunt shifter

shifter problems

(1 errors, 0 warnings)

This section shows problems detected by shifter [More info]

admin/tool/editrolesbycap/yui/src/capabilityformfield/js/capabilityformfield.js
contains 2 lint errors

Mustache template problems

(0 errors, 0 warnings)

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