Prechecker results: error


PHP lint problems

(1 errors, 0 warnings)

This section shows php lint problems in the code detected by php -l [More info]

mod/quiz/accessrule/proctoring/tests/practice_test.php
(#25) PHP Warning: The use statement with non-compound name 'advanced_testcase' has no effect in /mod/quiz/accessrule/proctoring/tests/practice_test.php on line 25 PHP Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in /var/lib/jenkins/git_repositories/prechecker/mod/quiz/accessrule/proctoring/tests/practice_test.php on line 26

PHP coding style problems

(1 errors, 13 warnings)

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

mod/quiz/accessrule/proctoring/proctoring_pro_promo.php
(#24) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#30) Inline comments must start with a capital letter, digit or 3-dots sequence
(#30) This comment is 86% valid code; is this commented out code?
(#46) File must end with a newline character
mod/quiz/accessrule/proctoring/report.php
(#238) Line exceeds 132 characters; contains 139 characters
mod/quiz/accessrule/proctoring/tests/practice_test.php
(#36) Test method test_empty() is missing any coverage information, own or at class level
(#48) Test method test_push() is missing any coverage information, own or at class level
(#63) Test method test_pop() is missing any coverage information, own or at class level
mod/quiz/accessrule/proctoring/tests/rule_test.php
(#54) Test method test_proctoring_access_rule() is missing any coverage information, own or at class level
(#75) Test method test_validate_preflight_check() is missing any coverage information, own or at class level
(#94) Test method test_log_aws_api_call() is missing any coverage information, own or at class level
(#110) Test method test_proctoring_settings() is missing any coverage information, own or at class level
(#135) Test method test_make_modal_content() is missing any coverage information, own or at class level
(#156) Test method test_offlineattempts_access_rule() is missing any coverage information, own or at class level

Javascript coding style problems

(6 errors, 7 warnings)

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

mod/quiz/accessrule/proctoring/amd/src/deletebtnjs.js
(#24) Expected space or tab after '/*' in comment. (spaced-comment)
(#25) Unexpected confirm. (no-alert)
mod/quiz/accessrule/proctoring/amd/src/proctoring.js
(#36) Expected space(s) after "if". (keyword-spacing)
(#181) Unexpected space before function parentheses. (space-before-function-paren)
(#186) Unexpected space before function parentheses. (space-before-function-paren)
mod/quiz/accessrule/proctoring/amd/src/startAttempt.js
(#35) 'faceapi' is not defined. (no-undef)
(#47) Operator '/' must be spaced. (space-infix-ops)
mod/quiz/accessrule/proctoring/amd/src/validateAdminUploadedImage.js
(#9) Expected space(s) after "if". (keyword-spacing)
(#31) 'faceapi' is not defined. (no-undef)
(#33) 'faceapi' is not defined. (no-undef)
(#44) 'faceapi' is not defined. (no-undef)
(#56) 'faceapi' is not defined. (no-undef)
(#110) Expected space(s) after "if". (keyword-spacing)

CSS problems

(2 errors, 1 warnings)

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

mod/quiz/accessrule/proctoring/styles.css
(#238) Expected "#3E67EC" to be "#3e67ec" (color-hex-case)
(#246) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#223) Unexpected whitespace at end of line (no-eol-whitespace)

PHPDocs style problems

(26 errors, 0 warnings)

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

mod/quiz/accessrule/proctoring/classes/AdditionalSettingsHelper.php
(#157) Phpdocs for function AdditionalSettingsHelper::emailquerypart has incomplete parameters list
(#193) Phpdocs for function AdditionalSettingsHelper::coursenamequerypart has incomplete parameters list
(#229) Phpdocs for function AdditionalSettingsHelper::quiznamequerypart has incomplete parameters list
mod/quiz/accessrule/proctoring/classes/external.php
(#309) Phpdocs for function quizaccess_proctoring_external::add_timecode_to_image has incomplete parameters list
(#349) Phpdocs for function quizaccess_proctoring_external::validate_face has incomplete parameters list
(#479) Phpdocs for function quizaccess_proctoring_external::geturl has incomplete parameters list
(#516) Phpdocs for function quizaccess_proctoring_external::quizaccess_proctoring_geturl_without_timecode has incomplete parameters list
mod/quiz/accessrule/proctoring/classes/proctoring_observer.php
(#39) Phpdocs for function proctoring_observer::handle_quiz_attempt_started has incomplete parameters list
(#49) Phpdocs for function proctoring_observer::handle_quiz_attempt_submitted has incomplete parameters list
mod/quiz/accessrule/proctoring/classes/task/InitiateFacematchTask.php
(#34) Package is not specified for class InitiateFacematchTask. It is also not specified in file-level phpdocs
(#27) Package local is not valid
(#34) Class InitiateFacematchTask is not documented
mod/quiz/accessrule/proctoring/db/upgrade.php
(#34) Function xmldb_quizaccess_proctoring_upgrade is not documented
mod/quiz/accessrule/proctoring/lib.php
(#608) Function get_face_images is not documented
(#236) Phpdocs for function get_match_result has incomplete parameters list
(#412) Phpdocs for function bs_analyze_specific_quiz has incomplete parameters list
(#529) Phpdocs for function bs_analyze_specific_image has incomplete parameters list
(#633) Phpdocs for function extracted has incomplete parameters list
(#662) Phpdocs for function log_aws_api_call has incomplete parameters list
(#680) Phpdocs for function check_similarity_bs has incomplete parameters list
(#798) Phpdocs for function quizaccess_proctoring_geturl_of_faceimage has incomplete parameters list
mod/quiz/accessrule/proctoring/report.php
(#27) Constant MOD_QUIZ_ACCESSRULE_PROCTORING_REPORT_PHP is not documented
mod/quiz/accessrule/proctoring/rule.php
(#67) Phpdocs for function quizaccess_proctoring::get_courseid_cmid_from_preflight_form has incomplete parameters list
(#84) Phpdocs for function quizaccess_proctoring::make_modal_content has incomplete parameters list
(#129) Phpdocs for function quizaccess_proctoring::add_preflight_check_form_fields has incomplete parameters list
(#235) Phpdocs for function quizaccess_proctoring::make 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, 1 warnings)

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

Problems running grunt
Task "eslint:amd" 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, 5 warnings)

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

mod/quiz/accessrule/proctoring/templates/proctoring_pro_promo.mustache
(#1) HTML Validation error, line 3: Element “style” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (d><body><style> .)
(#1) HTML Validation error, line 113: Bad value “” for attribute “src” on element “img”: Must be non-empty. ( <img class="proctoring-pro-feature mt-5" src="" > )
(#1) HTML Validation error, line 113: An “img” element must have an “alt” attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images. ( <img class="proctoring-pro-feature mt-5" src="" > )
(#1) HTML Validation error, line 115: Bad value “” for attribute “src” on element “img”: Must be non-empty. ( <img class="proctoring-pro-feature mt-5" src="" > )
(#1) HTML Validation error, line 115: An “img” element must have an “alt” attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images. ( <img class="proctoring-pro-feature mt-5" src="" > )

Gherkin .feature problems

(0 errors, 0 warnings)

This section shows problems detected in behat .feature files [More info]