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

(24 errors, 19 warnings)

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

availability/condition/othercompleted/classes/condition.php
(#83) Inline comments must start with a capital letter, digit or 3-dots sequence
(#83) Inline comments must end in full-stops, exclamation marks, or question marks
(#83) No space found before comment text; expected "// get course completion details to allow preview" but found "//get course completion details to allow preview"
(#84) Whitespace found at end of line
(#88) Expected 1 space before "=>"; 0 found
(#88) Expected 1 space before "=>"; 0 found
(#89) Whitespace found at end of line
(#90) Inline comments must start with a capital letter, digit or 3-dots sequence
(#90) Inline comments must end in full-stops, exclamation marks, or question marks
(#90) No space found before comment text; expected "// if data is available means user has been completed course" but found "//if data is available means user has been completed course"
(#91) Expected "if (...) {\n"; found "if(...){\n"
(#91) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#93) Whitespace found at end of line
(#95) Expected "} else {\n"; found "}\n else{\n"
(#96) Whitespace found at end of line
(#121) Inline comments must start with a capital letter, digit or 3-dots sequence
(#121) Inline comments must end in full-stops, exclamation marks, or question marks
(#121) No space found before comment text; expected "// get details restrict access" but found "//get details restrict access"
(#121) Whitespace found at end of line
(#127) Expected "if (...) {\n"; found "if(...){\n"
(#150) Whitespace found at end of line
(#206) Inline comments must end in full-stops, exclamation marks, or question marks
(#206) This comment is 58% valid code; is this commented out code?
availability/condition/othercompleted/classes/frontend.php
(#54) Inline comments must start with a capital letter, digit or 3-dots sequence
(#54) Inline comments must end in full-stops, exclamation marks, or question marks
(#54) No space found before comment text; expected "// get all course name" but found "//get all course name"
(#57) Whitespace found at end of line within string
(#60) Inline comments must start with a capital letter, digit or 3-dots sequence
(#60) Inline comments must end in full-stops, exclamation marks, or question marks
(#60) This comment is 50% valid code; is this commented out code?
(#60) No space found before comment text; expected "// $other = get_courses();" but found "//$other = get_courses();"
(#62) Inline comments must start with a capital letter, digit or 3-dots sequence
(#62) Inline comments must end in full-stops, exclamation marks, or question marks
(#62) No space found before comment text; expected "// disable not created course and default course" but found "//disable not created course and default course"
(#63) Expected "if (...) {\n"; found "if(...){\n"
(#67) Inline comments must start with a capital letter, digit or 3-dots sequence
(#67) Inline comments must end in full-stops, exclamation marks, or question marks
(#67) This comment is 50% valid code; is this commented out code?
availability/condition/othercompleted/tests/condition_test.php
(#44) Inline comments must start with a capital letter, digit or 3-dots sequence
(#69) Whitespace found at end of line
(#69) Functions must not contain multiple empty lines in a row; found 2 empty lines
availability/condition/othercompleted/version.php
(#31) Line exceeds maximum limit of 180 characters; contains 195 characters
(#31) Whitespace found at end of line

Javascript coding style problems

(2 errors, 1 warnings)

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

availability/condition/othercompleted/yui/src/form/js/form.js
(#6) Identifier 'availability_othercompleted' is not in camel case. (camelcase)
(#29) Line 29 exceeds the maximum line length of 132. (max-len)
(#36) Trailing spaces not allowed. (no-trailing-spaces)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(11 errors, 0 warnings)

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

availability/condition/othercompleted/classes/condition.php
(#30) Class condition is not documented
(#63) Function condition::save is not documented
(#82) Function condition::is_available is not documented
(#122) Function condition::get_description is not documented
(#154) Function condition::get_debug_string is not documented
(#168) Function condition::update_after_restore is not documented
(#240) Function condition::update_dependency_id is not documented
availability/condition/othercompleted/classes/frontend.php
(#29) Class frontend is not documented
(#40) Function frontend::get_javascript_strings is not documented
(#44) Function frontend::get_javascript_init_params is not documented
(#77) Function frontend::allow_add 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]


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]