Prechecker results: warning


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

(0 errors, 0 warnings)

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


Javascript coding style problems

(0 errors, 52 warnings)

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

mod/livepoll/amd/src/barchart-result-lazy.js
(#50) 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
(#40) Missing JSDoc parameter type for 'options'. (valid-jsdoc)
(#40) 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 spaces inside this paren. (space-in-parens)
(#116) There should be no spaces inside 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)
(#280) Missing JSDoc parameter type for 'apiKey'. (valid-jsdoc)
(#280) Missing JSDoc parameter type for 'projectID'. (valid-jsdoc)
(#280) Missing JSDoc parameter type for 'pollKey'. (valid-jsdoc)
(#280) Missing JSDoc parameter type for 'userKey'. (valid-jsdoc)
(#280) Missing JSDoc parameter type for 'options'. (valid-jsdoc)
(#280) Missing JSDoc parameter type for 'correctOption'. (valid-jsdoc)
(#280) Missing JSDoc parameter type for 'resultsToRender'. (valid-jsdoc)
mod/livepoll/amd/src/result.js
(#35) Missing JSDoc parameter type for 'options'. (valid-jsdoc)
(#35) Missing JSDoc parameter type for 'votes'. (valid-jsdoc)
(#35) Missing JSDoc @returns for function. (valid-jsdoc)
(#49) Missing JSDoc parameter type for 'options'. (valid-jsdoc)
(#49) Missing JSDoc parameter type for 'votes'. (valid-jsdoc)
(#49) 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
(#38) Missing JSDoc parameter type for 'options'. (valid-jsdoc)
(#38) 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
(#27) Missing JSDoc parameter type for 'options'. (valid-jsdoc)
(#27) 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

(0 errors, 0 warnings)

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


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)