Prechecker results: error


Overview

(0 errors, 0 warnings)

This section shows the general problems detected when processing the code [More info]


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

(2 errors, 0 warnings)

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

mod/checklist/classes/external/update_student_comment.php
(#109) No one-line description found in phpdocs for docblock of function execute_returns
mod/checklist/classes/local/checklist_comment_student.php
(#131) No one-line description found in phpdocs for docblock of function update_or_create_student_comment

Javascript coding style problems

(2 errors, 33 warnings)

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

mod/checklist/mobileapp/mobile.js
(#6) Avoid nesting promises. (promise/no-nesting)
(#6) Avoid nesting promises. (promise/no-nesting)
(#11) Comments should not begin with a lowercase character. (capitalized-comments)
(#12) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)
(#12) Each then() should return a value or throw (promise/always-return)
mod/checklist/yui/buttons/buttons.js
(#1) Expected space or tab after '/*' in comment. (spaced-comment)
(#1) 'M' is already defined as a built-in global variable. (no-redeclare)
(#2) 'YUI' is not defined. (no-undef)
(#2) Unexpected space before function parentheses. (space-before-function-paren)
(#4) Identifier 'toggle_values' is not in camel case. (camelcase)
(#4) Identifier 'col_clicked' is not in camel case. (camelcase)
(#4) Identifier 'row_clicked' is not in camel case. (camelcase)
(#6) Identifier 'toggle_values' is not in camel case. (camelcase)
(#8) Unexpected space before function parentheses. (space-before-function-paren)
(#14) Identifier 'toggle_values' is not in camel case. (camelcase)
(#17) Identifier 'toggle_values' is not in camel case. (camelcase)
(#20) Identifier 'col_clicked' is not in camel case. (camelcase)
(#20) Unexpected space before function parentheses. (space-before-function-paren)
(#22) Comments should not begin with a lowercase character. (capitalized-comments)
(#24) Comments should not begin with a lowercase character. (capitalized-comments)
(#27) Comments should not begin with a lowercase character. (capitalized-comments)
(#28) Unexpected space before function parentheses. (space-before-function-paren)
(#35) Comments should not begin with a lowercase character. (capitalized-comments)
(#36) Unexpected space before function parentheses. (space-before-function-paren)
(#44) Identifier 'row_clicked' is not in camel case. (camelcase)
(#44) Unexpected space before function parentheses. (space-before-function-paren)
(#46) Comments should not begin with a lowercase character. (capitalized-comments)
(#48) Comments should not begin with a lowercase character. (capitalized-comments)
(#51) Comments should not begin with a lowercase character. (capitalized-comments)
(#52) Unexpected space before function parentheses. (space-before-function-paren)
(#59) Comments should not begin with a lowercase character. (capitalized-comments)
(#60) Unexpected space before function parentheses. (space-before-function-paren)
(#68) Comments should not begin with a lowercase character. (capitalized-comments)
(#70) Identifier 'mod_checklist' is not in camel case. (camelcase)
(#72) Unexpected space before function parentheses. (space-before-function-paren)

CSS problems

(10 errors, 1 warnings)

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

mod/checklist/styles_app.css
(#75) Unexpected unit (length-zero-no-unit)
(#34) Unexpected unknown type selector "ion-label" (selector-type-no-unknown)
(#37) Unexpected unknown type selector "ion-label" (selector-type-no-unknown)
(#40) Unexpected unknown type selector "ion-label" (selector-type-no-unknown)
(#43) Unexpected unknown type selector "ion-label" (selector-type-no-unknown)
(#46) Unexpected unknown type selector "ion-label" (selector-type-no-unknown)
(#49) Unexpected unknown type selector "ion-label" (selector-type-no-unknown)
(#52) Unexpected unknown type selector "ion-label" (selector-type-no-unknown)
(#55) Unexpected unknown type selector "ion-label" (selector-type-no-unknown)
(#61) Unexpected unknown type selector "ion-label" (selector-type-no-unknown)
(#68) Unexpected unknown type selector "ion-icon" (selector-type-no-unknown)

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

(1 errors, 0 warnings)

This section shows problems detected with the handling of upgrade savepoints [More info]

mod/checklist/db/upgrade.php
'return true;' not found

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, 5 warnings)

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

mod/checklist/templates/mobile_view_checklist.mustache
(#1) HTML Validation error, line 23: Attribute “core-external-content” not allowed on element “img” at this point. ( <img class="checklist-teachermark" src="SITEURL/theme/image.php..." alt="Teacher states that you have completed this" core-external-content> )
(#1) HTML Validation info, line 26: Attribute “[showbrowserwarning]” is not serializable as XML 1.0. ( <ion-button fill="clear" href="https://moodle.org/" core-link class="checklist-url-button" [showBrowserWarning]="false" [attr.aria-label]="'plugin.mod_checklist.linktourl' | translate" > )
(#1) HTML Validation info, line 26: Attribute “[attr.aria-label]” is not serializable as XML 1.0. ( <ion-button fill="clear" href="https://moodle.org/" core-link class="checklist-url-button" [showBrowserWarning]="false" [attr.aria-label]="'plugin.mod_checklist.linktourl' | translate" > )
(#1) HTML Validation info, line 34: Attribute “[capture]” is not serializable as XML 1.0. ( <a href="SITEURL/user/view.php..." core-link [capture]="true">Jeffer)
(#1) HTML Validation error, line 34: Attribute “core-link” not allowed on element “a” at this point. ( <a href="SITEURL/user/view.php..." core-link [capture]="true">Jeffer)
(#1) HTML Validation error, line 34: Attribute “[capture]” not allowed on element “a” at this point. ( <a href="SITEURL/user/view.php..." core-link [capture]="true">Jeffer)
(#1) HTML Validation info, line 38: Attribute “[capture]” is not serializable as XML 1.0. ( <a href="SITEURL/user/view.php..." core-link [capture]="true">Barbar)
(#1) HTML Validation error, line 38: Attribute “core-link” not allowed on element “a” at this point. ( <a href="SITEURL/user/view.php..." core-link [capture]="true">Barbar)
(#1) HTML Validation error, line 38: Attribute “[capture]” not allowed on element “a” at this point. ( <a href="SITEURL/user/view.php..." core-link [capture]="true">Barbar)
(#1) HTML Validation info, line 44: Attribute “(ionchange)” is not serializable as XML 1.0. ( <ion-checkbox checked="true" disabled="false" (ionChange)="saveChanges(1, 1, $event)"></ion-)

Gherkin .feature problems

(0 errors, 0 warnings)

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