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

(6 errors, 10 warnings)

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

blocks/objectives/backup/moodle2/backup_objectives_block_task.class.php
(#19) Inline doc block comments are not allowed; use "// Comment." instead
blocks/objectives/backup/moodle2/restore_objectives_block_task.class.php
(#19) Inline doc block comments are not allowed; use "// Comment." instead
blocks/objectives/backup/moodle2/restore_objectives_stepslib.php
(#41) Line exceeds 132 characters; contains 175 characters
blocks/objectives/block_objectives.php
(#27) Visibility must be declared on method "applicable_formats"
(#35) Visibility must be declared on method "get_content"
(#51) Visibility must be declared on method "instance_allow_config"
blocks/objectives/edit_form.php
(#34) Visibility must be declared on method "set_data"
blocks/objectives/lib.php
(#390) Inline comments must start with a capital letter, digit or 3-dots sequence
(#498) Line exceeds 132 characters; contains 150 characters
(#584) Line exceeds 132 characters; contains 142 characters
(#701) Line exceeds 132 characters; contains 142 characters
(#878) Line exceeds 132 characters; contains 137 characters
(#881) Line exceeds 132 characters; contains 143 characters
(#885) Line exceeds 132 characters; contains 133 characters
(#888) Line exceeds 132 characters; contains 141 characters
blocks/objectives/version.php
(#24) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(4 errors, 16 warnings)

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

blocks/objectives/objectives.js
(#16) Identifier 'block_objectives' is not in camel case. (camelcase)
(#18) Identifier 'show_fullscreen' is not in camel case. (camelcase)
(#18) Unexpected space before function parentheses. (space-before-function-paren)
(#22) Identifier 'init_fullscreen' is not in camel case. (camelcase)
(#22) Unexpected space before function parentheses. (space-before-function-paren)
(#25) Line 25 exceeds the maximum line length of 132. (max-len)
(#28) Infix operators must be spaced. (space-infix-ops)
(#32) 'YAHOO' is not defined. (no-undef)
(#42) 'YAHOO' is not defined. (no-undef)
blocks/objectives/objectives24.js
(#16) Expected space or tab after '/*' in comment. (spaced-comment)
(#17) Expected space or tab after '/*' in comment. (spaced-comment)
(#18) Identifier 'block_objectives' is not in camel case. (camelcase)
(#20) Identifier 'show_fullscreen' is not in camel case. (camelcase)
(#20) Unexpected space before function parentheses. (space-before-function-paren)
(#25) Identifier 'init_fullscreen' is not in camel case. (camelcase)
(#25) Unexpected space before function parentheses. (space-before-function-paren)
(#29) Unexpected space before function parentheses. (space-before-function-paren)
(#30) Expected variable declaration to be on a new line. (one-var-declaration-per-line)
(#33) Line 33 exceeds the maximum line length of 132. (max-len)
(#36) Infix operators must be spaced. (space-infix-ops)

CSS problems

(2 errors, 0 warnings)

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

blocks/objectives/styles.css
(#3) Expected newline after "," (selector-list-comma-newline-after)
(#29) Expected newline after "," (selector-list-comma-newline-after)

PHPDocs style problems

(97 errors, 0 warnings)

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

blocks/objectives/backup/moodle2/backup_objectives_block_task.class.php
(#17) File-level phpdocs block is not found
(#36) Function backup_objectives_block_task::define_my_settings is not documented
(#39) Function backup_objectives_block_task::define_my_steps is not documented
(#44) Function backup_objectives_block_task::get_fileareas is not documented
(#48) Function backup_objectives_block_task::get_configdata_encoded_attributes is not documented
(#52) Function backup_objectives_block_task::encode_content_links is not documented
(#29) No one-line description found in phpdocs for class backup_objectives_block_task
(#29) Class backup_objectives_block_task does not have @copyright tag
(#29) Class backup_objectives_block_task does not have @license tag
(#29) Package is not specified for class backup_objectives_block_task. It is also not specified in file-level phpdocs
(#20) Package blocks is not valid
blocks/objectives/backup/moodle2/backup_objectives_stepslib.php
(#17) File-level phpdocs block is not found
(#35) Function backup_objectives_block_structure_step::define_structure is not documented
(#30) Class backup_objectives_block_structure_step does not have @copyright tag
(#30) Class backup_objectives_block_structure_step does not have @license tag
(#30) Package is not specified for class backup_objectives_block_structure_step. It is also not specified in file-level phpdocs
(#20) Package blocks is not valid
blocks/objectives/backup/moodle2/restore_objectives_block_task.class.php
(#17) File-level phpdocs block is not found
(#36) Function restore_objectives_block_task::define_my_settings is not documented
(#39) Function restore_objectives_block_task::define_my_steps is not documented
(#44) Function restore_objectives_block_task::get_fileareas is not documented
(#48) Function restore_objectives_block_task::get_configdata_encoded_attributes is not documented
(#52) Function restore_objectives_block_task::define_decode_contents is not documented
(#56) Function restore_objectives_block_task::define_decode_rules is not documented
(#29) No one-line description found in phpdocs for class restore_objectives_block_task
(#29) Class restore_objectives_block_task does not have @copyright tag
(#29) Class restore_objectives_block_task does not have @license tag
(#29) Package is not specified for class restore_objectives_block_task. It is also not specified in file-level phpdocs
(#20) Package moodlecore is not valid
blocks/objectives/backup/moodle2/restore_objectives_stepslib.php
(#35) Function restore_objectives_block_structure_step::define_structure is not documented
(#46) Function restore_objectives_block_structure_step::process_objectives is not documented
(#69) Function restore_objectives_block_structure_step::process_objectives_timetable is not documented
(#81) Function restore_objectives_block_structure_step::process_objectives_objective is not documented
(#17) No one-line description found in phpdocs for file
(#30) Class restore_objectives_block_structure_step does not have @copyright tag
(#30) Class restore_objectives_block_structure_step does not have @license tag
(#18) Package blocks is not valid
blocks/objectives/block_objectives.php
(#17) File-level phpdocs block is not found
(#21) Class block_objectives is not documented
(#23) Function block_objectives::init is not documented
(#27) Function block_objectives::applicable_formats is not documented
(#31) Function block_objectives::preferred_width is not documented
(#35) Function block_objectives::get_content is not documented
(#51) Function block_objectives::instance_allow_config is not documented
(#21) Package is not specified for class block_objectives. It is also not specified in file-level phpdocs
blocks/objectives/classes/event/objective_updated.php
(#84) Function objective_updated::validate_data is not documented
blocks/objectives/db/access.php
(#17) File-level phpdocs block is not found
blocks/objectives/db/upgrade.php
(#17) File-level phpdocs block is not found
(#19) Function xmldb_block_objectives_upgrade is not documented
(#19) Package is not specified for function xmldb_block_objectives_upgrade. It is also not specified in file-level phpdocs
blocks/objectives/edit.php
(#17) File-level phpdocs block is not found
blocks/objectives/edit_form.php
(#17) File-level phpdocs block is not found
(#19) Class block_objectives_edit_form is not documented
(#20) Function block_objectives_edit_form::specific_definition is not documented
(#34) Function block_objectives_edit_form::set_data is not documented
(#19) Package is not specified for class block_objectives_edit_form. It is also not specified in file-level phpdocs
blocks/objectives/lang/en/block_objectives.php
(#17) File-level phpdocs block is not found
blocks/objectives/lib.php
(#17) File-level phpdocs block is not found
(#21) Class block_objectives_class is not documented
(#845) Class block_objectives_timetable_form is not documented
(#917) Class block_objectives_objectives_form is not documented
(#27) Function block_objectives_class::__construct is not documented
(#51) Function block_objectives_class::get_settings is not documented
(#55) Function block_objectives_class::can_view_objectives is not documented
(#59) Function block_objectives_class::can_edit_objectives is not documented
(#63) Function block_objectives_class::can_edit_timetables is not documented
(#67) Function block_objectives_class::can_checkoff_objectives is not documented
(#72) Function block_objectives_class::ws2ts is not documented
(#78) Function block_objectives_class::ts2ws is not documented
(#122) Function block_objectives_class::getweekstart is not documented
(#141) Function block_objectives_class::addweek is not documented
(#148) Function block_objectives_class::getweekday is not documented
(#160) Function block_objectives_class::gettimenow is not documented
(#172) Function block_objectives_class::objectives_for_selected_group is not documented
(#214) Function block_objectives_class::groups_menu is not documented
(#234) Function block_objectives_class::get_block_text is not documented
(#410) Function block_objectives_class::log_update is not documented
(#423) Function block_objectives_class::get_block_footer is not documented
(#433) Function block_objectives_class::view_objectives is not documented
(#560) Function block_objectives_class::remove_checkedoff is not documented
(#564) Function block_objectives_class::add_not_checkedoff is not documented
(#568) Function block_objectives_class::edit_objectives is not documented
(#685) Function block_objectives_class::edit_timetables is not documented
(#828) Function block_objectives_class::print_header is not documented
(#839) Function block_objectives_class::print_footer is not documented
(#846) Function block_objectives_timetable_form::definition is not documented
(#918) Function block_objectives_objectives_form::definition is not documented
(#23) Variable block_objectives_class::$settings is not documented
(#24) Variable block_objectives_class::$context is not documented
(#25) Variable block_objectives_class::$course is not documented
(#802) Phpdocs for function block_objectives_class::make_timestamp has incomplete parameters list
(#21) Package is not specified for class block_objectives_class. It is also not specified in file-level phpdocs
(#845) Package is not specified for class block_objectives_timetable_form. It is also not specified in file-level phpdocs
(#917) Package is not specified for class block_objectives_objectives_form. It is also not specified in file-level phpdocs
blocks/objectives/tests/behat/behat_block_objectives.php
(#134) Function behat_block_objectives::timestring_to_timetable_timestamp is not documented
blocks/objectives/version.php
(#17) File-level phpdocs block is not found
blocks/objectives/view.php
(#17) File-level phpdocs block is not found

Update savepoints problems

(0 errors, 1 warnings)

This section shows problems detected with the handling of upgrade savepoints [More info]

blocks/objectives/db/upgrade.php
Detected less 'if' blocks (0) than 'savepoint' calls (3). Repeated savepoints?

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]