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

(0 errors, 0 warnings)

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


Javascript coding style problems

(1 errors, 29 warnings)

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

plagiarism/safeassign/amd/src/disclosure.js
(#38) Unexpected space before function parentheses. (space-before-function-paren)
(#44) 'promise' is defined but never used. (no-unused-vars)
plagiarism/safeassign/amd/src/formelements.js
(#49) Unexpected space before function parentheses. (space-before-function-paren)
(#60) Missing JSDoc @returns for function. (valid-jsdoc)
(#63) Unexpected space before function parentheses. (space-before-function-paren)
(#97) Unexpected space before function parentheses. (space-before-function-paren)
plagiarism/safeassign/amd/src/score.js
(#39) Missing JSDoc @returns for function. (valid-jsdoc)
(#52) Unexpected space before function parentheses. (space-before-function-paren)
(#69) Unexpected space before function parentheses. (space-before-function-paren)
(#78) Missing JSDoc for parameter 'selector'. (valid-jsdoc)
(#82) Unexpected space before function parentheses. (space-before-function-paren)
(#93) Expected JSDoc for 'containerSelector' but found 'evaluateFunction'. (valid-jsdoc)
plagiarism/safeassign/amd/src/settings.js
(#30) Missing JSDoc for parameter 'storedUrl'. (valid-jsdoc)
(#51) Expected to return a value at the end of this function. (consistent-return)
(#59) A space is required after ','. (comma-spacing)
(#63) Expected space or tab after '//' in comment. (spaced-comment)
(#78) There should be no spaces inside this paren. (space-in-parens)
(#78) There should be no spaces inside this paren. (space-in-parens)
(#80) There should be no spaces inside this paren. (space-in-parens)
(#80) There should be no spaces inside this paren. (space-in-parens)
(#84) There should be no spaces inside this paren. (space-in-parens)
(#84) There should be no spaces inside this paren. (space-in-parens)
(#86) There should be no spaces inside this paren. (space-in-parens)
(#86) There should be no spaces inside this paren. (space-in-parens)
(#118) There should be no spaces inside this paren. (space-in-parens)
(#118) There should be no spaces inside this paren. (space-in-parens)
(#120) There should be no spaces inside this paren. (space-in-parens)
(#120) There should be no spaces inside this paren. (space-in-parens)
(#147) Missing space before opening brace. (space-before-blocks)
(#160) Missing space before opening brace. (space-before-blocks)

CSS problems

(2 errors, 2 warnings)

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

plagiarism/safeassign/styles.css
(#34) Expected single space before "{" (block-opening-brace-space-before)
(#20) Unexpected unit (length-zero-no-unit)
(#24) Unexpected unit (length-zero-no-unit)
(#7) Expected newline after "," (selector-list-comma-newline-after)

PHPDocs style problems

(248 errors, 1 warnings)

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

plagiarism/safeassign/backup/moodle2/backup_plagiarism_safeassign_plugin.class.php
(#17) File-level phpdocs block is not found
(#19) Class backup_plagiarism_safeassign_plugin does not have @license tag
(#24) Invalid phpdocs tag @licence used
plagiarism/safeassign/backup/moodle2/restore_plagiarism_safeassign_plugin.class.php
(#17) File-level phpdocs block is not found
(#52) Phpdocs for function restore_plagiarism_safeassign_plugin::process_safeassign_config has incomplete parameters list
(#89) Phpdocs for function restore_plagiarism_safeassign_plugin::process_safeassign_files has incomplete parameters list
(#101) Phpdocs for function restore_plagiarism_safeassign_plugin::process_safeassign_course has incomplete parameters list
(#20) Class restore_plagiarism_safeassign_plugin does not have @license tag
(#25) Invalid phpdocs tag @licence used
plagiarism/safeassign/classes/api/cache.php
(#45) Function cache::__construct is not documented
(#52) There is no description in phpdocs for function cache_timeout
(#60) There is no description in phpdocs for function cache_timeout_hours
(#68) There is no description in phpdocs for function getkeyname
(#77) There is no description in phpdocs for function getkeys
(#87) There is no description in phpdocs for function get
(#120) There is no description in phpdocs for function set
(#143) There is no description in phpdocs for function delete
(#154) There is no description in phpdocs for function refresh
(#121) Phpdocs for function cache::set has incomplete parameters list
(#29) Invalid phpdocs tag @noinspection used
plagiarism/safeassign/classes/api/error_handler.php
(#17) File-level phpdocs block is not found
plagiarism/safeassign/classes/api/memfile.php
(#42) Function memfile::__construct is not documented
(#46) Function memfile::open is not documented
(#53) Function memfile::__destruct is not documented
(#86) Function memfile::reset is not documented
(#57) There is no description in phpdocs for function get
(#64) There is no description in phpdocs for function get_content
plagiarism/safeassign/classes/api/rest_provider.php
(#131) Function rest_provider::__clone is not documented
(#39) Constant rest_provider::HTTP_GET is not documented
(#40) Constant rest_provider::HTTP_POST is not documented
(#41) Constant rest_provider::HTTP_PUT is not documented
(#42) Constant rest_provider::HTTP_HEAD is not documented
(#43) Constant rest_provider::HTTP_DELETE is not documented
(#45) Constant rest_provider::ERR_UNKNOWN is not documented
(#46) Constant rest_provider::ERR_JSON is not documented
(#47) Constant rest_provider::PLUGIN is not documented
(#48) Constant rest_provider::TOKEN is not documented
(#50) Constant rest_provider::STR_HTTP is not documented
(#52) Constant rest_provider::HEADER_KEY_CONTENT_TYPE is not documented
(#53) Constant rest_provider::HEADER_KEY_ACCEPT is not documented
(#54) Constant rest_provider::HEADER_KEY_AUTHORIZATION is not documented
(#55) Constant rest_provider::HEADER_KEY_CONTENT_LENGTH is not documented
(#57) Constant rest_provider::HEADER_VAL_MULTIPART_FORM is not documented
(#58) Constant rest_provider::HEADER_VAL_APP_JSON is not documented
(#118) There is no description in phpdocs for function __construct
(#135) There is no description in phpdocs for function instance
(#154) There is no description in phpdocs for function getopts
(#411) There is no description in phpdocs for function lastresponse
(#418) There is no description in phpdocs for function response_headers
(#425) There is no description in phpdocs for function request_headers
(#495) There is no description in phpdocs for function post
(#518) There is no description in phpdocs for function get
(#531) There is no description in phpdocs for function put
(#544) There is no description in phpdocs for function delete
(#557) There is no description in phpdocs for function request_withtoken
(#578) There is no description in phpdocs for function request_withauth
(#598) There is no description in phpdocs for function get_withtoken
(#609) There is no description in phpdocs for function post_withtoken
(#625) There is no description in phpdocs for function put_withtoken
(#636) There is no description in phpdocs for function delete_withtoken
(#647) There is no description in phpdocs for function post_withauth
(#665) There is no description in phpdocs for function geterrorcode
(#672) There is no description in phpdocs for function geterrormsg
(#679) There is no description in phpdocs for function gettoken
(#699) There is no description in phpdocs for function resettoken
(#717) There is no description in phpdocs for function settoken
(#730) There is no description in phpdocs for function getinfo
(#739) There is no description in phpdocs for function hastoken
(#748) There is no description in phpdocs for function lasthttpcode
(#350) Phpdocs for function rest_provider::request_behat has incomplete parameters list
(#496) Phpdocs for function rest_provider::post has incomplete parameters list
plagiarism/safeassign/classes/api/safeassign_api.php
(#37) Constant safeassign_api::PLUGIN is not documented
(#345) Phpdocs for function safeassign_api::create_assignment has incomplete parameters list
(#429) Phpdocs for function safeassign_api::get_originality_report has incomplete parameters list
(#474) Phpdocs for function safeassign_api::resubmit_file has incomplete parameters list
plagiarism/safeassign/classes/api/safeassign_curl.php
(#31) Package plagiarism_safeassign\api is not valid
plagiarism/safeassign/classes/api/test_safeassign_api_connectors.php
(#35) Class test_safeassign_api_connectors is not documented
(#39) Function test_safeassign_api_connectors::get_data_generator is not documented
(#37) Variable test_safeassign_api_connectors::$datagenerator is not documented
(#36) Constant test_safeassign_api_connectors::PLUGIN is not documented
plagiarism/safeassign/classes/api/testhelper.php
(#55) There is no description in phpdocs for function load_data
(#74) There is no description in phpdocs for function get_fixture_data
(#97) There is no description in phpdocs for function get_code_data
(#105) There is no description in phpdocs for function push_pair
(#116) There is no description in phpdocs for function generate_name
(#127) There is no description in phpdocs for function reset_stash
(#98) Phpdocs for function testhelper::get_code_data has incomplete parameters list
(#138) Phpdocs for function testhelper::set_timed_value has incomplete parameters list
(#151) Phpdocs for function testhelper::get_timed_value has incomplete parameters list
plagiarism/safeassign/classes/event/score_sync_fail.php
(#33) Class score_sync_fail is not documented
plagiarism/safeassign/classes/event/score_sync_log.php
(#32) Class score_sync_log is not documented
plagiarism/safeassign/classes/event/serv_unavailable_log.php
(#32) Class serv_unavailable_log is not documented
plagiarism/safeassign/classes/event/sync_content_log.php
(#42) Constant sync_content_log::PLUGIN is not documented
plagiarism/safeassign/classes/exceptions/curlerror_exception.php
(#37) There is no description in phpdocs for function __construct
plagiarism/safeassign/classes/exceptions/jsonerror_exception.php
(#38) Function jsonerror_exception::__construct is not documented
plagiarism/safeassign/classes/exceptions/nocurl_exception.php
(#37) Function nocurl_exception::__construct is not documented
plagiarism/safeassign/classes/exceptions/norequestmethod_exception.php
(#38) Function norequestmethod_exception::__construct is not documented
plagiarism/safeassign/classes/exceptions/nourl_exception.php
(#38) There is no description in phpdocs for function __construct
plagiarism/safeassign/classes/exceptions/safeassign_exception.php
(#37) There is no description in phpdocs for function __construct
plagiarism/safeassign/classes/local.php
(#29) Class local is not documented
plagiarism/safeassign/classes/observer.php
(#17) File-level phpdocs block is not found
plagiarism/safeassign/classes/task/get_scores.php
(#17) File-level phpdocs block is not found
(#31) Function get_scores::get_name is not documented
(#36) Function get_scores::execute is not documented
plagiarism/safeassign/classes/task/sync_assignments.php
(#34) Class sync_assignments is not documented
(#36) Function sync_assignments::get_name is not documented
(#41) Function sync_assignments::execute is not documented
(#17) No one-line description found in phpdocs for file
plagiarism/safeassign/classes/terms.php
(#17) File-level phpdocs block is not found
plagiarism/safeassign/controller/default.php
(#35) Package plagiarism/safeassign is not valid
(#32) Class plagiarism_safeassign_controller_default does not have @copyright tag
(#32) Class plagiarism_safeassign_controller_default does not have @license tag
(#90) Invalid phpdocs tag @noinspection used
plagiarism/safeassign/controller/resubmit_ack.php
(#39) Function plagiarism_safeassign_controller_resubmit_ack::view_action is not documented
(#43) Function plagiarism_safeassign_controller_resubmit_ack::define_json_headers is not documented
(#67) Phpdocs for function plagiarism_safeassign_controller_resubmit_ack::ajax_err_response has incomplete parameters list
plagiarism/safeassign/db/upgrade.php
(#19) Package is not specified for function xmldb_plagiarism_safeassign_upgrade. It is also not specified in file-level phpdocs
(#17) File-level phpdocs block is not found
(#19) There is no description in phpdocs for function xmldb_plagiarism_safeassign_upgrade
(#20) Not recommended phpdocs tag @global used
plagiarism/safeassign/externallib.php
(#36) Package is not specified for class plagiarism_safeassign_test_api_credentials_external. It is also not specified in file-level phpdocs
(#75) Package is not specified for class plagiarism_safeassign_update_flag_external. It is also not specified in file-level phpdocs
(#22) File-level phpdocs block is not found
(#36) Class plagiarism_safeassign_test_api_credentials_external is not documented
(#38) There is no description in phpdocs for function plagiarism_safeassign_test_api_credentials_parameters
(#51) There is no description in phpdocs for function plagiarism_safeassign_test_api_credentials_returns
(#61) There is no description in phpdocs for function plagiarism_safeassign_test_api_credentials
(#83) There is no description in phpdocs for function plagiarism_safeassign_update_flag_parameters
(#95) There is no description in phpdocs for function plagiarism_safeassign_update_flag_returns
(#31) Invalid phpdocs tag @autor used
(#77) Invalid phpdocs tag @autor used
(#17) Invalid inline phpdocs tag @package found
(#18) Invalid inline phpdocs tag @author found
(#19) Invalid inline phpdocs tag @copyright found
(#20) Invalid inline phpdocs tag @license found
plagiarism/safeassign/lib.php
(#88) Phpdocs for function plagiarism_plugin_safeassign::get_links has incomplete parameters list
(#324) Phpdocs for function plagiarism_plugin_safeassign::is_supported_module has incomplete parameters list
(#533) Phpdocs for function plagiarism_plugin_safeassign::create_submission_record has incomplete parameters list
(#707) Phpdocs for function plagiarism_plugin_safeassign::sync_courses has incomplete parameters list
(#1077) Phpdocs for function plagiarism_plugin_safeassign::get_cmid has incomplete parameters list
(#1145) Phpdocs for function plagiarism_plugin_safeassign::resubmit_acknowlegment has incomplete parameters list
(#48) Phpdocs for variable plagiarism_plugin_safeassign::$supportedmodules does not contain @var or incorrect
(#65) Invalid phpdocs tag @returned used
(#677) Invalid phpdocs tag @returns used
(#692) Invalid phpdocs tag @returns used
plagiarism/safeassign/plagiarism_form.php
(#28) Class plagiarism_setup_form is not documented
plagiarism/safeassign/tests/base.php
(#22) Package is not specified for class plagiarism_safeassign_base_testcase. It is also not specified in file-level phpdocs
(#17) File-level phpdocs block is not found
(#27) Constant plagiarism_safeassign_base_testcase::PLUGIN is not documented
(#22) No one-line description found in phpdocs for class plagiarism_safeassign_base_testcase
(#29) There is no description in phpdocs for function reset_ws
(#39) There is no description in phpdocs for function config_set_ok
(#51) There is no description in phpdocs for function config_cleanup
(#22) Class plagiarism_safeassign_base_testcase does not have @copyright tag
(#22) Class plagiarism_safeassign_base_testcase does not have @license tag
plagiarism/safeassign/tests/behat/behat_plagiarism_safeassign.php
(#43) Variable behat_plagiarism_safeassign::$student is not documented
(#44) Variable behat_plagiarism_safeassign::$teacher is not documented
(#45) Variable behat_plagiarism_safeassign::$course is not documented
(#46) Variable behat_plagiarism_safeassign::$assignment is not documented
(#245) Variable behat_plagiarism_safeassign::$this is not documented
(#245) Variable behat_plagiarism_safeassign::$evaljs is not documented
(#48) There is no description in phpdocs for function i_am_on_the_course_with_shortname
(#58) There is no description in phpdocs for function set_test_helper_student
(#67) There is no description in phpdocs for function set_test_helper_teacher
(#76) There is no description in phpdocs for function set_test_helper_course_with_shortname
(#85) There is no description in phpdocs for function set_test_helper_assignment_with_name
(#94) There is no description in phpdocs for function i_send_a_submission_with_file
(#156) There is no description in phpdocs for function i_sync_submissions
(#167) There is no description in phpdocs for function submission_with_online_text_is_synced
(#222) There is no description in phpdocs for function i_follow_duplicate
(#235) There is no description in phpdocs for function safeassign_links_updated
plagiarism/safeassign/tests/lib_test.php
(#21) Category phpunit is not valid
(#34) Class plagiarism_safeassign_testcase is not documented
(#36) Variable plagiarism_safeassign_testcase::$user is not documented
plagiarism/safeassign/tests/safeassign_api_test.php
(#26) Package is not specified for class plagiarism_safeassign_safeassign_api_testcase. It is also not specified in file-level phpdocs
(#17) File-level phpdocs block is not found
(#35) Variable plagiarism_safeassign_safeassign_api_testcase::$user is not documented
(#37) There is no description in phpdocs for function setUp
(#44) There is no description in phpdocs for function create_login_url
(#66) There is no description in phpdocs for function create_course_url
(#193) There is no description in phpdocs for function test_login_configured_ok
(#204) There is no description in phpdocs for function test_login_fail
(#215) There is no description in phpdocs for function test_login_notconfigured_fail
(#226) There is no description in phpdocs for function test_create_course_ok
(#252) There is no description in phpdocs for function test_create_course_fail
(#280) There is no description in phpdocs for function test_put_delete_instructor_to_course_ok
(#318) There is no description in phpdocs for function test_put_instructor_to_course_fail_wrong_token
(#356) There is no description in phpdocs for function test_create_assignment_ok
(#387) There is no description in phpdocs for function test_create_assignment_fail
(#419) There is no description in phpdocs for function test_check_assignment_ok
(#456) There is no description in phpdocs for function test_check_assignment_fail
(#493) There is no description in phpdocs for function test_create_submission_ok
(#532) There is no description in phpdocs for function test_create_submission_fail
(#572) There is no description in phpdocs for function test_get_originality_report_basic_data_ok
(#613) There is no description in phpdocs for function test_get_originality_report_basic_data_fail
(#654) There is no description in phpdocs for function test_get_originality_report_ok
(#697) There is no description in phpdocs for function test_get_originality_report_fail
(#743) There is no description in phpdocs for function test_resubmit_file_ok
(#784) There is no description in phpdocs for function test_resubmit_file_fail
(#825) There is no description in phpdocs for function test_process_last_api_error_skip
(#847) There is no description in phpdocs for function test_process_last_api_error_process
(#45) Phpdocs for function plagiarism_safeassign_safeassign_api_testcase::create_login_url has incomplete parameters list
(#58) Phpdocs for function plagiarism_safeassign_safeassign_api_testcase::push_login_url has incomplete parameters list
(#79) Phpdocs for function plagiarism_safeassign_safeassign_api_testcase::attempt_login has incomplete parameters list
(#97) Phpdocs for function plagiarism_safeassign_safeassign_api_testcase::create_put_delete_instructor_url has incomplete parameters list
(#109) Phpdocs for function plagiarism_safeassign_safeassign_api_testcase::create_assignment_url has incomplete parameters list
(#26) Class plagiarism_safeassign_safeassign_api_testcase does not have @copyright tag
(#26) Class plagiarism_safeassign_safeassign_api_testcase does not have @license tag
(#31) Invalid phpdocs tag @group used
plagiarism/safeassign/tests/safeassign_api_test_with_handling_class.php
(#26) Package is not specified for class plagiarism_safeassign_safeassign_api_testcase_with_handling_class. It is also not specified in file-level phpdocs
(#17) File-level phpdocs block is not found
(#121) There is no description in phpdocs for function test_login_configured_ok
(#130) There is no description in phpdocs for function test_login_fail
(#139) There is no description in phpdocs for function test_login_notconfigured_fail
(#149) There is no description in phpdocs for function test_create_course_ok
(#169) There is no description in phpdocs for function test_create_course_fail
(#193) There is no description in phpdocs for function test_put_delete_instructor_to_course_ok
(#219) There is no description in phpdocs for function test_put_instructor_to_course_fail_wrong_token
(#245) There is no description in phpdocs for function test_create_assignment_ok
(#261) There is no description in phpdocs for function test_create_assignment_fail
(#277) There is no description in phpdocs for function test_check_assignment_ok
(#300) There is no description in phpdocs for function test_check_assignment_fail
(#322) There is no description in phpdocs for function test_create_submission_ok
(#341) There is no description in phpdocs for function test_create_submission_fail
(#361) There is no description in phpdocs for function test_get_originality_report_basic_data_ok
(#380) There is no description in phpdocs for function test_get_originality_report_basic_data_fail
(#399) There is no description in phpdocs for function test_get_originality_report_ok
(#420) There is no description in phpdocs for function test_get_originality_report_fail
(#444) There is no description in phpdocs for function test_resubmit_file_ok
(#464) There is no description in phpdocs for function test_resubmit_file_fail
(#484) There is no description in phpdocs for function test_process_last_api_error_skip
(#504) There is no description in phpdocs for function test_process_last_api_error_process
(#528) There is no description in phpdocs for function test_multi_login
(#26) Class plagiarism_safeassign_safeassign_api_testcase_with_handling_class does not have @copyright tag
(#26) Class plagiarism_safeassign_safeassign_api_testcase_with_handling_class does not have @license tag
(#31) Invalid phpdocs tag @group used
plagiarism/safeassign/tests/scores_task_test.php
(#21) Category phpunit is not valid
(#38) Class plagiarism_safeassign_tasks_testcase is not documented
(#40) Variable plagiarism_safeassign_tasks_testcase::$user is not documented
plagiarism/safeassign/tests/submission_test.php
(#24) Package is not specified for class plagiarism_safeassign_submission_test. It is also not specified in file-level phpdocs
(#17) File-level phpdocs block is not found
(#24) Class plagiarism_safeassign_submission_test is not documented
(#192) Function plagiarism_safeassign_submission_test::evaluate_safeassign_subm_recor is not documented
(#48) Constant plagiarism_safeassign_submission_test::GLOBALCHECK is not documented
plagiarism/safeassign/tests/sync_assignments_test.php
(#40) Class plagiarism_safeassign_sync_assignments_testcase is not documented
(#153) Function plagiarism_safeassign_sync_assignments_testcase::push_login_urls is not documented
(#374) Function plagiarism_safeassign_sync_assignments_testcase::set_safeassign_records is not documented
plagiarism/safeassign/version.php
(#17) No one-line description found in phpdocs for file
plagiarism/safeassign/view.php
(#33) Invalid phpdocs tag @noinspection used

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]

Task "stylelint:css" failed. Use --force to continue.
Problems running grunt

shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(1 errors, 0 warnings)

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

plagiarism/safeassign/templates/modal.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error