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, 13 warnings)

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

mod/flashcard/lang/fr/flashcard.php
(#184) The use of backticks in strings is not recommended
(#189) The use of backticks in strings is not recommended
(#204) The use of backticks in strings is not recommended
(#205) The use of backticks in strings is not recommended
(#207) The use of backticks in strings is not recommended
(#208) The use of backticks in strings is not recommended
(#220) The use of backticks in strings is not recommended
mod/flashcard/renderer.php
(#178) Line exceeds 132 characters; contains 133 characters
(#225) Line exceeds 132 characters; contains 133 characters
(#274) Line exceeds 132 characters; contains 137 characters
(#287) Line exceeds 132 characters; contains 135 characters
(#322) Line exceeds 132 characters; contains 137 characters
(#335) Line exceeds 132 characters; contains 135 characters

Javascript coding style problems

(88 errors, 10 warnings)

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

mod/flashcard/js/module.js
(#7) 'maxitems' is not defined. (no-undef)
(#8) 'i' is not defined. (no-undef)
(#8) 'i' is not defined. (no-undef)
(#8) 'maxitems' is not defined. (no-undef)
(#8) 'i' is not defined. (no-undef)
(#9) 'i' is not defined. (no-undef)
(#12) Missing JSDoc comment. (require-jsdoc)
(#12) 'clicked' is defined but never used. (no-unused-vars)
(#13) 'obj' is not defined. (no-undef)
(#14) 'obj' is not defined. (no-undef)
(#16) 'oldtype' is not defined. (no-undef)
(#18) 'oldtype' is not defined. (no-undef)
(#21) 'oldtype' is not defined. (no-undef)
(#24) 'atype' is not defined. (no-undef)
(#25) 'qtobj' is not defined. (no-undef)
(#26) 'qtobj' is not defined. (no-undef)
(#28) 'atype' is not defined. (no-undef)
(#29) 'api' is not defined. (no-undef)
(#29) 'flowplayer' is not defined. (no-undef)
(#30) 'api' is not defined. (no-undef)
(#34) 'qtype' is not defined. (no-undef)
(#34) 'atype' is not defined. (no-undef)
(#35) 'qtobj' is not defined. (no-undef)
(#36) 'qtobj' is not defined. (no-undef)
(#38) 'qtype' is not defined. (no-undef)
(#39) 'api' is not defined. (no-undef)
(#39) 'flowplayer' is not defined. (no-undef)
(#40) 'api' is not defined. (no-undef)
(#47) Missing JSDoc comment. (require-jsdoc)
(#47) Identifier 'next_card' is not in camel case. (camelcase)
(#48) 'currentitem' is not defined. (no-undef)
(#49) 'currentitem' is not defined. (no-undef)
(#51) 'currentitem' is not defined. (no-undef)
(#52) 'currentitem' is not defined. (no-undef)
(#52) 'maxitems' is not defined. (no-undef)
(#53) 'currentitem' is not defined. (no-undef)
(#55) 'currentitem' is not defined. (no-undef)
(#57) 'currentitem' is not defined. (no-undef)
(#58) 'qtobj' is not defined. (no-undef)
(#58) 'currentitem' is not defined. (no-undef)
(#59) 'qtobj' is not defined. (no-undef)
(#60) 'qtobj' is not defined. (no-undef)
(#64) Missing JSDoc comment. (require-jsdoc)
(#64) Identifier 'previous_card' is not in camel case. (camelcase)
(#64) 'previous_card' is defined but never used. (no-unused-vars)
(#65) 'currentitem' is not defined. (no-undef)
(#66) 'currentitem' is not defined. (no-undef)
(#68) 'currentitem' is not defined. (no-undef)
(#69) 'currentitem' is not defined. (no-undef)
(#70) 'currentitem' is not defined. (no-undef)
(#70) 'maxitems' is not defined. (no-undef)
(#72) 'currentitem' is not defined. (no-undef)
(#73) 'currentitem' is not defined. (no-undef)
(#74) 'qtobj' is not defined. (no-undef)
(#74) 'currentitem' is not defined. (no-undef)
(#75) 'qtobj' is not defined. (no-undef)
(#76) 'qtobj' is not defined. (no-undef)
(#80) Missing JSDoc comment. (require-jsdoc)
(#80) 'remove_card' is defined but never used. (no-unused-vars)
(#80) Identifier 'remove_card' is not in camel case. (camelcase)
(#81) 'remaining' is not defined. (no-undef)
(#82) 'remaining' is not defined. (no-undef)
(#83) 'remaining' is not defined. (no-undef)
(#84) 'currentitem' is not defined. (no-undef)
(#85) 'currentitem' is not defined. (no-undef)
(#91) 'currentitem' is not defined. (no-undef)
(#98) Missing JSDoc comment. (require-jsdoc)
(#98) 'togglecard' is defined but never used. (no-unused-vars)
(#107) 'atype' is not defined. (no-undef)
(#107) 'atype' is not defined. (no-undef)
(#108) 'bellobj' is not defined. (no-undef)
(#109) 'bellobj' is not defined. (no-undef)
(#110) 'bellobj' is not defined. (no-undef)
(#112) 'atype' is not defined. (no-undef)
(#113) '$' is not defined. (no-undef)
(#117) 'qtype' is not defined. (no-undef)
(#117) 'atype' is not defined. (no-undef)
(#118) 'bellobj' is not defined. (no-undef)
(#119) 'bellobj' is not defined. (no-undef)
(#121) 'qtype' is not defined. (no-undef)
(#122) '$' is not defined. (no-undef)
(#123) 'api' is defined but never used. (no-unused-vars)
(#124) Unexpected alert. (no-alert)
(#133) 'atype' is not defined. (no-undef)
(#133) 'atype' is not defined. (no-undef)
(#134) 'bellobj' is not defined. (no-undef)
(#135) 'bellobj' is not defined. (no-undef)
(#137) 'atype' is not defined. (no-undef)
(#138) '$' is not defined. (no-undef)
(#139) 'api' is defined but never used. (no-unused-vars)
(#140) Unexpected alert. (no-alert)
(#144) 'qtype' is not defined. (no-undef)
(#144) 'atype' is not defined. (no-undef)
(#145) 'bellobj' is not defined. (no-undef)
(#146) 'bellobj' is not defined. (no-undef)
(#147) 'bellobj' is not defined. (no-undef)
(#149) 'qtype' is not defined. (no-undef)
(#150) '$' is not defined. (no-undef)

CSS problems

(51 errors, 1 warnings)

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

mod/flashcard/styles.css
(#37) Expected newline before "}" of a multi-line block (block-closing-brace-newline-before)
(#42) Expected newline before "}" of a multi-line block (block-closing-brace-newline-before)
(#91) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#92) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#93) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#94) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#91) Unexpected single-line block (block-no-single-line)
(#92) Unexpected single-line block (block-no-single-line)
(#93) Unexpected single-line block (block-no-single-line)
(#94) Unexpected single-line block (block-no-single-line)
(#11) Expected single space before "{" (block-opening-brace-space-before)
(#16) Expected single space before "{" (block-opening-brace-space-before)
(#20) Expected single space before "{" (block-opening-brace-space-before)
(#26) Expected single space before "{" (block-opening-brace-space-before)
(#30) Expected single space before "{" (block-opening-brace-space-before)
(#35) Expected single space before "{" (block-opening-brace-space-before)
(#40) Expected single space before "{" (block-opening-brace-space-before)
(#45) Expected single space before "{" (block-opening-brace-space-before)
(#55) Expected single space before "{" (block-opening-brace-space-before)
(#65) Expected single space before "{" (block-opening-brace-space-before)
(#75) Expected single space before "{" (block-opening-brace-space-before)
(#96) Expected single space before "{" (block-opening-brace-space-before)
(#100) Expected single space before "{" (block-opening-brace-space-before)
(#23) Expected "#0B2386" to be "#0b2386" (color-hex-case)
(#4) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#91) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#92) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#93) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#94) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#36) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#41) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#46) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#51) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#56) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#61) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#66) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#71) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#76) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#81) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#88) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#105) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#109) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#113) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#114) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#115) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#119) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#109) Unexpected !important (declaration-no-important)
(#12) Expected indentation of 4 spaces (indentation)
(#13) Expected indentation of 4 spaces (indentation)
(#101) Expected indentation of 4 spaces (indentation)
(#37) Unexpected whitespace at end of line (no-eol-whitespace)
(#42) Unexpected whitespace at end of line (no-eol-whitespace)

PHPDocs style problems

(179 errors, 8 warnings)

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

mod/flashcard/backup/moodle1/lib.php
(#78) Phpdocs for function moodle1_mod_flashcard_handler::process_flashcard has incomplete parameters list
(#114) Phpdocs for function moodle1_mod_flashcard_handler::process_flashcard_deckdata has incomplete parameters list
(#28) Class moodle1_mod_flashcard_handler does not have @copyright tag
(#28) Class moodle1_mod_flashcard_handler does not have @license tag
(#20) Package mod is not valid
mod/flashcard/backup/moodle2/backup_flashcard_activity_task.class.php
(#28) Class backup_flashcard_activity_task is not documented
(#30) Function backup_flashcard_activity_task::define_my_settings is not documented
(#34) Function backup_flashcard_activity_task::define_my_steps is not documented
(#38) Function backup_flashcard_activity_task::encode_content_links is not documented
(#17) No one-line description found in phpdocs for file
(#17) File-level phpdocs block does not have @copyright tag
(#19) Category mod is not valid
mod/flashcard/backup/moodle2/backup_flashcard_stepslib.php
(#26) Class backup_flashcard_activity_structure_step is not documented
(#28) Function backup_flashcard_activity_structure_step::define_structure is not documented
(#17) No one-line description found in phpdocs for file
(#17) File-level phpdocs block does not have @copyright tag
(#19) Category mod is not valid
mod/flashcard/backup/moodle2/restore_flashcard_activity_task.class.php
(#28) Class restore_flashcard_activity_task is not documented
(#30) Function restore_flashcard_activity_task::define_my_settings is not documented
(#34) Function restore_flashcard_activity_task::define_my_steps is not documented
(#38) Function restore_flashcard_activity_task::define_decode_contents is not documented
(#46) Function restore_flashcard_activity_task::define_decode_rules is not documented
(#57) Function restore_flashcard_activity_task::define_restore_log_rules is not documented
(#17) No one-line description found in phpdocs for file
(#17) File-level phpdocs block does not have @copyright tag
(#19) Category mod is not valid
mod/flashcard/backup/moodle2/restore_flashcard_stepslib.php
(#26) Class restore_flashcard_activity_structure_step is not documented
(#28) Function restore_flashcard_activity_structure_step::define_structure is not documented
(#42) Function restore_flashcard_activity_structure_step::process_flashcard is not documented
(#64) Function restore_flashcard_activity_structure_step::process_flashcard_deck is not documented
(#86) Function restore_flashcard_activity_structure_step::process_flashcard_card is not documented
(#101) Function restore_flashcard_activity_structure_step::process_flashcard_deckstate is not documented
(#115) Function restore_flashcard_activity_structure_step::after_execute is not documented
(#17) No one-line description found in phpdocs for file
(#17) File-level phpdocs block does not have @copyright tag
(#19) Category mod is not valid
mod/flashcard/cardsummaryview.php
(#17) File-level phpdocs block does not have @copyright tag
(#23) Invalid phpdocs tag @contributors used
(#21) Category mod is not valid
mod/flashcard/checkview.php
(#17) File-level phpdocs block does not have @copyright tag
(#23) Invalid phpdocs tag @contributors used
(#24) Not recommended phpdocs tag @version used
(#21) Category mod is not valid
mod/flashcard/classes/event/course_module_edited.php
(#27) Class course_module_edited does not have @copyright tag
(#27) Class course_module_edited does not have @license tag
mod/flashcard/classes/event/course_module_freeplayed.php
(#28) Class course_module_freeplayed does not have @copyright tag
(#28) Class course_module_freeplayed does not have @license tag
(#20) Package mod_feedback is not valid
mod/flashcard/classes/event/course_module_instance_list_viewed.php
(#28) Class course_module_instance_list_viewed does not have @copyright tag
(#28) Class course_module_instance_list_viewed does not have @license tag
mod/flashcard/classes/event/course_module_managed.php
(#28) Class course_module_managed does not have @copyright tag
(#28) Class course_module_managed does not have @license tag
(#20) Package mod_feedback is not valid
mod/flashcard/classes/event/course_module_played.php
(#28) Class course_module_played does not have @copyright tag
(#28) Class course_module_played does not have @license tag
mod/flashcard/classes/event/course_module_viewed.php
(#28) Class course_module_viewed does not have @copyright tag
(#28) Class course_module_viewed does not have @license tag
(#20) Package mod_feedback is not valid
mod/flashcard/classes/event/course_module_viewed_summary.php
(#28) Class course_module_viewed_summary does not have @copyright tag
(#28) Class course_module_viewed_summary does not have @license tag
mod/flashcard/db/access.php
(#17) No one-line description found in phpdocs for file
(#17) File-level phpdocs block does not have @copyright tag
(#17) File-level phpdocs block does not have @license tag
(#18) Package mod-flashcard is not valid
(#19) Category mod is not valid
mod/flashcard/db/upgrade.php
(#25) Function xmldb_flashcard_upgrade is not documented
(#401) Function convert_flashcard_file is not documented
(#450) Function process_flashcard_file is not documented
(#17) No one-line description found in phpdocs for file
(#17) File-level phpdocs block does not have @copyright tag
(#17) File-level phpdocs block does not have @license tag
(#18) Package mod-flashcard is not valid
(#19) Category mod is not valid
mod/flashcard/editview.php
(#17) File-level phpdocs block does not have @copyright tag
(#23) Invalid phpdocs tag @contributors used
(#21) Category mod is not valid
mod/flashcard/editview_form.php
(#29) Class CardEdit_Form is not documented
(#31) Function CardEdit_Form::definition is not documented
(#74) Phpdocs for function CardEdit_Form::build_card_element has incomplete parameters list
(#105) Phpdocs for function CardEdit_Form::set_data has incomplete parameters list
(#133) Phpdocs for function CardEdit_Form::setup_card_filearea has incomplete parameters list
(#17) File-level phpdocs block does not have @copyright tag
(#21) Category mod is not valid
mod/flashcard/freeplayview.php
(#17) File-level phpdocs block does not have @copyright tag
(#17) File-level phpdocs block does not have @license tag
(#21) Category mod is not valid
mod/flashcard/import_form.php
(#29) Class flashcard_import_form is not documented
(#31) Function flashcard_import_form::definition is not documented
(#17) File-level phpdocs block does not have @copyright tag
(#21) Category mod is not valid
mod/flashcard/index.php
(#17) File-level phpdocs block does not have @copyright tag
(#21) Category mod is not valid
mod/flashcard/lang/en/flashcard.php
(#21) Category mod is not valid
mod/flashcard/lang/eu/flashcard.php
(#21) Category mod is not valid
mod/flashcard/lang/fr/flashcard.php
(#21) Category mod is not valid
mod/flashcard/lib.php
(#87) Phpdocs for function flashcard_add_instance has incomplete parameters list
(#127) Phpdocs for function flashcard_update_instance has incomplete parameters list
(#168) Phpdocs for function flashcard_delete_instance has incomplete parameters list
(#202) Phpdocs for function flashcard_user_outline has incomplete parameters list
(#263) Phpdocs for function flashcard_scale_used_anywhere has incomplete parameters list
(#392) Phpdocs for function flashcard_grades has incomplete parameters list
(#405) Phpdocs for function flashcard_get_participants has incomplete parameters list
(#436) Phpdocs for function flashcard_scale_used has incomplete parameters list
(#590) Phpdocs for function flashcard_reset_userdata has incomplete parameters list
(#626) Phpdocs for function flashcard_reset_course_form_definition has incomplete parameters list
(#633) Phpdocs for function flashcard_reset_course_form_defaults has incomplete parameters list
(#17) File-level phpdocs block does not have @copyright tag
(#17) File-level phpdocs block does not have @license tag
(#22) Invalid phpdocs tag @contributors used
(#513) Not recommended phpdocs tag @global used
(#513) Not recommended phpdocs tag @global used
(#588) Not recommended phpdocs tag @global used
(#588) Not recommended phpdocs tag @global used
(#20) Category mod is not valid
mod/flashcard/locallib.php
(#306) Function flashcard_mp3_dewplayer is not documented
(#326) Function flashcard_flowplayer is not documented
(#347) Function flashcard_delete_attached_files is not documented
(#390) Function flashcard_save_draft_customimage is not documented
(#414) Function flashcard_get_file_url is not documented
(#277) Phpdocs for function flashcard_mp3_player has incomplete parameters list
(#17) File-level phpdocs block does not have @copyright tag
(#17) File-level phpdocs block does not have @license tag
(#70) Invalid phpdocs tag @ues used
(#279) Invalid phpdocs tag @TODO used
(#20) Category mod is not valid
mod/flashcard/mailtemplatelib.php
(#17) No one-line description found in phpdocs for file
(#34) Phpdocs for function flashcard_compile_mail_template has incomplete parameters list
(#55) Phpdocs for function flashcard_get_mail_template has incomplete parameters list
(#17) File-level phpdocs block does not have @copyright tag
(#27) Invalid phpdocs tag @date used
(#24) Package extralibs is not valid
(#25) Category third-party libs is not valid
mod/flashcard/managecards.php
(#17) No one-line description found in phpdocs for file
(#17) File-level phpdocs block does not have @copyright tag
(#17) File-level phpdocs block does not have @license tag
(#18) Package mod_flashbard is not valid
(#19) Category mod is not valid
mod/flashcard/manageview.controller.php
(#17) File-level phpdocs block does not have @copyright tag
(#26) Invalid phpdocs tag @usecase used
(#26) Invalid phpdocs tag @usecase used
(#26) Invalid phpdocs tag @usecase used
(#26) Invalid phpdocs tag @usecase used
(#26) Invalid phpdocs tag @usecase used
(#21) Category mod is not valid
mod/flashcard/mod_form.php
(#40) Function mod_flashcard_mod_form::definition is not documented
(#74) Function mod_flashcard_mod_form::drop_questions is not documented
(#229) Function mod_flashcard_mod_form::add_completion_rules is not documented
(#250) Function mod_flashcard_mod_form::completion_rule_enabled is not documented
(#255) Function mod_flashcard_mod_form::data_preprocessing is not documented
(#270) Function mod_flashcard_mod_form::set_data is not documented
(#324) Function mod_flashcard_mod_form::get_data is not documented
(#354) Function mod_flashcard_mod_form::validation is not documented
(#38) Variable mod_flashcard_mod_form::$currentfiles is not documented
(#17) File-level phpdocs block does not have @copyright tag
(#33) Class mod_flashcard_mod_form does not have @copyright tag
(#33) Class mod_flashcard_mod_form does not have @license tag
(#25) Not recommended phpdocs tag @version used
(#21) Category mod is not valid
mod/flashcard/playview.controller.php
(#17) File-level phpdocs block does not have @copyright tag
(#26) Invalid phpdocs tag @usecase used
(#26) Invalid phpdocs tag @usecase used
(#26) Invalid phpdocs tag @usecase used
(#26) Invalid phpdocs tag @usecase used
(#24) Not recommended phpdocs tag @version used
(#21) Category mod is not valid
mod/flashcard/playview.php
(#17) File-level phpdocs block does not have @copyright tag
(#21) Category mod is not valid
mod/flashcard/renderer.php
(#31) Class mod_flashcard_renderer is not documented
(#33) Function mod_flashcard_renderer::filepicker is not documented
(#503) Function mod_flashcard_renderer::play_video is not documented
(#539) Function mod_flashcard_renderer::print_custom_url is not documented
(#598) Function mod_flashcard_renderer::playview is not documented
(#714) Function mod_flashcard_renderer::finishtable is not documented
(#729) Function mod_flashcard_renderer::freebuttons is not documented
(#780) Function mod_flashcard_renderer::check_decks is not documented
(#104) Phpdocs for function mod_flashcard_renderer::print_deck has incomplete parameters list
(#410) Phpdocs for function mod_flashcard_renderer::print_image has incomplete parameters list
(#451) Phpdocs for function mod_flashcard_renderer::play_sound has incomplete parameters list
(#17) File-level phpdocs block does not have @copyright tag
(#19) Category mod is not valid
mod/flashcard/usersummaryview.php
(#17) File-level phpdocs block does not have @copyright tag
(#23) Invalid phpdocs tag @contributors used
(#25) Not recommended phpdocs tag @version used
(#21) Category mod is not valid
mod/flashcard/version.php
(#21) Category mod is not valid
mod/flashcard/view.php
(#17) File-level phpdocs block does not have @copyright tag
(#21) Category mod is not valid

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

(0 errors, 0 warnings)

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