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

(0 errors, 0 warnings)

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


CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(246 errors, 0 warnings)

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

local/datacleaner/classes/clean.php
(#29) Class clean is not documented
(#30) Variable clean::$tasks is not documented
(#32) Variable clean::$options is not documented
(#34) Variable clean::$needscascadedelete is not documented
(#36) Variable clean::$step is not documented
(#38) Variable clean::$maxsteps is not documented
(#40) Variable clean::$exectime is not documented
(#17) No one-line description found in phpdocs for file
(#164) Phpdocs for function clean::get_user_criteria has incomplete parameters list
(#258) Phpdocs for function clean::get_user_chunk has incomplete parameters list
(#291) Phpdocs for function clean::get_courses_criteria has incomplete parameters list
local/datacleaner/classes/plugininfo/cleaner.php
(#29) Class cleaner is not documented
(#17) No one-line description found in phpdocs for file
(#95) Phpdocs for function cleaner::load_settings has incomplete parameters list
local/datacleaner/classes/schema_add_cascade_delete.php
(#30) Class schema_add_cascade_delete is not documented
(#31) Variable schema_add_cascade_delete::$constraintremovalqueries is not documented
(#33) Variable schema_add_cascade_delete::$unrelated is not documented
(#35) Variable schema_add_cascade_delete::$depth is not documented
(#37) Variable schema_add_cascade_delete::$numindices is not documented
(#39) Variable schema_add_cascade_delete::$numcascadedeletes is not documented
(#17) No one-line description found in phpdocs for file
(#240) Phpdocs for function schema_add_cascade_delete::execute has incomplete parameters list
local/datacleaner/classes/table_scrambler.php
(#131) Function table_scrambler::create_temporary_tables is not documented
(#142) Function table_scrambler::drop_temporary_tables is not documented
(#223) Function table_scrambler::scramble is not documented
(#43) Constant table_scrambler::TEMPORARY_TABLE_NAME_PREFIX is not documented
(#17) No one-line description found in phpdocs for file
(#158) There is no description in phpdocs for function get_fields_to_scramble
(#165) There is no description in phpdocs for function get_table
(#181) There is no description in phpdocs for function create_temporary_table
local/datacleaner/cleaner/completion/classes/clean.php
(#29) Class clean is not documented
(#32) Variable clean::$courses is not documented
(#33) Variable clean::$config is not documented
(#30) Constant clean::TASK is not documented
(#35) Phpdocs for function clean::__construct has incomplete parameters list
local/datacleaner/cleaner/config/classes/clean.php
(#28) Class clean is not documented
(#29) Constant clean::TASK is not documented
(#17) No one-line description found in phpdocs for file
local/datacleaner/cleaner/config/lang/en/cleaner_config.php
(#17) No one-line description found in phpdocs for file
local/datacleaner/cleaner/config/settings.php
(#17) No one-line description found in phpdocs for file
(#18) Package cleaner_courses is not valid
local/datacleaner/cleaner/config/tests/config_test.php
(#17) File-level phpdocs block does not have @copyright tag
(#29) Class cleaner_config_test does not have @copyright tag
(#17) File-level phpdocs block does not have @license tag
(#29) Class cleaner_config_test does not have @license tag
(#20) Package local_datacleaner is not valid
local/datacleaner/cleaner/config/version.php
(#17) No one-line description found in phpdocs for file
local/datacleaner/cleaner/core/classes/clean.php
(#28) Class clean is not documented
(#29) Constant clean::TASK is not documented
(#17) No one-line description found in phpdocs for file
local/datacleaner/cleaner/core/settings.php
(#17) No one-line description found in phpdocs for file
local/datacleaner/cleaner/core/version.php
(#17) No one-line description found in phpdocs for file
local/datacleaner/cleaner/courses/classes/clean.php
(#27) Class clean is not documented
(#29) Variable clean::$needscascadedelete is not documented
(#31) Variable clean::$courses is not documented
(#28) Constant clean::TASK is not documented
(#17) No one-line description found in phpdocs for file
(#33) Phpdocs for function clean::__construct has incomplete parameters list
(#47) Phpdocs for function clean::delete_courses has incomplete parameters list
local/datacleaner/cleaner/courses/settings.php
(#17) No one-line description found in phpdocs for file
local/datacleaner/cleaner/delete_users/classes/clean.php
(#28) Class clean is not documented
(#30) Variable clean::$needscascadedelete is not documented
(#29) Constant clean::TASK is not documented
(#17) No one-line description found in phpdocs for file
local/datacleaner/cleaner/delete_users/settings.php
(#17) No one-line description found in phpdocs for file
local/datacleaner/cleaner/grades/classes/clean.php
(#28) Class clean is not documented
(#29) Constant clean::TASK is not documented
(#17) No one-line description found in phpdocs for file
(#18) Package cleaner_delete_users is not valid
local/datacleaner/cleaner/grades/settings.php
(#17) No one-line description found in phpdocs for file
(#18) Package cleaner_delete_users is not valid
local/datacleaner/cleaner/logstore_standard/classes/clean.php
(#27) Class clean is not documented
(#30) Function clean::execute is not documented
(#28) Constant clean::TASK is not documented
(#17) No one-line description found in phpdocs for file
local/datacleaner/cleaner/logstore_standard/version.php
(#17) No one-line description found in phpdocs for file
local/datacleaner/cleaner/orphaned_sitedata/classes/backup_cleaner.php
(#43) Function backup_cleaner::__construct is not documented
(#47) Function backup_cleaner::execute is not documented
(#103) Function backup_cleaner::get_backup_files_sql is not documented
(#110) Function backup_cleaner::get_backups_files_count is not documented
(#41) Variable backup_cleaner::$dryrun is not documented
(#65) Phpdocs for function backup_cleaner::delete_backup_files has incomplete parameters list
local/datacleaner/cleaner/orphaned_sitedata/classes/cache_cleaner.php
(#44) Function cache_cleaner::__construct is not documented
(#48) Function cache_cleaner::execute is not documented
(#42) Variable cache_cleaner::$dryrun is not documented
local/datacleaner/cleaner/orphaned_sitedata/classes/clean.php
(#30) Class clean is not documented
(#38) Class , is not documented
(#39) Class , is not documented
(#40) Class , is not documented
(#41) Class , is not documented
(#33) Function clean::execute is not documented
(#31) Constant clean::TASK is not documented
(#17) No one-line description found in phpdocs for file
local/datacleaner/cleaner/orphaned_sitedata/classes/orphan_cleaner.php
(#50) Function orphan_cleaner::__construct is not documented
(#54) Function orphan_cleaner::execute is not documented
(#65) Function orphan_cleaner::delete_orphaned_files is not documented
(#83) Function orphan_cleaner::delete_orphaned_files_from is not documented
(#96) Function orphan_cleaner::delete_orphaned_files_by_first_hash_byte is not documented
(#127) Function orphan_cleaner::get_database_files_starting_with is not documented
(#44) Variable orphan_cleaner::$dryrun is not documented
(#46) Variable orphan_cleaner::$deletecount is not documented
(#48) Variable orphan_cleaner::$deletebytes is not documented
local/datacleaner/cleaner/orphaned_sitedata/classes/tempfiles_cleaner.php
(#42) Function tempfiles_cleaner::__construct is not documented
(#46) Function tempfiles_cleaner::execute is not documented
(#40) Variable tempfiles_cleaner::$dryrun is not documented
local/datacleaner/cleaner/orphaned_sitedata/settings.php
(#17) No one-line description found in phpdocs for file
local/datacleaner/cleaner/orphaned_sitedata/tests/unit/backup_cleaner_test.php
(#48) Function backup_cleaner_test::setUp is not documented
(#53) Function backup_cleaner_test::test_it_exists is not documented
(#58) Function backup_cleaner_test::test_it_does_nothing_if_no_backup_files_exist is not documented
(#63) Function backup_cleaner_test::test_it_removes_backup_files is not documented
(#71) Function backup_cleaner_test::test_it_does_not_remove_backup_files_in_dry_run is not documented
(#79) Function backup_cleaner_test::create_backup_file is not documented
(#84) Function backup_cleaner_test::get_files is not documented
(#46) Variable backup_cleaner_test::$initialfiles is not documented
(#36) Invalid phpdocs tag @SuppressWarnings(public) used
(#20) Package backup_cleaner_test is not valid
(#39) Package backup_cleaner_test is not valid
local/datacleaner/cleaner/orphaned_sitedata/tests/unit/cache_cleaner_test.php
(#46) Function cache_cleaner_test::test_it_exists is not documented
(#50) Function cache_cleaner_test::test_it_runs is not documented
(#57) Function cache_cleaner_test::test_it_runs_in_dry_mode is not documented
(#36) Invalid phpdocs tag @SuppressWarnings(public) used
(#20) Package cache_cleaner_test is not valid
(#39) Package cache_cleaner_test is not valid
local/datacleaner/cleaner/orphaned_sitedata/tests/unit/orphan_cleaner_test.php
(#46) Function orphan_cleaner_test::test_it_exists is not documented
(#50) Function orphan_cleaner_test::test_it_removes_orphaned_files is not documented
(#64) Function orphan_cleaner_test::test_it_does_not_remove_orphaned_files_in_dry_run is not documented
(#78) Function orphan_cleaner_test::test_it_does_not_remove_non_orphaned_files is not documented
(#89) Function orphan_cleaner_test::create_test_file is not documented
(#36) Invalid phpdocs tag @SuppressWarnings(public) used
(#20) Package orphan_cleaner_test is not valid
(#39) Package orphan_cleaner_test is not valid
local/datacleaner/cleaner/orphaned_sitedata/tests/unit/orphaned_sitedata_testcase.php
(#72) Class , is not documented
(#48) Function orphaned_sitedata_testcase::execute is not documented
(#56) Function orphaned_sitedata_testcase::create_file is not documented
(#70) Function orphaned_sitedata_testcase::get_pathname is not documented
(#38) Invalid phpdocs tag @SuppressWarnings(public) used
(#20) Package cache_cleaner_test is not valid
(#41) Package cache_cleaner_test is not valid
local/datacleaner/cleaner/orphaned_sitedata/tests/unit/tempfiles_cleaner_test.php
(#48) Function tempfiles_cleaner_test::test_it_exists is not documented
(#52) Function tempfiles_cleaner_test::test_it_removes_tempfiles is not documented
(#61) Function tempfiles_cleaner_test::test_it_removes_all_files_and_subdirs is not documented
(#76) Function tempfiles_cleaner_test::test_it_does_not_remove_tempfiles_in_dry_run is not documented
(#38) Invalid phpdocs tag @SuppressWarnings(public) used
(#20) Package cache_cleaner_test is not valid
(#41) Package cache_cleaner_test is not valid
local/datacleaner/cleaner/replace_urls/classes/clean.php
(#28) Class clean is not documented
(#31) Variable clean::$config is not documented
(#32) Variable clean::$tables is not documented
(#33) Variable clean::$skiptables is not documented
(#29) Constant clean::TASK is not documented
(#17) No one-line description found in phpdocs for file
(#35) Phpdocs for function clean::__construct has incomplete parameters list
local/datacleaner/cleaner/replace_urls/settings.php
(#17) No one-line description found in phpdocs for file
local/datacleaner/cleaner/replace_urls/version.php
(#17) No one-line description found in phpdocs for file
(#18) Package cleaner_replace is not valid
local/datacleaner/cleaner/sitedata/classes/clean.php
(#30) Class clean is not documented
(#33) Function clean::execute is not documented
(#31) Constant clean::TASK is not documented
(#17) No one-line description found in phpdocs for file
local/datacleaner/cleaner/sitedata/classes/supported_file_types.php
(#85) Variable cleaner_sitedata_supported_file_types::$supportedfiletypes is not documented
(#86) Variable cleaner_sitedata_supported_file_types::$placeholder is not documented
(#87) Variable cleaner_sitedata_supported_file_types::$defaultext is not documented
(#39) Constant cleaner_sitedata_supported_file_types::MIMETYPE_7Z is not documented
(#40) Constant cleaner_sitedata_supported_file_types::MIMETYPE_AVI is not documented
(#41) Constant cleaner_sitedata_supported_file_types::MIMETYPE_BZ is not documented
(#42) Constant cleaner_sitedata_supported_file_types::MIMETYPE_BZ2 is not documented
(#43) Constant cleaner_sitedata_supported_file_types::MIMETYPE_CSS is not documented
(#44) Constant cleaner_sitedata_supported_file_types::MIMETYPE_CSV is not documented
(#45) Constant cleaner_sitedata_supported_file_types::MIMETYPE_DOC is not documented
(#46) Constant cleaner_sitedata_supported_file_types::MIMETYPE_DOCX is not documented
(#47) Constant cleaner_sitedata_supported_file_types::MIMETYPE_FLV is not documented
(#48) Constant cleaner_sitedata_supported_file_types::MIMETYPE_GIF is not documented
(#49) Constant cleaner_sitedata_supported_file_types::MIMETYPE_GTAR is not documented
(#50) Constant cleaner_sitedata_supported_file_types::MIMETYPE_GZ is not documented
(#51) Constant cleaner_sitedata_supported_file_types::MIMETYPE_HTML is not documented
(#52) Constant cleaner_sitedata_supported_file_types::MIMETYPE_JPEG is not documented
(#53) Constant cleaner_sitedata_supported_file_types::MIMETYPE_JS is not documented
(#54) Constant cleaner_sitedata_supported_file_types::MIMETYPE_MOV is not documented
(#55) Constant cleaner_sitedata_supported_file_types::MIMETYPE_MP3 is not documented
(#56) Constant cleaner_sitedata_supported_file_types::MIMETYPE_MP4 is not documented
(#57) Constant cleaner_sitedata_supported_file_types::MIMETYPE_ODB is not documented
(#58) Constant cleaner_sitedata_supported_file_types::MIMETYPE_ODC is not documented
(#59) Constant cleaner_sitedata_supported_file_types::MIMETYPE_ODF is not documented
(#60) Constant cleaner_sitedata_supported_file_types::MIMETYPE_ODG is not documented
(#61) Constant cleaner_sitedata_supported_file_types::MIMETYPE_ODI is not documented
(#62) Constant cleaner_sitedata_supported_file_types::MIMETYPE_ODM is not documented
(#63) Constant cleaner_sitedata_supported_file_types::MIMETYPE_ODP is not documented
(#64) Constant cleaner_sitedata_supported_file_types::MIMETYPE_ODS is not documented
(#65) Constant cleaner_sitedata_supported_file_types::MIMETYPE_ODT is not documented
(#66) Constant cleaner_sitedata_supported_file_types::MIMETYPE_PDF is not documented
(#67) Constant cleaner_sitedata_supported_file_types::MIMETYPE_PNG is not documented
(#68) Constant cleaner_sitedata_supported_file_types::MIMETYPE_PPT is not documented
(#69) Constant cleaner_sitedata_supported_file_types::MIMETYPE_PPTX is not documented
(#70) Constant cleaner_sitedata_supported_file_types::MIMETYPE_RAR is not documented
(#71) Constant cleaner_sitedata_supported_file_types::MIMETYPE_RTF is not documented
(#72) Constant cleaner_sitedata_supported_file_types::MIMETYPE_SWF is not documented
(#73) Constant cleaner_sitedata_supported_file_types::MIMETYPE_TAR is not documented
(#74) Constant cleaner_sitedata_supported_file_types::MIMETYPE_TIF is not documented
(#75) Constant cleaner_sitedata_supported_file_types::MIMETYPE_TXT is not documented
(#76) Constant cleaner_sitedata_supported_file_types::MIMETYPE_WMV is not documented
(#77) Constant cleaner_sitedata_supported_file_types::MIMETYPE_XLS is not documented
(#78) Constant cleaner_sitedata_supported_file_types::MIMETYPE_XLSX is not documented
(#79) Constant cleaner_sitedata_supported_file_types::MIMETYPE_XML is not documented
(#80) Constant cleaner_sitedata_supported_file_types::MIMETYPE_ZIP is not documented
(#81) Constant cleaner_sitedata_supported_file_types::MIMETYPE_NONE is not documented
(#83) Constant cleaner_sitedata_supported_file_types::MIMETYPE_DEFAULT is not documented
(#17) No one-line description found in phpdocs for file
local/datacleaner/cleaner/sitedata/settings.php
(#17) No one-line description found in phpdocs for file
local/datacleaner/cleaner/users/classes/clean.php
(#31) Class clean is not documented
(#43) Function clean::execute is not documented
(#60) Function clean::create_user_id_list_to_update is not documented
(#95) Function clean::scramble_fields is not documented
(#111) Function clean::set_fixed_fields is not documented
(#32) Constant clean::PASSWORD_AFTER_CLEANING is not documented
(#33) Constant clean::TASK is not documented
(#34) Constant clean::USERNAME_PREFIX is not documented
(#17) No one-line description found in phpdocs for file
local/datacleaner/cleaner/users/settings.php
(#17) No one-line description found in phpdocs for file
(#18) Package cleaner_courses is not valid
local/datacleaner/cli/clean.php
(#17) No one-line description found in phpdocs for file
local/datacleaner/cli/lib.php
(#17) No one-line description found in phpdocs for file
(#61) Phpdocs for function safety_checks has incomplete parameters list
(#18) Package cleaner is not valid
local/datacleaner/cli/sitedata_file_list.php
(#17) No one-line description found in phpdocs for file
local/datacleaner/index.php
(#17) No one-line description found in phpdocs for file
local/datacleaner/lib.php
(#17) No one-line description found in phpdocs for file
(#18) Package cleaner is not valid
local/datacleaner/tests/unit/table_scrambler_test.php
(#181) Class ) is not documented
(#40) Function local_datacleaner_table_scrambler_test::provider_for_it_creates_sorted_temporary_tables is not documented
(#78) Function local_datacleaner_table_scrambler_test::provider_for_it_scrambles_names is not documented
(#99) Function local_datacleaner_table_scrambler_test::provider_for_the_next_prime_after is not documented
(#108) Function local_datacleaner_table_scrambler_test::provider_for_the_prime_factors is not documented
(#148) Function local_datacleaner_table_scrambler_test::test_it_requires_a_table_name_and_fields is not documented
(#180) Function local_datacleaner_table_scrambler_test::test_it_throws_an_exception_if_cannot_find_the_next_prime is not documented
(#185) Function local_datacleaner_table_scrambler_test::test_the_2_prime_factors_for_14351_are_113_127 is not documented
(#209) Function local_datacleaner_table_scrambler_test::create_test_data is not documented
(#234) Function local_datacleaner_table_scrambler_test::create_test_data_array is not documented
(#117) There is no description in phpdocs for function test_it_creates_sorted_temporary_tables
(#154) There is no description in phpdocs for function test_it_scrambles_names
(#193) There is no description in phpdocs for function test_the_next_prime_after
(#201) There is no description in phpdocs for function test_the_prime_factors
(#117) Phpdocs for function local_datacleaner_table_scrambler_test::test_it_creates_sorted_temporary_tables has incomplete parameters list
(#154) Phpdocs for function local_datacleaner_table_scrambler_test::test_it_scrambles_names has incomplete parameters list
(#193) Phpdocs for function local_datacleaner_table_scrambler_test::test_the_next_prime_after has incomplete parameters list
(#201) Phpdocs for function local_datacleaner_table_scrambler_test::test_the_prime_factors has incomplete parameters list
(#30) Invalid phpdocs tag @SuppressWarnings(public) 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

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