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

(161 errors, 81 warnings)

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

enrol/attributes/classes/privacy/provider.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
enrol/attributes/classes/task/processenrolments_task.php
(#42) "require_once" must be immediately followed by an open parenthesis
enrol/attributes/db/events.php
(#24) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
enrol/attributes/db/install.php
(#24) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
enrol/attributes/db/upgrade.php
(#24) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#33) Inline comments must end in full-stops, exclamation marks, or question marks
(#36) Inline comments must end in full-stops, exclamation marks, or question marks
(#41) Inline comments must end in full-stops, exclamation marks, or question marks
(#46) Inline comments must end in full-stops, exclamation marks, or question marks
(#57) File must end with a newline character
enrol/attributes/edit.php
(#28) Inline comments must start with a capital letter, digit or 3-dots sequence
(#28) Inline comments must end in full-stops, exclamation marks, or question marks
(#48) Expected "if (...) {\n"; found "if(...){\n"
(#49) Commas (,) must be followed by white space.
(#62) Expected "} else {\n"; found "}\nelse {\n"
(#64) Inline comments must start with a capital letter, digit or 3-dots sequence
(#64) Inline comments must end in full-stops, exclamation marks, or question marks
(#80) Usage of ELSEIF not allowed; use ELSE IF instead
(#88) Inline comments must end in full-stops, exclamation marks, or question marks
(#90) Inline comments must end in full-stops, exclamation marks, or question marks
(#92) Expected "} else {\n"; found "}\n else {\n"
(#111) function name "getRulesWithGroups" must be lower-case letters only
(#111) Expected 1 space before opening brace; found 0
(#130) Inline comments must end in full-stops, exclamation marks, or question marks
(#132) The use of function print_r() is forbidden
(#133) Variable "debug_fieldsandrules" must not contain underscores.
(#134) The use of function print_r() is forbidden
(#134) Variable "debug_fieldsandrules" must not contain underscores.
(#135) Variable "debug_arraysql" must not contain underscores.
(#135) Variable "debug_fieldsandrules" must not contain underscores.
(#136) The use of function print_r() is forbidden
(#136) Variable "debug_arraysql" must not contain underscores.
(#137) Variable "debug_sqlquery" must not contain underscores.
(#138) Variable "debug_arraysql" must not contain underscores.
(#138) Variable "debug_arraysql" must not contain underscores.
(#139) The use of function print_r() is forbidden
(#139) Variable "debug_sqlquery" must not contain underscores.
(#140) Variable "debug_users" must not contain underscores.
(#140) Variable "debug_sqlquery" must not contain underscores.
(#140) Variable "debug_arraysql" must not contain underscores.
(#141) The use of function print_r() is forbidden
(#141) Variable "debug_users" must not contain underscores.
(#142) Inline comments must start with a capital letter, digit or 3-dots sequence
(#142) This comment is 55% valid code; is this commented out code?
(#142) Expected 1 space before comment text but found 4; use block comment if you need indentation
(#143) Expected 1 space before comment text but found 4; use block comment if you need indentation
(#144) Inline comments must end in full-stops, exclamation marks, or question marks
(#144) Expected 1 space before comment text but found 4; use block comment if you need indentation
(#146) Inline comments must end in full-stops, exclamation marks, or question marks
enrol/attributes/edit_form.php
(#27) "require_once" must be immediately followed by an open parenthesis
(#31) Visibility must be declared on method "definition"
(#34) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#46) Expected "} else {\n"; found "}\n else {\n"
(#52) Inline comments must end in full-stops, exclamation marks, or question marks
(#68) Line exceeds maximum limit of 180 characters; contains 181 characters
(#71) Expected "} else {\n"; found "}\n else {\n"
(#72) Line exceeds maximum limit of 180 characters; contains 185 characters
(#75) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#77) Inline comments must end in full-stops, exclamation marks, or question marks
(#103) Visibility must be declared on method "add_action_buttons"
(#109) Inline comments must start with a capital letter, digit or 3-dots sequence
(#109) Inline comments must end in full-stops, exclamation marks, or question marks
(#109) No space found before comment text; expected "// when two elements we need a group" but found "//when two elements we need a group"
enrol/attributes/force.php
(#52) Expected "} else {\n"; found "}\nelse {\n"
enrol/attributes/jsparams.php
(#24) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
enrol/attributes/lib.php
(#25) "require_once" must be immediately followed by an open parenthesis
(#26) "require_once" must be immediately followed by an open parenthesis
(#41) Inline comments must start with a capital letter, digit or 3-dots sequence
(#41) Inline comments must end in full-stops, exclamation marks, or question marks
(#43) Inline comments must start with a capital letter, digit or 3-dots sequence
(#43) Inline comments must end in full-stops, exclamation marks, or question marks
(#48) Inline comments must start with a capital letter, digit or 3-dots sequence
(#49) Line exceeds 132 characters; contains 143 characters
(#49) Inline comments must end in full-stops, exclamation marks, or question marks
(#56) Variable "mappings_str" must not contain underscores.
(#57) Variable "mappings_str" must not contain underscores.
(#57) Variable "mapping_str" must not contain underscores.
(#58) Variable "mapping_str" must not contain underscores.
(#65) Inline comments must start with a capital letter, digit or 3-dots sequence
(#65) Inline comments must end in full-stops, exclamation marks, or question marks
(#77) Inline comments must start with a capital letter, digit or 3-dots sequence
(#77) Inline comments must end in full-stops, exclamation marks, or question marks
(#93) Variable "possible_unenrolments" must not contain underscores.
(#98) Inline comments must end in full-stops, exclamation marks, or question marks
(#99) Variable "enrol_attributes_records" must not contain underscores.
(#105) Expected "} else {\n"; found "}\n else {\n"
(#108) Inline comments must end in full-stops, exclamation marks, or question marks
(#109) Variable "enrol_attributes_records" must not contain underscores.
(#114) Inline comments must end in full-stops, exclamation marks, or question marks
(#119) Inline comments must end in full-stops, exclamation marks, or question marks
(#121) Variable "possible_unenrolments" must not contain underscores.
(#122) Line exceeds maximum limit of 180 characters; contains 203 characters
(#125) Variable "possible_unenrolments" must not contain underscores.
(#126) Line exceeds maximum limit of 180 characters; contains 188 characters
(#131) Inline comments must start with a capital letter, digit or 3-dots sequence
(#132) Variable "possible_unenrolments" must not contain underscores.
(#132) Variable "user_enrolment" must not contain underscores.
(#134) Inline comments must start with a capital letter, digit or 3-dots sequence
(#134) Inline comments must end in full-stops, exclamation marks, or question marks
(#135) TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
(#139) Variable "unenrol_attributes_record" must not contain underscores.
(#142) Variable "user_enrolment" must not contain underscores.
(#145) Variable "unenrol_attributes_record" must not contain underscores.
(#149) Variable "unenrol_attributes_record" must not contain underscores.
(#154) Variable "user_enrolment" must not contain underscores.
(#155) Variable "unenrol_attributes_record" must not contain underscores.
(#158) Variable "users_cache" must not contain underscores.
(#159) Variable "users_cache" must not contain underscores.
(#160) Variable "users_cache" must not contain underscores.
(#163) Expected "} else {\n"; found "}\n else {\n"
(#170) Variable "user_enrolment" must not contain underscores.
(#171) Inline comments must end in full-stops, exclamation marks, or question marks
(#172) Variable "enrol_attributes_instance" must not contain underscores.
(#173) Variable "unenrol_attributes_record" must not contain underscores.
(#174) Variable "enrol_attributes_instance" must not contain underscores.
(#174) Variable "unenrol_attributes_record" must not contain underscores.
(#174) Variable "user_enrolment" must not contain underscores.
(#175) Usage of ELSEIF not allowed; use ELSE IF instead
(#175) Variable "unenrol_attributes_record" must not contain underscores.
(#176) Variable "enrol_attributes_instance" must not contain underscores.
(#176) Variable "unenrol_attributes_record" must not contain underscores.
(#176) Variable "user_enrolment" must not contain underscores.
(#183) Inline comments must start with a capital letter, digit or 3-dots sequence
(#184) Variable "enrol_attributes_records" must not contain underscores.
(#184) Variable "enrol_attributes_record" must not contain underscores.
(#186) TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
(#187) Inline comments must start with a capital letter, digit or 3-dots sequence
(#187) Inline comments must end in full-stops, exclamation marks, or question marks
(#191) Variable "enrol_attributes_record" must not contain underscores.
(#195) Inline comments must start with a capital letter, digit or 3-dots sequence
(#195) Inline comments must end in full-stops, exclamation marks, or question marks
(#198) Variable "configured_profilefields" must not contain underscores.
(#203) Variable "configured_profilefields" must not contain underscores.
(#207) Variable "enrol_attributes_instance" must not contain underscores.
(#208) Variable "enrol_attributes_instance" must not contain underscores.
(#208) Variable "enrol_attributes_record" must not contain underscores.
(#211) Inline comments must start with a capital letter, digit or 3-dots sequence
(#211) Inline comments must end in full-stops, exclamation marks, or question marks
(#215) Expected "} else {\n"; found "}\n else { // called by scheduled task or by construct\n"
(#215) Inline comments must start with a capital letter, digit or 3-dots sequence
(#215) Inline comments must end in full-stops, exclamation marks, or question marks
(#219) Variable "enrol_attributes_record" must not contain underscores.
(#223) Inline comments must end in full-stops, exclamation marks, or question marks
(#223) No space found before comment text; expected "// TODO fix bug related to cache : users are not unenrolled" but found "//TODO fix bug related to cache : users are not unenrolled"
(#224) Variable "users_cache" must not contain underscores.
(#225) Variable "users_cache" must not contain underscores.
(#226) Variable "users_cache" must not contain underscores.
(#236) Variable "enrol_attributes_record" must not contain underscores.
(#237) Inline comments must start with a capital letter, digit or 3-dots sequence
(#237) Inline comments must end in full-stops, exclamation marks, or question marks
(#239) Variable "enrol_attributes_instance" must not contain underscores.
(#239) Variable "enrol_attributes_record" must not contain underscores.
(#240) Variable "enrol_attributes_record" must not contain underscores.
(#242) Inline comments must end in full-stops, exclamation marks, or question marks
(#244) Variable "enrol_attributes_record" must not contain underscores.
(#248) Inline comments must end in full-stops, exclamation marks, or question marks
(#252) TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
(#253) Inline comments must start with a capital letter, digit or 3-dots sequence
(#253) Inline comments must end in full-stops, exclamation marks, or question marks
(#278) Opening brace must be the last content on the line
(#278) Inline comments must end in full-stops, exclamation marks, or question marks
(#281) Variable "attrsyntax_object" must not contain underscores.
(#282) Variable "attrsyntax_object" must not contain underscores.
(#295) Variable "join_id" must not contain underscores.
(#305) Expected "} else {\n"; found "}\n else {\n"
(#308) Inline comments must start with a capital letter, digit or 3-dots sequence
(#308) Inline comments must end in full-stops, exclamation marks, or question marks
(#314) Variable "sub_arraysyntax" must not contain underscores.
(#318) Variable "sub_sql" must not contain underscores.
(#318) Variable "sub_arraysyntax" must not contain underscores.
(#318) Variable "join_id" must not contain underscores.
(#319) Variable "sub_sql" must not contain underscores.
(#320) Variable "sub_sql" must not contain underscores.
(#321) Variable "sub_sql" must not contain underscores.
(#322) Usage of ELSEIF not allowed; use ELSE IF instead
(#323) Inline comments must start with a capital letter, digit or 3-dots sequence
(#323) Inline comments must end in full-stops, exclamation marks, or question marks
(#324) Variable "join_id" must not contain underscores.
(#325) Variable "join_id" must not contain underscores.
(#326) Variable "join_id" must not contain underscores.
(#326) Variable "join_id" must not contain underscores.
(#326) Variable "join_id" must not contain underscores.
(#326) Line exceeds 132 characters; contains 157 characters
(#327) Line exceeds 132 characters; contains 153 characters
(#338) Expected "if (...) {\n"; found "if(...) {\n"
(#339) Inline comments must end in full-stops, exclamation marks, or question marks
(#356) Expected "if (...) {\n"; found "if(...) {\n"
(#357) Variable "enrol_attributes_record" must not contain underscores.
(#358) Variable "enrolment_records" must not contain underscores.
(#358) Variable "enrol_attributes_record" must not contain underscores.
(#359) Variable "enrolment_records" must not contain underscores.
(#360) Variable "enrol_attributes_record" must not contain underscores.
(#390) Logical operator "or" is prohibited; use "||" instead
(#394) Variable "configured_profilefields" must not contain underscores.
(#395) Variable "configured_profilefields" must not contain underscores.
(#396) Inline comments must start with a capital letter, digit or 3-dots sequence
(#396) Inline comments must end in full-stops, exclamation marks, or question marks
(#400) Inline comments must start with a capital letter, digit or 3-dots sequence
(#400) Inline comments must end in full-stops, exclamation marks, or question marks
enrol/attributes/locallib.php
(#24) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
enrol/attributes/purge.php
(#43) Expected "} else {\n"; found "}\nelse {\n"
enrol/attributes/settings.php
(#26) "require_once" must be immediately followed by an open parenthesis
(#30) Inline comments must end in full-stops, exclamation marks, or question marks
(#34) Variable "student_role" must not contain underscores.
(#38) Variable "student_role" must not contain underscores.
(#50) Inline comments must end in full-stops, exclamation marks, or question marks
(#81) Commas (,) must be followed by white space.
(#85) Inline comments must end in full-stops, exclamation marks, or question marks
(#86) Line exceeds maximum limit of 180 characters; contains 193 characters
(#88) Inline comments must end in full-stops, exclamation marks, or question marks
enrol/attributes/tests/attributes_test.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#3) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#6) Inline comments must end in full-stops, exclamation marks, or question marks
(#6) Expected 1 space before comment text but found 2; use block comment if you need indentation
(#9) "require_once" must be immediately followed by an open parenthesis
(#11) PHPUnit test file missing any valid testcase class declaration
(#12) Opening brace should be on the same line as the declaration for class attributes_test
(#31) Opening brace should be on the same line as the declaration
(#38) Variable "new_rec" must not contain underscores.
(#43) Variable "new_rec" must not contain underscores.
(#45) Inline comments must start with a capital letter, digit or 3-dots sequence
(#46) Variable "new_rec" must not contain underscores.
(#47) Variable "new_rec" must not contain underscores.
(#61) Variable "user_info_data" must not contain underscores.
(#66) Variable "user_info_data" must not contain underscores.
(#81) Public method name "attributes_test::testAddUserEnrolByGroup" must be in lower-case letters only
(#82) Opening brace should be on the same line as the declaration
(#87) Public method name "attributes_test::testEnrolUser" must be in lower-case letters only
(#87) Expected 1 space before opening brace; found 0
(#92) Public method name "attributes_test::testUnenrolUser" must be in lower-case letters only
(#92) Expected 1 space before opening brace; found 0
(#93) Inline comments must end in full-stops, exclamation marks, or question marks
(#93) No space found before comment text; expected "// Simulating the invalidatecache task run by the cron" but found "//Simulating the invalidatecache task run by the cron"
(#102) Visibility must be declared on method "testDeleteUserFromGroupAfterUnenrolment"
(#102) method name "attributes_test::testDeleteUserFromGroupAfterUnenrolment" must be in lower-case letters only
(#103) Opening brace should be on the same line as the declaration
(#104) Inline comments must end in full-stops, exclamation marks, or question marks
(#104) No space found before comment text; expected "// Simulating the invalidatecache task run by the cron" but found "//Simulating the invalidatecache task run by the cron"
(#114) Visibility must be declared on method "unenrolUser"
(#114) method name "attributes_test::unenrolUser" must be in lower-case letters only
(#115) Opening brace should be on the same line as the declaration
enrol/attributes/version.php
(#27) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(56 errors, 125 warnings)

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

enrol/attributes/js/javascript.js
(#23) Identifier 'enrol_attributes_purge' is not in camel case. (camelcase)
(#23) 'enrol_attributes_purge' is assigned a value but never used. (no-unused-vars)
(#23) Identifier 'enrol_attributes_force' is not in camel case. (camelcase)
(#23) 'enrol_attributes_force' is not defined. (no-undef)
(#23) Unexpected space before function parentheses. (space-before-function-paren)
(#24) Unexpected alert. (no-alert)
(#27) Unexpected space before function parentheses. (space-before-function-paren)
(#29) Unexpected space before function parentheses. (space-before-function-paren)
(#31) Identifier '$shib_rules' is not in camel case. (camelcase)
(#35) Identifier 'shib_boolconfig' is not in camel case. (camelcase)
(#35) 'shib_boolconfig' used outside of binding context. (block-scoped-var)
(#35) eval can be harmful. (no-eval)
(#36) Closing curly brace does not appear on the same line as the subsequent block. (brace-style)
(#38) 'shib_boolconfig' is already defined. (no-redeclare)
(#38) 'shib_boolconfig' used outside of binding context. (block-scoped-var)
(#45) Identifier '$shib_rules' is not in camel case. (camelcase)
(#46) 'shib_boolconfig' used outside of binding context. (block-scoped-var)
(#46) Identifier 'shib_boolconfig' is not in camel case. (camelcase)
(#46) 'shib_boolconfig' used outside of binding context. (block-scoped-var)
(#47) Identifier 'enrol_attributes_updateExpr' is not in camel case. (camelcase)
(#52) Identifier 'enrol_attributes_purge' is not in camel case. (camelcase)
(#52) Unexpected space before function parentheses. (space-before-function-paren)
(#53) Unexpected confirm. (no-alert)
(#54) This line has a length of 156. Maximum allowed is 132. (max-len)
(#55) Unexpected space before function parentheses. (space-before-function-paren)
(#56) Unexpected alert. (no-alert)
(#59) Missing semicolon. (semi)
(#61) Identifier 'enrol_attributes_force' is not in camel case. (camelcase)
(#61) 'enrol_attributes_force' is not defined. (no-undef)
(#61) Unexpected space before function parentheses. (space-before-function-paren)
(#62) Unexpected confirm. (no-alert)
(#63) This line has a length of 156. Maximum allowed is 132. (max-len)
(#64) Unexpected space before function parentheses. (space-before-function-paren)
(#65) Unexpected alert. (no-alert)
(#68) Missing semicolon. (semi)
(#69) Closing curly brace does not appear on the same line as the subsequent block. (brace-style)
(#77) Missing JSDoc comment. (require-jsdoc)
(#77) Identifier 'enrol_attributes_updateExpr' is not in camel case. (camelcase)
(#78) 'expressionStr' is assigned a value but never used. (no-unused-vars)
(#79) 'serializedObj' is assigned a value but never used. (no-unused-vars)
(#85) 'jQuery' is not defined. (no-undef)
(#85) Missing semicolon. (semi)
enrol/attributes/js/jquery.booleanEditor.js
(#23) Unnecessary semicolon. (no-extra-semi)
(#24) Unexpected space before function parentheses. (space-before-function-paren)
(#41) Unexpected space before function parentheses. (space-before-function-paren)
(#42) Comments should not begin with a lowercase character. (capitalized-comments)
(#46) Expected { after 'if' condition. (curly)
(#48) There should be no space after this paren. (space-in-parens)
(#48) There should be no space before this paren. (space-in-parens)
(#49) Identifier 'ser_obj' is not in camel case. (camelcase)
(#54) Unreachable code. (no-unreachable)
(#58) Identifier 'ser_obj' is not in camel case. (camelcase)
(#60) Unreachable code. (no-unreachable)
(#63) Unreachable code. (no-unreachable)
(#65) Method 'booleanEditor' expected a return value. (consistent-return)
(#68) 'settings' is not defined. (no-undef)
(#70) Unexpected space before function parentheses. (space-before-function-paren)
(#71) 'settings' is not defined. (no-undef)
(#72) 'settings' is not defined. (no-undef)
(#72) Missing semicolon. (semi)
(#76) 'settings' is not defined. (no-undef)
(#84) Missing JSDoc comment. (require-jsdoc)
(#84) Identifier 'root_elem' is not in camel case. (camelcase)
(#85) Identifier 'ser_obj' is not in camel case. (camelcase)
(#86) Identifier 'group_c_op' is not in camel case. (camelcase)
(#87) Identifier 'group_c_op' is not in camel case. (camelcase)
(#88) Identifier 'ser_obj' is not in camel case. (camelcase)
(#88) Expected { after 'if' condition. (curly)
(#88) Identifier 'cond_op' is not in camel case. (camelcase)
(#88) Identifier 'group_c_op' is not in camel case. (camelcase)
(#90) Unexpected space before function parentheses. (space-before-function-paren)
(#91) 'r' is not defined. (no-undef)
(#92) 'r' is not defined. (no-undef)
(#93) Identifier 'ser_obj' is not in camel case. (camelcase)
(#93) ["rules"] is better written in dot notation. (dot-notation)
(#95) Identifier 'cond_obj' is not in camel case. (camelcase)
(#96) 'r' is not defined. (no-undef)
(#97) Identifier 'comp_op' is not in camel case. (camelcase)
(#97) 'r' is not defined. (no-undef)
(#98) 'r' is not defined. (no-undef)
(#100) Identifier 'cond_op' is not in camel case. (camelcase)
(#100) 'r' is not defined. (no-undef)
(#101) Identifier 'cond_op' is not in camel case. (camelcase)
(#102) Identifier 'cond_obj' is not in camel case. (camelcase)
(#102) Expected { after 'if' condition. (curly)
(#102) Identifier 'cond_op' is not in camel case. (camelcase)
(#102) Identifier 'cond_op' is not in camel case. (camelcase)
(#103) Identifier 'ser_obj' is not in camel case. (camelcase)
(#103) ["rules"] is better written in dot notation. (dot-notation)
(#106) Identifier 'ser_obj' is not in camel case. (camelcase)
(#110) Missing JSDoc comment. (require-jsdoc)
(#112) Unexpected space before function parentheses. (space-before-function-paren)
(#113) 'r' is not defined. (no-undef)
(#114) Identifier 'c_op' is not in camel case. (camelcase)
(#114) 'r' is not defined. (no-undef)
(#115) Identifier 'c_op' is not in camel case. (camelcase)
(#115) Identifier 'c_op' is not in camel case. (camelcase)
(#115) Expected { after 'if' condition. (curly)
(#115) Identifier 'c_op' is not in camel case. (camelcase)
(#117) 'r' is not defined. (no-undef)
(#118) This line has a length of 160. Maximum allowed is 132. (max-len)
(#118) Identifier 'c_op' is not in camel case. (camelcase)
(#121) Identifier 'c_op' is not in camel case. (camelcase)
(#123) 'r' is not defined. (no-undef)
(#124) 'r' is not defined. (no-undef)
(#125) 'r' is not defined. (no-undef)
(#134) Missing JSDoc comment. (require-jsdoc)
(#135) '$o' is not defined. (no-undef)
(#136) '$o' is not defined. (no-undef)
(#137) '$o' is not defined. (no-undef)
(#137) '$o' is not defined. (no-undef)
(#139) '$o' is not defined. (no-undef)
(#140) '$o' is not defined. (no-undef)
(#140) '$o' is not defined. (no-undef)
(#145) Missing JSDoc comment. (require-jsdoc)
(#145) Identifier 'list_elem' is not in camel case. (camelcase)
(#147) Identifier 'list_elem' is not in camel case. (camelcase)
(#148) Unexpected console statement. (no-console)
(#154) Identifier 'list_elem' is not in camel case. (camelcase)
(#158) Identifier 'r_idx' is not in camel case. (camelcase)
(#158) Identifier 'r_idx' is not in camel case. (camelcase)
(#158) Identifier 'r_idx' is not in camel case. (camelcase)
(#159) Identifier 'r_idx' is not in camel case. (camelcase)
(#160) ["first"] is better written in dot notation. (dot-notation)
(#160) Identifier 'r_idx' is not in camel case. (camelcase)
(#166) Identifier 'list_elem' is not in camel case. (camelcase)
(#168) Closing curly brace does not appear on the same line as the subsequent block. (brace-style)
(#170) Identifier 'list_elem' is not in camel case. (camelcase)
(#175) Function 'createRuleList' expected no return value. (consistent-return)
(#175) Identifier 'list_elem' is not in camel case. (camelcase)
(#176) Unnecessary semicolon. (no-extra-semi)
(#179) Missing JSDoc @returns for function. (valid-jsdoc)
(#179) Missing JSDoc for parameter 'config'. (valid-jsdoc)
(#188) Identifier 'cond_op' is not in camel case. (camelcase)
(#190) Identifier 'comp_op' is not in camel case. (camelcase)
(#199) Identifier 'cond_block_content' is not in camel case. (camelcase)
(#201) Identifier 'cond_block_content' is not in camel case. (camelcase)
(#203) Identifier 'cond_block_content' is not in camel case. (camelcase)
(#204) Multiple spaces found before '// The list of...'. (no-multi-spaces)
(#207) Identifier 'selected_value' is not in camel case. (camelcase)
(#216) Unexpected space before function parentheses. (space-before-function-paren)
(#217) Missing semicolon. (semi)
(#219) Multiple spaces found before '// The value o...'. (no-multi-spaces)
(#226) Missing semicolon. (semi)
(#230) Unnecessary semicolon. (no-extra-semi)
(#233) Missing JSDoc comment. (require-jsdoc)
(#241) Identifier 'selected_value' is not in camel case. (camelcase)
(#246) Missing JSDoc comment. (require-jsdoc)
(#248) This line has a length of 139. Maximum allowed is 132. (max-len)
(#248) Operator '+' must be spaced. (space-infix-ops)
(#248) Operator '+' must be spaced. (space-infix-ops)
(#249) Unexpected space before function parentheses. (space-before-function-paren)
(#253) This line has a length of 136. Maximum allowed is 132. (max-len)
(#253) Operator '+' must be spaced. (space-infix-ops)
(#253) Operator '+' must be spaced. (space-infix-ops)
(#254) Unexpected space before function parentheses. (space-before-function-paren)
(#258) This line has a length of 142. Maximum allowed is 132. (max-len)
(#258) Operator '+' must be spaced. (space-infix-ops)
(#258) Operator '+' must be spaced. (space-infix-ops)
(#259) Unexpected space before function parentheses. (space-before-function-paren)
(#263) Unexpected space before function parentheses. (space-before-function-paren)
(#265) Unexpected space before function parentheses. (space-before-function-paren)
(#266) Missing semicolon. (semi)
(#275) Missing JSDoc comment. (require-jsdoc)
(#280) Identifier 'selected_value' is not in camel case. (camelcase)
(#285) Unexpected space before function parentheses. (space-before-function-paren)
(#288) Unexpected space before function parentheses. (space-before-function-paren)
(#289) Identifier 'p_obj' is not in camel case. (camelcase)
(#293) Identifier 'p_obj' is not in camel case. (camelcase)
(#295) Identifier 'p_obj' is not in camel case. (camelcase)
(#305) Missing JSDoc comment. (require-jsdoc)
(#309) Unexpected space before function parentheses. (space-before-function-paren)
(#310) Missing semicolon. (semi)
(#315) Missing JSDoc comment. (require-jsdoc)
(#322) Unexpected space before function parentheses. (space-before-function-paren)
(#323) Missing semicolon. (semi)
(#333) Missing JSDoc comment. (require-jsdoc)
(#347) 'p' is not defined. (no-undef)
(#348) Unexpected space before function parentheses. (space-before-function-paren)
(#351) 'p' is not defined. (no-undef)
(#356) 'jQuery' is not defined. (no-undef)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(54 errors, 11 warnings)

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

enrol/attributes/classes/privacy/provider.php
(#29) Class provider is not documented
enrol/attributes/classes/task/invalidatecache_task.php
(#26) Class invalidatecache_task is not documented
(#17) No one-line description found in phpdocs for file
(#17) Inline phpdocs tag not enclosed with curly brackets @link found
enrol/attributes/classes/task/processenrolments_task.php
(#26) Class processenrolments_task is not documented
(#17) No one-line description found in phpdocs for file
(#17) Inline phpdocs tag not enclosed with curly brackets @link found
enrol/attributes/cli/sync.php
(#17) No one-line description found in phpdocs for file
(#17) Inline phpdocs tag not enclosed with curly brackets @link found
enrol/attributes/db/access.php
(#17) No one-line description found in phpdocs for file
(#17) Inline phpdocs tag not enclosed with curly brackets @link found
enrol/attributes/db/caches.php
(#17) No one-line description found in phpdocs for file
enrol/attributes/db/events.php
(#17) No one-line description found in phpdocs for file
(#17) Inline phpdocs tag not enclosed with curly brackets @link found
enrol/attributes/db/install.php
(#26) Function xmldb_enrol_attributes_install is not documented
(#17) No one-line description found in phpdocs for file
(#17) Inline phpdocs tag not enclosed with curly brackets @link found
enrol/attributes/db/tasks.php
(#17) No one-line description found in phpdocs for file
(#17) Inline phpdocs tag not enclosed with curly brackets @link found
enrol/attributes/db/upgrade.php
(#26) Function xmldb_enrol_attributes_upgrade is not documented
(#17) No one-line description found in phpdocs for file
enrol/attributes/edit.php
(#17) No one-line description found in phpdocs for file
(#107) Phpdocs for function getRulesWithGroups has incomplete parameters list
(#17) Inline phpdocs tag not enclosed with curly brackets @link found
enrol/attributes/edit_form.php
(#29) Class enrol_attributes_edit_form is not documented
(#31) Function enrol_attributes_edit_form::definition is not documented
(#103) Function enrol_attributes_edit_form::add_action_buttons is not documented
(#17) No one-line description found in phpdocs for file
(#17) Inline phpdocs tag not enclosed with curly brackets @link found
enrol/attributes/force.php
(#17) No one-line description found in phpdocs for file
(#17) Inline phpdocs tag not enclosed with curly brackets @link found
enrol/attributes/jsparams.php
(#17) No one-line description found in phpdocs for file
(#17) Inline phpdocs tag not enclosed with curly brackets @link found
enrol/attributes/lang/en/enrol_attributes.php
(#17) No one-line description found in phpdocs for file
(#17) Inline phpdocs tag not enclosed with curly brackets @link found
enrol/attributes/lang/fr/enrol_attributes.php
(#17) File-level phpdocs block is not found
enrol/attributes/lib.php
(#278) Function enrol_attributes_plugin::attrsyntax_toarray is not documented
(#295) Function enrol_attributes_plugin::arraysyntax_tosql is not documented
(#352) Function enrol_attributes_plugin::purge_instance is not documented
(#17) No one-line description found in phpdocs for file
(#35) There is no description in phpdocs for function process_login
(#81) There is no description in phpdocs for function process_enrolments
(#265) There is no description in phpdocs for function restore_group_member
(#35) Phpdocs for function enrol_attributes_plugin::process_login has incomplete parameters list
(#81) Phpdocs for function enrol_attributes_plugin::process_enrolments has incomplete parameters list
(#17) Inline phpdocs tag not enclosed with curly brackets @link found
enrol/attributes/locallib.php
(#26) Constant ENROL_ATTRIBUTES_WHENEXPIREDDONOTHING is not documented
(#27) Constant ENROL_ATTRIBUTES_WHENEXPIREDREMOVE is not documented
(#28) Constant ENROL_ATTRIBUTES_WHENEXPIREDSUSPEND is not documented
(#17) No one-line description found in phpdocs for file
(#17) Inline phpdocs tag not enclosed with curly brackets @link found
enrol/attributes/purge.php
(#17) No one-line description found in phpdocs for file
(#17) Inline phpdocs tag not enclosed with curly brackets @link found
enrol/attributes/settings.php
(#17) No one-line description found in phpdocs for file
(#17) Inline phpdocs tag not enclosed with curly brackets @link found
enrol/attributes/tests/attributes_test.php
(#2) Empty line found after PHP open tag
(#11) Class attributes_test is not documented
(#81) Function attributes_test::testAddUserEnrolByGroup is not documented
(#87) Function attributes_test::testEnrolUser is not documented
(#92) Function attributes_test::testUnenrolUser is not documented
(#102) Function attributes_test::testDeleteUserFromGroupAfterUnenrolment is not documented
(#114) Function attributes_test::unenrolUser is not documented
(#11) Package is not specified for class attributes_test. It is also not specified in file-level phpdocs
enrol/attributes/version.php
(#17) No one-line description found in phpdocs for file
(#17) Inline phpdocs tag not enclosed with curly brackets @link found

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

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