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

(1 errors, 141 warnings)

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

blocks/xp/classes/form/rule.php
(#58) Missing docblock for function get_context_for_dynamic_submission
(#62) Missing docblock for function check_access_for_dynamic_submission
(#69) Missing docblock for function process_dynamic_submission
(#76) Missing docblock for function set_data_for_dynamic_submission
(#83) Missing docblock for function get_page_url_for_dynamic_submission
(#114) Missing docblock for function validation
blocks/xp/classes/local/controller/admin_levels_controller.php
(#51) Missing docblock for function define_optional_params
(#58) Missing docblock for function post_login
(#63) Missing docblock for function pre_content
(#77) Missing docblock for function content
(#111) Missing docblock for function get_react_module
blocks/xp/classes/local/controller/admin_rules_controller.php
(#49) Missing docblock for function define_optional_params
(#57) Missing docblock for function pre_content
(#206) Missing docblock for function page_plus_promo_content
(#214) Missing docblock for function page_rules_content
blocks/xp/classes/local/controller/admin_visuals_controller.php
(#53) Missing docblock for function define_optional_params
(#120) Missing docblock for function pre_content
blocks/xp/classes/local/controller/completion_rules_controller.php
(#47) Missing docblock for function pre_content
(#53) Missing docblock for function get_page_html_head_title
(#57) Missing docblock for function get_page_heading
(#61) Missing docblock for function page_content
blocks/xp/classes/local/controller/config_controller.php
(#81) Missing docblock for function pre_content
(#96) Missing docblock for function get_page_html_head_title
(#100) Missing docblock for function get_page_heading
(#104) Missing docblock for function page_content
(#110) Missing docblock for function page_note
blocks/xp/classes/local/controller/drops_controller.php
(#46) Missing docblock for function pre_content
(#52) Missing docblock for function get_page_html_head_title
(#56) Missing docblock for function get_page_heading
(#60) Missing docblock for function page_content
blocks/xp/classes/local/controller/grade_rules_controller.php
(#46) Missing docblock for function pre_content
(#52) Missing docblock for function get_page_html_head_title
(#56) Missing docblock for function get_page_heading
(#60) Missing docblock for function page_content
blocks/xp/classes/local/controller/import_controller.php
(#47) Missing docblock for function pre_content
(#53) Missing docblock for function get_page_html_head_title
(#57) Missing docblock for function get_page_heading
(#61) Missing docblock for function page_content
blocks/xp/classes/local/controller/infos_controller.php
(#54) Missing docblock for function permissions_checks
(#61) Missing docblock for function define_optional_params
(#67) Missing docblock for function pre_content
(#81) Missing docblock for function get_form
(#88) Missing docblock for function get_page_html_head_title
(#92) Missing docblock for function get_page_heading
(#96) Missing docblock for function page_content
blocks/xp/classes/local/controller/ladder_controller.php
(#50) Missing docblock for function permissions_checks
(#57) Missing docblock for function page_setup
(#106) Missing docblock for function get_page_html_head_title
(#110) Missing docblock for function get_page_heading
(#153) Missing docblock for function page_content
blocks/xp/classes/local/controller/levels_controller.php
(#47) Missing docblock for function define_optional_params
(#54) Missing docblock for function pre_content
(#67) Missing docblock for function get_page_html_head_title
(#71) Missing docblock for function get_page_heading
(#75) Missing docblock for function get_react_module
(#108) Missing docblock for function get_reset_url
(#112) Missing docblock for function page_content
(#130) Missing docblock for function page_danger_zone_content
blocks/xp/classes/local/controller/log_controller.php
(#54) Missing docblock for function permissions_checks
(#62) Missing docblock for function define_optional_params
(#68) Missing docblock for function get_table
(#78) Missing docblock for function get_page_html_head_title
(#82) Missing docblock for function get_page_heading
(#102) Missing docblock for function page_content
blocks/xp/classes/local/controller/promo_controller.php
(#63) Missing docblock for function define_optional_params
(#79) Missing docblock for function require_login
(#103) Missing docblock for function post_login
(#139) Missing docblock for function content
(#281) Missing docblock for function content_installed
blocks/xp/classes/local/controller/report_controller.php
(#55) Missing docblock for function define_optional_params
(#66) Missing docblock for function permissions_checks
(#74) Missing docblock for function pre_content
(#120) Missing docblock for function get_page_html_head_title
(#124) Missing docblock for function get_page_heading
(#128) Missing docblock for function get_form
(#138) Missing docblock for function get_table
(#185) Missing docblock for function page_content
blocks/xp/classes/local/controller/rules_controller.php
(#56) Missing docblock for function define_optional_params
(#63) Missing docblock for function post_login
(#70) Missing docblock for function pre_content
(#91) Missing docblock for function handle_save
(#96) Missing docblock for function save_filters
(#100) Missing docblock for function get_page_html_head_title
(#104) Missing docblock for function get_page_heading
(#174) Missing docblock for function page_content
(#194) Missing docblock for function page_plus_promo_content
(#197) Missing docblock for function page_rules_content
(#210) Missing docblock for function page_danger_zone_content
blocks/xp/classes/local/controller/visuals_controller.php
(#56) Missing docblock for function define_optional_params
(#106) Missing docblock for function pre_content
(#181) Missing docblock for function get_page_html_head_title
(#185) Missing docblock for function get_page_heading
(#189) Missing docblock for function page_content
(#224) Missing docblock for function page_danger_zone_content
blocks/xp/classes/local/course_world.php
(#102) Missing docblock for function get_access_permissions
(#106) Missing docblock for function get_config
(#110) Missing docblock for function get_collection_strategy
(#172) Missing docblock for function get_levels_info
(#235) Missing docblock for function get_store
blocks/xp/classes/local/rule/static_instance.php
(#54) Missing docblock for function get_id
(#58) Missing docblock for function get_context
(#65) Missing docblock for function get_child_context
(#75) Missing docblock for function get_points
(#79) Missing docblock for function get_type_name
(#83) Missing docblock for function get_filter_name
(#87) Missing docblock for function get_filter_config
blocks/xp/classes/local/rulefilter/any.php
(#41) Missing docblock for function get_action_tester
(#45) Missing docblock for function get_compatible_context_levels
(#49) Missing docblock for function get_display_name
(#53) Missing docblock for function get_label_for_config
(#57) Missing docblock for function get_short_description
(#61) Missing docblock for function is_compatible_with_admin
(#65) Missing docblock for function is_multiple_allowed
blocks/xp/classes/local/setting/compatibility_check_setting.php
(#62) Inline comments must start with a capital letter, digit or 3-dots sequence
blocks/xp/classes/local/xp/algo_levels_info.php
(#78) @deprecated tag is not allowed in member variable comment
blocks/xp/classes/local/xp/anonymised_user_state.php
(#57) Missing docblock for function get_id
(#61) Missing docblock for function get_link
(#65) Missing docblock for function get_name
(#69) Missing docblock for function get_picture
(#73) Missing docblock for function get_level
(#77) Missing docblock for function get_ratio_in_level
(#81) Missing docblock for function get_total_xp_in_level
(#85) Missing docblock for function get_user
(#89) Missing docblock for function get_xp
(#93) Missing docblock for function get_xp_in_level
blocks/xp/classes/local/xp/static_level.php
(#51) Missing docblock for function __construct
(#64) Missing docblock for function get_level
(#68) Missing docblock for function get_xp_required
(#72) Missing docblock for function get_badge_url
(#76) Missing docblock for function get_description
(#80) Missing docblock for function get_name
blocks/xp/classes/local/xp/user_state.php
(#71) Missing docblock for function get_id
(#75) Missing docblock for function get_level
(#82) Missing docblock for function get_link
(#91) Missing docblock for function get_name
(#95) Missing docblock for function get_picture
(#99) Missing docblock for function get_ratio_in_level
(#107) Missing docblock for function get_total_xp_in_level
(#126) Missing docblock for function get_xp
(#130) Missing docblock for function get_xp_in_level
blocks/xp/tests/php_test.php
(#49) Data provider method "php_files_provider" must return an array, a Generator or an Iterable.
(#83) Test method test_file_inclusion() is missing a return type

CSS problems

(162 errors, 34 warnings)

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

blocks/xp/styles.css
(#413) Expected empty line before at-rule (at-rule-empty-line-before)
(#437) Expected empty line before at-rule (at-rule-empty-line-before)
(#447) Expected empty line before at-rule (at-rule-empty-line-before)
(#457) Expected empty line before at-rule (at-rule-empty-line-before)
(#471) Expected empty line before at-rule (at-rule-empty-line-before)
(#485) Expected empty line before at-rule (at-rule-empty-line-before)
(#498) Expected empty line before at-rule (at-rule-empty-line-before)
(#1586) Expected empty line before at-rule (at-rule-empty-line-before)
(#1596) Expected empty line before at-rule (at-rule-empty-line-before)
(#1650) Expected empty line before at-rule (at-rule-empty-line-before)
(#20) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#21) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#22) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#24) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#25) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#26) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#27) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#28) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#29) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#30) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#31) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#32) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#40) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#41) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#42) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#43) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#44) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#45) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#46) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#47) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#48) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#49) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#50) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#51) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#52) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#53) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#54) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#55) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#56) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#57) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#70) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#71) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#72) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#74) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#75) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#76) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#77) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#78) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#79) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#80) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#81) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#82) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#90) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#91) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#92) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#93) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#94) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#95) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#96) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#97) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#98) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#99) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#100) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#101) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#102) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#103) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#104) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#105) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#106) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#107) Unexpected whitespace before ";" (declaration-block-semicolon-space-before)
(#20) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#21) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#22) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#24) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#25) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#26) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#27) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#28) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#29) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#30) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#31) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#32) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#40) 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)
(#42) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#43) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#44) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#45) 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)
(#47) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#48) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#49) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#50) 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)
(#52) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#53) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#54) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#55) 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)
(#57) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#70) 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)
(#72) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#74) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#75) 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)
(#77) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#78) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#79) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#80) 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)
(#82) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#90) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#91) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#92) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#93) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#94) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#95) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#96) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#97) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#98) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#99) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#100) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#101) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#102) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#103) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#104) 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)
(#106) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#107) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#195) Unexpected !important (declaration-no-important)
(#1156) Unexpected !important (declaration-no-important)
(#1280) Unexpected !important (declaration-no-important)
(#1504) Unexpected !important (declaration-no-important)
(#33) Unexpected unit (length-zero-no-unit)
(#83) Unexpected unit (length-zero-no-unit)
(#136) Unexpected unit (length-zero-no-unit)
(#139) Unexpected unit (length-zero-no-unit)
(#140) Unexpected unit (length-zero-no-unit)
(#149) Unexpected unit (length-zero-no-unit)
(#155) Unexpected unit (length-zero-no-unit)
(#158) Unexpected unit (length-zero-no-unit)
(#176) Unexpected unit (length-zero-no-unit)
(#231) Unexpected unit (length-zero-no-unit)
(#598) Unexpected unit (length-zero-no-unit)
(#615) Unexpected unit (length-zero-no-unit)
(#690) Unexpected unit (length-zero-no-unit)
(#739) Unexpected unit (length-zero-no-unit)
(#740) Unexpected unit (length-zero-no-unit)
(#759) Unexpected unit (length-zero-no-unit)
(#938) Unexpected unit (length-zero-no-unit)
(#1099) Unexpected unit (length-zero-no-unit)
(#1106) Unexpected unit (length-zero-no-unit)
(#1116) Unexpected unit (length-zero-no-unit)
(#1504) Unexpected unit (length-zero-no-unit)
(#1557) Unexpected unit (length-zero-no-unit)
(#1673) Unexpected unit (length-zero-no-unit)
(#1677) Unexpected unit (length-zero-no-unit)
(#1681) Unexpected unit (length-zero-no-unit)
(#1696) Unexpected unit (length-zero-no-unit)
(#1708) Unexpected unit (length-zero-no-unit)
(#1709) Unexpected unit (length-zero-no-unit)
(#1712) Unexpected unit (length-zero-no-unit)
(#400) Expected line length to be no more than 132 characters (max-line-length)
(#404) Expected line length to be no more than 132 characters (max-line-length)
(#408) Expected line length to be no more than 132 characters (max-line-length)
(#411) Expected line length to be no more than 132 characters (max-line-length)
(#10) Expected newline after "," (selector-list-comma-newline-after)
(#10) Expected newline after "," (selector-list-comma-newline-after)
(#449) Expected newline after "," (selector-list-comma-newline-after)
(#477) Expected newline after "," (selector-list-comma-newline-after)
(#1305) Expected newline after "," (selector-list-comma-newline-after)
(#557) Expected indentation of 4 spaces (indentation)
(#994) Expected indentation of 4 spaces (indentation)
(#996) Expected indentation of 4 spaces (indentation)
(#1053) Expected indentation of 4 spaces (indentation)
(#1054) Expected indentation of 4 spaces (indentation)
(#1306) Expected indentation of 0 spaces (indentation)
blocks/xp/css/styles.css
(#10) Unknown at-rule `@tailwind` (csstree/validator)
(#11) Unknown at-rule `@tailwind` (csstree/validator)
(#12) Unknown at-rule `@tailwind` (csstree/validator)
(#31) Unknown at-rule `@apply` (csstree/validator)
(#87) Unknown at-rule `@apply` (csstree/validator)
(#123) Unknown at-rule `@apply` (csstree/validator)
(#126) Unknown at-rule `@apply` (csstree/validator)
(#129) Unknown at-rule `@apply` (csstree/validator)
(#135) Unknown at-rule `@apply` (csstree/validator)
(#136) Unknown at-rule `@apply` (csstree/validator)
(#139) Unknown at-rule `@apply` (csstree/validator)
(#172) Unknown at-rule `@apply` (csstree/validator)
(#515) Unknown at-rule `@apply` (csstree/validator)
(#520) Unknown at-rule `@apply` (csstree/validator)
(#296) Unexpected !important (declaration-no-important)
(#129) Expected line length to be no more than 132 characters (max-line-length)
(#321) Expected newline after "," (selector-list-comma-newline-after)
(#322) Expected indentation of 0 spaces (indentation)

PHPDocs style problems

(1 errors, 0 warnings)

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

blocks/xp/tests/php_test.php
(#74) Phpdocs for function php_test::test_file_inclusion 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 "stylelint:css" 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, 2 warnings)

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

blocks/xp/templates/completion-rules-scope-switcher.mustache
(#1) ESLint error [semi]: Missing semicolon. ( })
blocks/xp/templates/level-badge.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation info, line 2: Possible misuse of “aria-label”. (If you disagree with this warning, file an issue report or send e-mail to www-validator@w3.org.) (ad><body><div class="block_xp-level level- " aria-label="((+levelx%2C+block_xp%2C+%7B%7B+level+%7D%7D+))"> )

Gherkin .feature problems

(0 errors, 0 warnings)

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