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

(5 errors, 4 warnings)

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

mod/allocationform/classes/external/view.php
(#50) PHP4 style constructors are not allowed; use "__construct()" instead
mod/allocationform/classes/output/editing.php
(#99) Line exceeds 132 characters; contains 135 characters
mod/allocationform/classes/output/form.php
(#41) Whitespace found at end of line
mod/allocationform/classes/output/ready.php
(#65) Line exceeds 132 characters; contains 133 characters
mod/allocationform/tests/activity_test.php
(#330) Line exceeds 132 characters; contains 140 characters
mod/allocationform/tests/behat/behat_mod_allocationform.php
(#79) Line exceeds 132 characters; contains 133 characters
mod/allocationform/tests/editing_renderable_test.php
(#85) Expected "foreach (...) {\n"; found "foreach(...) {\n"
mod/allocationform/tests/init_test.php
(#425) Expected "try {\n...} catch (...) {\n"; found "try {\n...} catch(...) {\n"
(#428) Empty CATCH statement detected

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

(15 errors, 0 warnings)

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

mod/allocationform/styles.css
(#1) Expected newline before "}" (block-closing-brace-newline-before)
(#2) Expected newline before "}" (block-closing-brace-newline-before)
(#3) Expected newline before "}" (block-closing-brace-newline-before)
(#1) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#2) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#3) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#1) Expected newline after "{" (block-opening-brace-newline-after)
(#2) Expected newline after "{" (block-opening-brace-newline-after)
(#3) Expected newline after "{" (block-opening-brace-newline-after)
(#1) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#2) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#3) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#5) Expected single space before "{" (block-opening-brace-space-before)
(#3) Expected no more than 1 declaration (declaration-block-single-line-max-declarations)
(#1) Expected newline after "," (selector-list-comma-newline-after)

PHPDocs style problems

(42 errors, 52 warnings)

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

mod/allocationform/classes/activity.php
(#53) Not recommended phpdocs tag @global used
(#151) Not recommended phpdocs tag @global used
(#168) Not recommended phpdocs tag @global used
(#190) Not recommended phpdocs tag @global used
(#209) Not recommended phpdocs tag @global used
(#233) Not recommended phpdocs tag @global used
(#268) Not recommended phpdocs tag @global used
(#309) Not recommended phpdocs tag @global used
(#351) Not recommended phpdocs tag @global used
(#414) Not recommended phpdocs tag @global used
(#426) Not recommended phpdocs tag @global used
(#439) Not recommended phpdocs tag @global used
(#452) Not recommended phpdocs tag @global used
mod/allocationform/classes/allocation.php
(#145) Invalid inline phpdocs tag @see found
mod/allocationform/classes/external/access_denied.php
(#17) File-level phpdocs block is not found
(#35) Not recommended phpdocs tag @global used
mod/allocationform/classes/external/choices.php
(#47) Not recommended phpdocs tag @global used
mod/allocationform/classes/external/view.php
(#46) Not recommended phpdocs tag @global used
mod/allocationform/classes/option.php
(#203) Not recommended phpdocs tag @global used
mod/allocationform/classes/output/allallocations.php
(#105) There is no description in phpdocs for function export_for_template
(#105) Phpdocs for function allallocations::export_for_template has incomplete parameters list
(#53) Not recommended phpdocs tag @global used
mod/allocationform/classes/output/allocation.php
(#79) There is no description in phpdocs for function export_for_template
(#79) Phpdocs for function allocation::export_for_template has incomplete parameters list
(#49) Not recommended phpdocs tag @global used
mod/allocationform/classes/output/denyaccess.php
(#51) There is no description in phpdocs for function export_for_template
(#51) Phpdocs for function denyaccess::export_for_template has incomplete parameters list
mod/allocationform/classes/output/editing.php
(#95) There is no description in phpdocs for function export_for_template
(#95) Phpdocs for function editing::export_for_template has incomplete parameters list
(#58) Not recommended phpdocs tag @global used
mod/allocationform/classes/output/form.php
(#45) Function form::__construct is not documented
(#50) There is no description in phpdocs for function export_for_template
(#50) Phpdocs for function form::export_for_template has incomplete parameters list
mod/allocationform/classes/output/mobile_ready.php
(#71) There is no description in phpdocs for function export_for_template
(#100) There is no description in phpdocs for function get_javascript
(#137) There is no description in phpdocs for function get_otherdata
(#71) Phpdocs for function mobile_ready::export_for_template has incomplete parameters list
(#52) Not recommended phpdocs tag @global used
mod/allocationform/classes/output/option_editing.php
(#73) There is no description in phpdocs for function export_for_template
(#73) Phpdocs for function option_editing::export_for_template has incomplete parameters list
mod/allocationform/classes/output/option_mobile_ready.php
(#58) There is no description in phpdocs for function export_for_template
(#58) Phpdocs for function option_mobile_ready::export_for_template has incomplete parameters list
mod/allocationform/classes/output/option_result.php
(#54) There is no description in phpdocs for function export_for_template
(#54) Phpdocs for function option_result::export_for_template has incomplete parameters list
mod/allocationform/classes/output/processing.php
(#51) There is no description in phpdocs for function export_for_template
(#51) Phpdocs for function processing::export_for_template has incomplete parameters list
mod/allocationform/classes/output/progress.php
(#80) There is no description in phpdocs for function export_for_template
(#80) Phpdocs for function progress::export_for_template has incomplete parameters list
mod/allocationform/classes/output/ready.php
(#59) There is no description in phpdocs for function export_for_template
(#59) Phpdocs for function ready::export_for_template has incomplete parameters list
mod/allocationform/classes/output/user.php
(#51) There is no description in phpdocs for function export_for_template
(#51) Phpdocs for function user::export_for_template has incomplete parameters list
mod/allocationform/classes/privacy/provider.php
(#17) File-level phpdocs block is not found
mod/allocationform/mod_form.php
(#150) There is no description in phpdocs for function data_postprocessing
(#150) Phpdocs for function mod_allocationform_mod_form::data_postprocessing has incomplete parameters list
mod/allocationform/tests/activity_test.php
(#374) Phpdocs for function mod_allocationform_activity_test::test_user_can_be_allocated has incomplete parameters list
(#373) Invalid phpdocs tag @gloabl used
(#61) Not recommended phpdocs tag @global used
(#84) Not recommended phpdocs tag @global used
(#171) Not recommended phpdocs tag @global used
(#238) Not recommended phpdocs tag @global used
(#312) Not recommended phpdocs tag @global used
mod/allocationform/tests/behat/behat_mod_allocationform.php
(#114) Phpdocs for function behat_mod_allocationform::workable_restrictions_were_exceeded_for_users_options_required_per_user has incomplete parameters list
(#169) Phpdocs for function behat_mod_allocationform::i_restrict_allocationform_option has incomplete parameters list
(#224) Not recommended phpdocs tag @global used
(#262) Not recommended phpdocs tag @global used
(#286) Not recommended phpdocs tag @global used
mod/allocationform/tests/generator/lib.php
(#192) Function mod_allocationform_generator::reset is not documented
(#151) Phpdocs for function mod_allocationform_generator::create_option has incomplete parameters list
mod/allocationform/tests/init_test.php
(#81) Not recommended phpdocs tag @global used
(#115) Not recommended phpdocs tag @global used
(#149) Not recommended phpdocs tag @global used
(#187) Not recommended phpdocs tag @global used
(#220) Not recommended phpdocs tag @global used
(#260) Not recommended phpdocs tag @global used
(#302) Not recommended phpdocs tag @global used
(#338) Not recommended phpdocs tag @global used
(#391) Not recommended phpdocs tag @global used
(#415) Not recommended phpdocs tag @global used
(#438) Not recommended phpdocs tag @global used
(#457) Not recommended phpdocs tag @global used
(#486) Not recommended phpdocs tag @global used
mod/allocationform/tests/privacy_provider_test.php
(#284) Not recommended phpdocs tag @global used
mod/allocationform/tests/webservice_access_denied_test.php
(#17) File-level phpdocs block is not found
(#35) Not recommended phpdocs tag @global used
mod/allocationform/tests/webservice_choice_test.php
(#47) Not recommended phpdocs tag @global used
(#86) Not recommended phpdocs tag @global used
(#133) Not recommended phpdocs tag @global used
(#180) Not recommended phpdocs tag @global used
(#227) Not recommended phpdocs tag @global used
(#273) Not recommended phpdocs tag @global used
(#313) Not recommended phpdocs tag @global used
mod/allocationform/tests/webservice_view_test.php
(#17) File-level phpdocs block is not found
(#35) Not recommended phpdocs tag @global 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]

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

(18 errors, 0 warnings)

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

mod/allocationform/templates/allallocations.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
mod/allocationform/templates/allocation.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
mod/allocationform/templates/choiceform.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
mod/allocationform/templates/denyaccess.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
mod/allocationform/templates/editing.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
mod/allocationform/templates/form.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
mod/allocationform/templates/mobile_allallocations.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
mod/allocationform/templates/mobile_allocation.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
mod/allocationform/templates/mobile_denyaccess.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
mod/allocationform/templates/mobile_editing.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
mod/allocationform/templates/mobile_processing.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
mod/allocationform/templates/mobile_ready.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
mod/allocationform/templates/option_editing.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
mod/allocationform/templates/option_mobile_ready.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
mod/allocationform/templates/option_result.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
mod/allocationform/templates/processing.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
mod/allocationform/templates/progress.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
mod/allocationform/templates/ready.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error