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

(45 errors, 0 warnings)

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

lib/editor/tiny/plugins/ai/classes/local/hook_callbacks.php
(#29) Opening brace must not be followed by a blank line
lib/editor/tiny/plugins/ai/classes/local/utils.php
(#27) Opening brace must not be followed by a blank line
(#42) Opening parenthesis of a multi-line function call must be the last content on the line
(#42) Only one argument is allowed per line in a multi-line function call
(#43) Multi-line function call not indented correctly; expected 16 spaces but found 24
(#43) Closing parenthesis of a multi-line function call must be on a line by itself
(#47) Opening parenthesis of a multi-line function call must be the last content on the line
(#47) Only one argument is allowed per line in a multi-line function call
(#48) Multi-line function call not indented correctly; expected 16 spaces but found 24
(#48) Closing parenthesis of a multi-line function call must be on a line by itself
(#52) Opening parenthesis of a multi-line function call must be the last content on the line
(#52) Only one argument is allowed per line in a multi-line function call
(#53) Multi-line function call not indented correctly; expected 16 spaces but found 24
(#53) Closing parenthesis of a multi-line function call must be on a line by itself
(#57) Opening parenthesis of a multi-line function call must be the last content on the line
(#57) Only one argument is allowed per line in a multi-line function call
(#58) Multi-line function call not indented correctly; expected 16 spaces but found 24
(#58) Closing parenthesis of a multi-line function call must be on a line by itself
(#62) Opening parenthesis of a multi-line function call must be the last content on the line
(#62) Only one argument is allowed per line in a multi-line function call
(#63) Multi-line function call not indented correctly; expected 16 spaces but found 24
(#63) Closing parenthesis of a multi-line function call must be on a line by itself
(#67) Opening parenthesis of a multi-line function call must be the last content on the line
(#67) Only one argument is allowed per line in a multi-line function call
(#68) Multi-line function call not indented correctly; expected 16 spaces but found 24
(#68) Closing parenthesis of a multi-line function call must be on a line by itself
(#72) Opening parenthesis of a multi-line function call must be the last content on the line
(#72) Only one argument is allowed per line in a multi-line function call
(#73) Multi-line function call not indented correctly; expected 16 spaces but found 24
(#73) Closing parenthesis of a multi-line function call must be on a line by itself
lib/editor/tiny/plugins/ai/classes/plugininfo.php
(#46) The interface names in a "class implements" statement should be ordered alphabetically. Expected: plugin_with_configuration, plugin_with_buttons, plugin_with_menuitems; Found: plugin_with_buttons, plugin_with_configuration, plugin_with_menuitems
(#46) Opening brace must not be followed by a blank line
(#50) Multi-line function declaration not indented correctly; expected 8 spaces but found 12
(#51) Multi-line function declaration not indented correctly; expected 8 spaces but found 12
(#52) Multi-line function declaration not indented correctly; expected 8 spaces but found 12
(#53) Multi-line function declaration not indented correctly; expected 8 spaces but found 12
(#65) Opening parenthesis of a multi-line function call must be the last content on the line
(#65) Only one argument is allowed per line in a multi-line function call
(#66) Multi-line function call not indented correctly; expected 16 spaces but found 24
(#66) Closing parenthesis of a multi-line function call must be on a line by itself
(#89) Multi-line function declaration not indented correctly; expected 8 spaces but found 12
(#90) Multi-line function declaration not indented correctly; expected 8 spaces but found 12
(#91) Multi-line function declaration not indented correctly; expected 8 spaces but found 12
(#92) Multi-line function declaration not indented correctly; expected 8 spaces but found 12
lib/editor/tiny/plugins/ai/classes/privacy/provider.php
(#27) Opening brace must not be followed by a blank line

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

(58 errors, 15 warnings)

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

lib/editor/tiny/plugins/ai/scss/base.scss
(#13) Invalid value for "speak" (csstree/validator)
(#12) Unexpected !important (declaration-no-important)
(#21) Expected indentation of 4 spaces (indentation)
lib/editor/tiny/plugins/ai/scss/mixins.scss
(#8) Expected newline after "}" (block-closing-brace-newline-after)
(#5) Expected indentation of 8 spaces (indentation)
(#7) Expected indentation of 8 spaces (indentation)
(#6) Expected indentation of 12 spaces (indentation)
(#9) Expected indentation of 8 spaces (indentation)
lib/editor/tiny/plugins/ai/scss/variables.scss
(#9) Expected "#E8E8EA" to be "#e8e8ea" (color-hex-case)
(#10) Expected "#A4A5AC" to be "#a4a5ac" (color-hex-case)
(#11) Expected "#60616D" to be "#60616d" (color-hex-case)
(#12) Expected "#00091E" to be "#00091e" (color-hex-case)
(#13) Expected "#FFF" to be "#fff" (color-hex-case)
(#15) Expected "#E99F80" to be "#e99f80" (color-hex-case)
(#16) Expected "#D33F01" to be "#d33f01" (color-hex-case)
(#17) Expected "#A93201" to be "#a93201" (color-hex-case)
(#19) Expected "#F00" to be "#f00" (color-hex-case)
(#20) Expected "#FFF8E0" to be "#fff8e0" (color-hex-case)
lib/editor/tiny/plugins/ai/scss/partials/ai-dropdown.scss
(#77) Expected newline after ";" in a multi-line declaration block (declaration-block-semicolon-newline-after)
(#60) Unexpected whitespace at end of line (no-eol-whitespace)
(#77) Unexpected whitespace at end of line (no-eol-whitespace)
(#33) Expected indentation of 12 spaces (indentation)
(#37) Expected indentation of 12 spaces (indentation)
(#68) Expected indentation of 12 spaces (indentation)
(#69) Expected indentation of 12 spaces (indentation)
(#70) Expected indentation of 12 spaces (indentation)
(#71) Expected indentation of 12 spaces (indentation)
(#72) Expected indentation of 12 spaces (indentation)
(#73) Expected indentation of 12 spaces (indentation)
(#74) Expected indentation of 12 spaces (indentation)
(#75) Expected indentation of 12 spaces (indentation)
(#76) Expected indentation of 12 spaces (indentation)
(#77) Expected indentation of 12 spaces (indentation)
(#79) Expected indentation of 12 spaces (indentation)
(#81) Expected indentation of 12 spaces (indentation)
(#80) Expected indentation of 16 spaces (indentation)
(#137) Expected indentation of 16 spaces (indentation)
(#139) Expected indentation of 16 spaces (indentation)
(#142) Expected indentation of 16 spaces (indentation)
(#140) Expected indentation of 20 spaces (indentation)
(#141) Expected indentation of 20 spaces (indentation)
lib/editor/tiny/plugins/ai/scss/partials/ai-dropzone.scss
(#9) Expected "#eeeeee" to be "#eee" (color-hex-length)
(#25) Expected "#ffffff" to be "#fff" (color-hex-length)
(#26) Expected "#000000" to be "#000" (color-hex-length)
(#2) Expected indentation of 4 spaces (indentation)
(#3) Expected indentation of 4 spaces (indentation)
(#4) Expected indentation of 4 spaces (indentation)
(#5) Expected indentation of 4 spaces (indentation)
(#6) Expected indentation of 4 spaces (indentation)
(#7) Expected indentation of 4 spaces (indentation)
(#8) Expected indentation of 4 spaces (indentation)
(#9) Expected indentation of 4 spaces (indentation)
(#10) Expected indentation of 4 spaces (indentation)
(#11) Expected indentation of 4 spaces (indentation)
(#12) Expected indentation of 4 spaces (indentation)
(#13) Expected indentation of 4 spaces (indentation)
(#14) Expected indentation of 4 spaces (indentation)
(#15) Expected indentation of 4 spaces (indentation)
(#16) Expected indentation of 4 spaces (indentation)
(#17) Expected indentation of 4 spaces (indentation)
(#21) Expected indentation of 4 spaces (indentation)
(#25) Expected indentation of 4 spaces (indentation)
(#26) Expected indentation of 4 spaces (indentation)
(#30) Expected indentation of 4 spaces (indentation)
(#31) Expected indentation of 4 spaces (indentation)
(#33) Expected indentation of 4 spaces (indentation)
(#36) Expected indentation of 4 spaces (indentation)
(#34) Expected indentation of 8 spaces (indentation)
(#35) Expected indentation of 8 spaces (indentation)
lib/editor/tiny/plugins/ai/scss/partials/ai-modal.scss
(#15) Expected single space before "!" (declaration-bang-space-before)
(#15) Unexpected !important (declaration-no-important)
(#9) Unexpected unit (length-zero-no-unit)
(#52) Unexpected unit (length-zero-no-unit)

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

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

lib/editor/tiny/plugins/ai/templates/components/ai-textarea.mustache
(#1) HTML Validation error, line 3: Bad value “” for attribute “name” on element “textarea”: Must not be empty. (d><body><textarea class="tiny_ai-textarea " placeholder="" data-type="" name=""></text)
lib/editor/tiny/plugins/ai/templates/components/moodle-modal-body-dismiss.mustache
(#1) HTML Validation error, line 2: “=” in an unquoted attribute value. Probable causes: Attributes running together or a URL query string in an unquoted attribute value. (ad><body><div id="tiny_ai_dismiss_would-be-a-uniqid" data-tiny_instance_uniqid= class="d-fle)
(#1) HTML Validation error, line 2: “"” in an unquoted attribute value. Probable causes: Attributes running together or a URL query string in an unquoted attribute value. (id= class="d-flex)
(#1) HTML Validation error, line 2: Quote “"” in attribute name. Probable cause: Matching quote missing somewhere earlier. (d= class="d-flex flex-column h-100 justify-content-center align-items-center"> )
(#1) HTML Validation info, line 2: Attribute “align-items-center"” is not serializable as XML 1.0. (ms-center"> <)
(#1) HTML Validation error, line 2: Attribute “flex-column” not allowed on element “div” at this point. (ms-center"> <)
(#1) HTML Validation error, line 2: Attribute “h-100” not allowed on element “div” at this point. (ms-center"> <)
(#1) HTML Validation error, line 2: Attribute “justify-content-center” not allowed on element “div” at this point. (ms-center"> <)
(#1) HTML Validation error, line 2: Attribute “align-items-center"” not allowed on element “div” at this point. (ms-center"> <)
(#1) HTML Validation info, line 5: Empty heading. (> <h5 class="tiny_ai-headline"></h5>)
(#1) ESLint warning [promise/catch-or-return]: Expected catch,fail,always() or return ( Promise.resolve(controller.init());
(#1) ESLint warning [promise/no-native]: "Promise" is not defined. ( Promise.resolve(controller.init());
lib/editor/tiny/plugins/ai/templates/components/moodle-modal-body-itt.mustache
(#1) HTML Validation error, line 2: “=” in an unquoted attribute value. Probable causes: Attributes running together or a URL query string in an unquoted attribute value. (ad><body><div id="tiny_ai__would-be-a-uniqid" data-tiny_instance_uniqid= class="h-100)
(#1) HTML Validation error, line 2: “"” in an unquoted attribute value. Probable causes: Attributes running together or a URL query string in an unquoted attribute value. (id= class="h-100")
(#1) HTML Validation error, line 2: “"” in an unquoted attribute value. Probable causes: Attributes running together or a URL query string in an unquoted attribute value. (d= class="h-100"> )
(#1) HTML Validation error, line 4: Attribute “disabled” not allowed on element “div” at this point. (> <div class="tiny_ai_dropzone justify-content-center w-100" data-type="dropzone" disabled> )
(#1) HTML Validation info, line 7: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. (> <input type="hidden" data-preference="fileupload" /> <)
(#1) HTML Validation error, line 17: Bad value “” for attribute “name” on element “textarea”: Must not be empty. ( <textarea class="tiny_ai-textarea " placeholder="" data-type="" name=""></text)
(#1) ESLint error [max-len]: This line has a length of 171. Maximum allowed is 132. ( require(['tiny_ai/controllers/preferences', 'tiny_ai/controllers/promptedit', 'tiny_ai/controllers/file'], function(Controller, PromptEditController, FileController) {
(#1) ESLint warning [promise/catch-or-return]: Expected catch,fail,always() or return ( Promise.resolve(controller.init());
(#1) ESLint warning [promise/no-native]: "Promise" is not defined. ( Promise.resolve(controller.init());
(#1) ESLint warning [promise/catch-or-return]: Expected catch,fail,always() or return ( Promise.resolve(promptEditController.init());
(#1) ESLint warning [promise/no-native]: "Promise" is not defined. ( Promise.resolve(promptEditController.init());
(#1) ESLint warning [promise/catch-or-return]: Expected catch,fail,always() or return ( Promise.resolve(fileController.init());
(#1) ESLint warning [promise/no-native]: "Promise" is not defined. ( Promise.resolve(fileController.init());
lib/editor/tiny/plugins/ai/templates/components/moodle-modal-body-mediageneration.mustache
(#1) HTML Validation error, line 2: “=” in an unquoted attribute value. Probable causes: Attributes running together or a URL query string in an unquoted attribute value. (ad><body><div id="tiny_ai__would-be-a-uniqid" data-tiny_instance_uniqid= class="h-100)
(#1) HTML Validation error, line 2: “"” in an unquoted attribute value. Probable causes: Attributes running together or a URL query string in an unquoted attribute value. (id= class="h-100")
(#1) HTML Validation error, line 2: “"” in an unquoted attribute value. Probable causes: Attributes running together or a URL query string in an unquoted attribute value. (d= class="h-100"> )
(#1) HTML Validation error, line 4: Bad value “” for attribute “name” on element “textarea”: Must not be empty. (00"> <textarea class="tiny_ai-textarea " placeholder="" data-type="" name=""></text)
(#1) ESLint warning [promise/catch-or-return]: Expected catch,fail,always() or return ( Promise.resolve(controller.init());
(#1) ESLint warning [promise/no-native]: "Promise" is not defined. ( Promise.resolve(controller.init());
(#1) ESLint warning [promise/catch-or-return]: Expected catch,fail,always() or return ( Promise.resolve(promptEditController.init());
(#1) ESLint warning [promise/no-native]: "Promise" is not defined. ( Promise.resolve(promptEditController.init());
lib/editor/tiny/plugins/ai/templates/components/moodle-modal-body-optimize.mustache
(#1) HTML Validation error, line 2: Attribute value missing. (ad><body><div id="tiny_ai_optimize_would-be-a-uniqid" data-tiny_instance_uniqid=> )
(#1) HTML Validation error, line 4: Bad value “” for attribute “name” on element “textarea”: Must not be empty. (id=> <textarea class="tiny_ai-textarea " placeholder="" data-type="" name=""></text)
(#1) ESLint warning [promise/catch-or-return]: Expected catch,fail,always() or return ( Promise.resolve(controller.init());
(#1) ESLint warning [promise/no-native]: "Promise" is not defined. ( Promise.resolve(controller.init());
(#1) ESLint warning [promise/catch-or-return]: Expected catch,fail,always() or return ( Promise.resolve(promptEditController.init());
(#1) ESLint warning [promise/no-native]: "Promise" is not defined. ( Promise.resolve(promptEditController.init());
lib/editor/tiny/plugins/ai/templates/components/moodle-modal-body-preferences.mustache
(#1) HTML Validation error, line 2: “=” in an unquoted attribute value. Probable causes: Attributes running together or a URL query string in an unquoted attribute value. (ad><body><div id="tiny_ai__would-be-a-uniqid" data-tiny_instance_uniqid= class="h-100)
(#1) HTML Validation error, line 2: “"” in an unquoted attribute value. Probable causes: Attributes running together or a URL query string in an unquoted attribute value. (id= class="h-100")
(#1) HTML Validation error, line 2: “"” in an unquoted attribute value. Probable causes: Attributes running together or a URL query string in an unquoted attribute value. (d= class="h-100"> )
(#1) ESLint warning [promise/catch-or-return]: Expected catch,fail,always() or return ( Promise.resolve(controller.init());
(#1) ESLint warning [promise/no-native]: "Promise" is not defined. ( Promise.resolve(controller.init());
(#1) ESLint warning [promise/catch-or-return]: Expected catch,fail,always() or return ( Promise.resolve(promptEditController.init());
(#1) ESLint warning [promise/no-native]: "Promise" is not defined. ( Promise.resolve(promptEditController.init());
lib/editor/tiny/plugins/ai/templates/components/moodle-modal-body-start.mustache
(#1) HTML Validation error, line 2: “=” in an unquoted attribute value. Probable causes: Attributes running together or a URL query string in an unquoted attribute value. (ad><body><div id="tiny_ai_start_would-be-a-uniqid" data-tiny_instance_uniqid= class="tiny_)
(#1) HTML Validation error, line 2: “"” in an unquoted attribute value. Probable causes: Attributes running together or a URL query string in an unquoted attribute value. (id= class="tiny_a)
(#1) HTML Validation error, line 2: “"” in an unquoted attribute value. Probable causes: Attributes running together or a URL query string in an unquoted attribute value. (d= class="tiny_ai_wrapper-l"> )
(#1) ESLint warning [promise/catch-or-return]: Expected catch,fail,always() or return ( Promise.resolve(controller.init());
(#1) ESLint warning [promise/no-native]: "Promise" is not defined. ( Promise.resolve(controller.init());
lib/editor/tiny/plugins/ai/templates/components/moodle-modal-body-suggestion.mustache
(#1) HTML Validation error, line 2: Attribute value missing. (ad><body><div id="tiny_ai_suggestion_would-be-a-uniqid" data-tiny_instance_uniqid=> <)
(#1) ESLint warning [promise/catch-or-return]: Expected catch,fail,always() or return ( Promise.resolve(controller.init());
(#1) ESLint warning [promise/no-native]: "Promise" is not defined. ( Promise.resolve(controller.init());
lib/editor/tiny/plugins/ai/templates/components/moodle-modal-body-textarea.mustache
(#1) HTML Validation error, line 3: Bad value “” for attribute “name” on element “textarea”: Must not be empty. (d><body><textarea class="tiny_ai-textarea " placeholder="" data-type="" name=""></text)
lib/editor/tiny/plugins/ai/templates/components/moodle-modal-header.mustache
(#1) HTML Validation info, line 3: Empty heading. (per"> <h5 class="modal-title tiny_ai-headline" data-region="title"> )
lib/editor/tiny/plugins/ai/templates/components/moodle-modal.mustache
(#1) HTML Validation info, line 8: Empty heading. ( <h5 id="would-be-a-uniqid-modal-title" class="modal-title" data-region="title"></h5>)

Gherkin .feature problems

(0 errors, 0 warnings)

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