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

(7 errors, 14 warnings)

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

availability/condition/otherenrolled/classes/frontend.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#48) Inline comments must start with a capital letter, digit or 3-dots sequence
(#48) Inline comments must end in full-stops, exclamation marks, or question marks
(#48) No space found before comment text; expected "// get all course name" but found "//get all course name"
(#51) Whitespace found at end of line within string
(#55) Inline comments must start with a capital letter, digit or 3-dots sequence
(#55) Inline comments must end in full-stops, exclamation marks, or question marks
(#55) No space found before comment text; expected "// disable not created course and default course" but found "//disable not created course and default course"
(#56) Expected "if (...) {\n"; found "if(...){\n"
availability/condition/otherenrolled/classes/privacy/provider.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#41) File must end with a newline character
availability/condition/otherenrolled/tests/condition_test.php
(#39) PHPUnit testcase name "availability_otherenrolled_condition_testcase" does not match file name "condition_test"
(#39) PHPUnit class "availability_otherenrolled_condition_testcase" does not have any namespace. It is recommended to add it to the "availability_otherenrolled" namespace, using more levels if needed, in order to match the code being tested
(#44) Inline comments must start with a capital letter, digit or 3-dots sequence
(#52) Test method test_in_tree() is missing any coverage information, own or at class level
(#64) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#85) Test method test_constructor() is missing any coverage information, own or at class level
(#112) Test method test_save() is missing any coverage information, own or at class level
(#122) Test method test_usage() is missing any coverage information, own or at class level
(#165) Test method test_update_dependency_id() is missing any coverage information, own or at class level
(#174) File must end with a newline character

Javascript coding style problems

(1 errors, 6 warnings)

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

availability/condition/otherenrolled/yui/src/form/js/form.js
(#6) Identifier 'availability_otherenrolled' is not in camel case. (camelcase)
(#20) Unexpected space before function parentheses. (space-before-function-paren)
(#24) Unexpected space before function parentheses. (space-before-function-paren)
(#29) This line has a length of 136. Maximum allowed is 132. (max-len)
(#50) Unexpected space before function parentheses. (space-before-function-paren)
(#59) Unexpected space before function parentheses. (space-before-function-paren)
(#63) Unexpected space before function parentheses. (space-before-function-paren)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(8 errors, 8 warnings)

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

availability/condition/otherenrolled/classes/condition.php
(#33) Class condition is not documented
(#51) Function condition::save is not documented
(#67) Function condition::is_available is not documented
(#83) Function condition::get_description is not documented
(#96) Function condition::get_debug_string is not documented
(#100) Function condition::update_after_restore is not documented
(#121) Function condition::update_dependency_id is not documented
(#17) No one-line description found in phpdocs for file
availability/condition/otherenrolled/classes/frontend.php
(#30) Class frontend is not documented
(#36) Function frontend::get_javascript_strings is not documented
(#40) Function frontend::get_javascript_init_params is not documented
(#17) No one-line description found in phpdocs for file
availability/condition/otherenrolled/classes/privacy/provider.php
(#30) Class provider is not documented
(#17) No one-line description found in phpdocs for file
availability/condition/otherenrolled/lang/en/availability_otherenrolled.php
(#17) No one-line description found in phpdocs for file
availability/condition/otherenrolled/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]


grunt changes

(1 errors, 1 warnings)

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

Problems running grunt
Task "eslint:yui" 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]