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

(3 errors, 4 warnings)

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

blocks/myprograms/classes/output/mobile.php
(#31) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#253) Line exceeds 132 characters; contains 154 characters
(#255) Line exceeds 132 characters; contains 133 characters
(#258) Line exceeds 132 characters; contains 135 characters
blocks/myprograms/db/access.php
(#49) Whitespace found at end of line
blocks/myprograms/db/mobile.php
(#24) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
blocks/myprograms/version.php
(#31) This comment is 50% valid code; is this commented out code?

Javascript coding style problems

(4 errors, 2 warnings)

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

blocks/myprograms/mobile/js/programsview.js
(#34) Missing JSDoc for parameter 'target'. (valid-jsdoc)
(#41) Missing semicolon. (semi)
(#51) Missing semicolon. (semi)
(#63) Expected space(s) after "if". (keyword-spacing)
(#76) Trailing spaces not allowed. (no-trailing-spaces)
(#91) Missing semicolon. (semi)

CSS problems

(35 errors, 1 warnings)

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

blocks/myprograms/mobile/style.css
(#24) Unexpected !important (declaration-no-important)
(#24) Unexpected unit (length-zero-no-unit)
(#43) Unexpected unknown pseudo-element selector "::ng-deep" (selector-pseudo-element-no-unknown)
(#50) Unexpected unknown pseudo-element selector "::ng-deep" (selector-pseudo-element-no-unknown)
(#55) Unexpected unknown pseudo-element selector "::ng-deep" (selector-pseudo-element-no-unknown)
(#59) Unexpected unknown pseudo-element selector "::ng-deep" (selector-pseudo-element-no-unknown)
(#5) Unexpected unknown type selector "ion-avatar" (selector-type-no-unknown)
(#13) Unexpected unknown type selector "ion-label" (selector-type-no-unknown)
(#18) Unexpected unknown type selector "ion-label" (selector-type-no-unknown)
(#31) Unexpected unknown type selector "ion-row" (selector-type-no-unknown)
(#36) Unexpected unknown type selector "ion-row" (selector-type-no-unknown)
(#36) Unexpected unknown type selector "ion-col" (selector-type-no-unknown)
(#42) Unexpected unknown type selector "ion-row" (selector-type-no-unknown)
(#42) Unexpected unknown type selector "ion-button" (selector-type-no-unknown)
(#43) Unexpected unknown type selector "ion-row" (selector-type-no-unknown)
(#43) Unexpected unknown type selector "core-combobox" (selector-type-no-unknown)
(#43) Unexpected unknown type selector "ion-button" (selector-type-no-unknown)
(#49) Unexpected unknown type selector "ion-row" (selector-type-no-unknown)
(#49) Unexpected unknown type selector "ion-button" (selector-type-no-unknown)
(#50) Unexpected unknown type selector "ion-row" (selector-type-no-unknown)
(#50) Unexpected unknown type selector "core-combobox" (selector-type-no-unknown)
(#50) Unexpected unknown type selector "ion-button" (selector-type-no-unknown)
(#54) Unexpected unknown type selector "ion-row" (selector-type-no-unknown)
(#54) Unexpected unknown type selector "ion-button" (selector-type-no-unknown)
(#54) Unexpected unknown type selector "ion-icon" (selector-type-no-unknown)
(#55) Unexpected unknown type selector "ion-row" (selector-type-no-unknown)
(#55) Unexpected unknown type selector "core-combobox" (selector-type-no-unknown)
(#55) Unexpected unknown type selector "ion-button" (selector-type-no-unknown)
(#55) Unexpected unknown type selector "ion-icon" (selector-type-no-unknown)
(#59) Unexpected unknown type selector "ion-row" (selector-type-no-unknown)
(#59) Unexpected unknown type selector "core-combobox" (selector-type-no-unknown)
(#59) Unexpected unknown type selector "ion-select" (selector-type-no-unknown)
(#64) Unexpected unknown type selector "ion-row" (selector-type-no-unknown)
(#64) Unexpected unknown type selector "ion-searchbar" (selector-type-no-unknown)
(#68) Unexpected unknown type selector "core-empty-box" (selector-type-no-unknown)
(#73) Unexpected unknown type selector "core-empty-box" (selector-type-no-unknown)

PHPDocs style problems

(8 errors, 3 warnings)

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

blocks/myprograms/block_myprograms.php
(#26) Function block_myprograms::init is not documented
(#30) Function block_myprograms::get_content is not documented
blocks/myprograms/classes/output/mobile.php
(#35) Package is not specified for class mobile. It is also not specified in file-level phpdocs
(#35) Class mobile is not documented
(#234) Function mobile::get_program_image is not documented
(#247) Function mobile::get_program_status_for_display is not documented
(#272) Function mobile::get_course_for_display is not documented
blocks/myprograms/classes/privacy/provider.php
(#28) Function provider::get_reason is not documented
blocks/myprograms/db/access.php
(#20) Package enrol_programs is not valid
blocks/myprograms/db/install.php
(#20) Package enrol_programs is not valid
(#17) File-level phpdocs block is not found

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

(2 errors, 0 warnings)

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

blocks/myprograms/templates/mobile_program_page.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
blocks/myprograms/templates/mobile_programs_overview_page.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error

Gherkin .feature problems

(0 errors, 0 warnings)

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