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

(8 errors, 1 warnings)

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

mod/livepoll/backup/moodle2/backup_livepoll_activity_task.class.php
(#58) The static declaration must come after the visibility declaration
mod/livepoll/backup/moodle2/restore_livepoll_activity_task.class.php
(#54) The static declaration must come after the visibility declaration
(#65) The static declaration must come after the visibility declaration
(#77) The static declaration must come after the visibility declaration
(#90) The static declaration must come after the visibility declaration
mod/livepoll/db/upgrade.php
(#75) TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
(#81) Variable "httpCode" must be all lower-case
(#82) Variable "httpCode" must be all lower-case
mod/livepoll/view.php
(#28) This comment is 43% valid code; is this commented out code?

Javascript coding style problems

(0 errors, 54 warnings)

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

mod/livepoll/amd/src/barchart-result-lazy.js
(#52) Missing JSDoc parameter type for 'options'. (valid-jsdoc)
(#57) Expected variable declaration to be on a new line. (one-var-declaration-per-line)
(#84) Missing JSDoc for parameter 'options'. (valid-jsdoc)
(#84) Missing JSDoc for parameter 'votes'. (valid-jsdoc)
(#84) Missing JSDoc for parameter 'callback'. (valid-jsdoc)
mod/livepoll/amd/src/bold-text-result-lazy.js
(#25) Missing JSDoc for parameter 'decoratedResult'. (valid-jsdoc)
(#38) Missing JSDoc for parameter 'options'. (valid-jsdoc)
(#38) Missing JSDoc for parameter 'votes'. (valid-jsdoc)
(#44) A space is required after ','. (comma-spacing)
(#48) A space is required after ','. (comma-spacing)
mod/livepoll/amd/src/decorated-text-result.js
(#42) Missing JSDoc parameter type for 'options'. (valid-jsdoc)
(#43) Missing JSDoc parameter type for 'votes'. (valid-jsdoc)
mod/livepoll/amd/src/green-text-result-lazy.js
(#25) Missing JSDoc for parameter 'decoratedResult'. (valid-jsdoc)
(#38) Missing JSDoc for parameter 'options'. (valid-jsdoc)
(#38) Missing JSDoc for parameter 'votes'. (valid-jsdoc)
mod/livepoll/amd/src/livepoll-lazy.js
(#45) Missing space before opening brace. (space-before-blocks)
(#51) Expected catch,fail() or return (promise/catch-or-return)
(#52) Each then() should return a value or throw (promise/always-return)
(#112) Expected catch,fail() or return (promise/catch-or-return)
(#112) Each then() should return a value or throw (promise/always-return)
(#116) There should be no space after this paren. (space-in-parens)
(#116) There should be no space before this paren. (space-in-parens)
(#133) Expected catch,fail() or return (promise/catch-or-return)
(#149) Expected catch,fail() or return (promise/catch-or-return)
(#149) Each then() should return a value or throw (promise/always-return)
(#165) Each then() should return a value or throw (promise/always-return)
(#196) Expected variable declaration to be on a new line. (one-var-declaration-per-line)
(#206) Expected variable declaration to be on a new line. (one-var-declaration-per-line)
(#283) Missing JSDoc parameter type for 'apiKey'. (valid-jsdoc)
(#284) Missing JSDoc parameter type for 'authDomain'. (valid-jsdoc)
(#285) Missing JSDoc parameter type for 'databaseURL'. (valid-jsdoc)
(#286) Missing JSDoc parameter type for 'projectID'. (valid-jsdoc)
(#287) Missing JSDoc parameter type for 'pollKey'. (valid-jsdoc)
(#288) Missing JSDoc parameter type for 'userKey'. (valid-jsdoc)
(#289) Missing JSDoc parameter type for 'options'. (valid-jsdoc)
(#290) Missing JSDoc parameter type for 'correctOption'. (valid-jsdoc)
(#291) Missing JSDoc parameter type for 'resultsToRender'. (valid-jsdoc)
mod/livepoll/amd/src/result.js
(#35) Missing JSDoc @returns for function. (valid-jsdoc)
(#38) Missing JSDoc parameter type for 'options'. (valid-jsdoc)
(#39) Missing JSDoc parameter type for 'votes'. (valid-jsdoc)
(#51) Missing JSDoc parameter type for 'options'. (valid-jsdoc)
(#52) Missing JSDoc parameter type for 'votes'. (valid-jsdoc)
(#53) Missing JSDoc parameter type for 'callback'. (valid-jsdoc)
mod/livepoll/amd/src/shadowy-text-result-lazy.js
(#25) Missing JSDoc for parameter 'decoratedResult'. (valid-jsdoc)
(#38) Missing JSDoc for parameter 'options'. (valid-jsdoc)
(#38) Missing JSDoc for parameter 'votes'. (valid-jsdoc)
mod/livepoll/amd/src/text-result-lazy.js
(#40) Missing JSDoc parameter type for 'options'. (valid-jsdoc)
(#41) Missing JSDoc parameter type for 'votes'. (valid-jsdoc)
(#52) Missing JSDoc for parameter 'options'. (valid-jsdoc)
(#52) Missing JSDoc for parameter 'votes'. (valid-jsdoc)
(#52) Missing JSDoc for parameter 'callback'. (valid-jsdoc)
mod/livepoll/amd/src/util.js
(#29) Missing JSDoc parameter type for 'options'. (valid-jsdoc)
(#30) Missing JSDoc parameter type for 'votes'. (valid-jsdoc)
(#34) Expected variable declaration to be on a new line. (one-var-declaration-per-line)

CSS problems

(0 errors, 2 warnings)

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

mod/livepoll/styles.css
(#47) Expected "#2196F3" to be "#2196f3" (color-hex-case)
(#51) Expected "#2196F3" to be "#2196f3" (color-hex-case)

PHPDocs style problems

(8 errors, 1 warnings)

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

mod/livepoll/.kow-plugin.php
(#2) Empty line found after PHP open tag
(#1) File-level phpdocs block is not found
mod/livepoll/classes/privacy/provider.php
(#63) Function provider::get_contexts_for_userid is not documented
(#67) Function provider::export_user_data is not documented
(#70) Function provider::delete_data_for_all_users_in_context is not documented
(#73) Function provider::delete_data_for_user is not documented
(#76) Function provider::get_users_in_context is not documented
(#79) Function provider::delete_data_for_users is not documented
(#18) Inline phpdocs tag {@link \mod_livepoll\privacy\provider} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}

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

(0 errors, 12 warnings)

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

mod/livepoll/templates/mobile_view_page.mustache
(#1) HTML Validation error, line 21: Attribute “core-link” not allowed on element “a” at this point. ( <a href="https://live.poll" core-link autoLogin="yes" inApp="true"> )
(#1) HTML Validation error, line 21: Attribute “autologin” not allowed on element “a” at this point. ( <a href="https://live.poll" core-link autoLogin="yes" inApp="true"> )
(#1) HTML Validation error, line 21: Attribute “inapp” not allowed on element “a” at this point. ( <a href="https://live.poll" core-link autoLogin="yes" inApp="true"> )
(#1) HTML Validation error, line 30: Attribute “core-link” not allowed on element “a” at this point. ( <a href="https://live.poll" core-link autoLogin="yes" inApp="true"> )
(#1) HTML Validation error, line 30: Attribute “autologin” not allowed on element “a” at this point. ( <a href="https://live.poll" core-link autoLogin="yes" inApp="true"> )
(#1) HTML Validation error, line 30: Attribute “inapp” not allowed on element “a” at this point. ( <a href="https://live.poll" core-link autoLogin="yes" inApp="true"> )
(#1) HTML Validation info, line 39: Attribute “[params]” is not serializable as XML 1.0. (. --> <span core-site-plugins-call-ws-on-load name="mod_livepoll_view_livepoll" [params]="{livepollid: 30}" [preSets]="{getFromCache: 0, saveToCache: 0}"></span)
(#1) HTML Validation info, line 39: Attribute “[presets]” is not serializable as XML 1.0. (. --> <span core-site-plugins-call-ws-on-load name="mod_livepoll_view_livepoll" [params]="{livepollid: 30}" [preSets]="{getFromCache: 0, saveToCache: 0}"></span)
(#1) HTML Validation error, line 39: Attribute “core-site-plugins-call-ws-on-load” not allowed on element “span” at this point. (. --> <span core-site-plugins-call-ws-on-load name="mod_livepoll_view_livepoll" [params]="{livepollid: 30}" [preSets]="{getFromCache: 0, saveToCache: 0}"></span)
(#1) HTML Validation error, line 39: Attribute “name” not allowed on element “span” at this point. (. --> <span core-site-plugins-call-ws-on-load name="mod_livepoll_view_livepoll" [params]="{livepollid: 30}" [preSets]="{getFromCache: 0, saveToCache: 0}"></span)
(#1) HTML Validation error, line 39: Attribute “[params]” not allowed on element “span” at this point. (. --> <span core-site-plugins-call-ws-on-load name="mod_livepoll_view_livepoll" [params]="{livepollid: 30}" [preSets]="{getFromCache: 0, saveToCache: 0}"></span)
(#1) HTML Validation error, line 39: Attribute “[presets]” not allowed on element “span” at this point. (. --> <span core-site-plugins-call-ws-on-load name="mod_livepoll_view_livepoll" [params]="{livepollid: 30}" [preSets]="{getFromCache: 0, saveToCache: 0}"></span)

Gherkin .feature problems

(0 errors, 0 warnings)

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