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

(6 errors, 12 warnings)

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

lib/editor/tiny/plugins/medial/classes/plugininfo.php
(#37) Missing docblock for class plugininfo
(#90) Inline comments must start with a capital letter, digit or 3-dots sequence
(#99) Missing docblock for function get_available_buttons
(#105) Missing docblock for function get_available_menuitems
(#111) Missing docblock for function get_plugin_configuration_for_context
lib/editor/tiny/plugins/medial/classes/privacy/provider.php
(#34) There must not be a space before the colon in a return type declaration
lib/editor/tiny/plugins/medial/lang/en/tiny_medial.php
(#33) The string key "hideinsert" is not in the correct order, it should be before "privacy:metadata"
(#37) The string key "modtypedesc" is not in the correct order, it should be before "placeholder_desc"
(#40) The string key "uselinkdesc" is not in the correct order, it should be before "uselinktitle"
(#41) The string key "embedopt" is not in the correct order, it should be before "uselinkdesc"
(#45) The string key "iframe" is not in the correct order, it should be before "modaltitle"
(#47) The string key "link" is not in the correct order, it should be before "thumbnail"
(#49) The string key "inserttype" is not in the correct order, it should be before "newtab"
(#51) The string key "showlibrary" is not in the correct order, it should be before "showvideo"
(#52) The string key "medial:visible" is not in the correct order, it should be before "showlibrary"
(#54) The string key "medial:addliblink" is not in the correct order, it should be before "medial:visiblemodtype"
(#55) The string key "allowfeedback" is not in the correct order, it should be before "medial:addliblink"
lib/editor/tiny/plugins/medial/version.php
(#33) There should be a comma after the last array item in a multi-line array.

Javascript coding style problems

(0 errors, 52 warnings)

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

lib/editor/tiny/plugins/medial/amd/src/link.js
(#30) Comments should not begin with a lowercase character. (capitalized-comments)
(#30) Expected space or tab after '//' in comment. (spaced-comment)
(#44) Operator '+' must be spaced. (space-infix-ops)
(#49) Expected catch,fail,always() or return (promise/catch-or-return)
(#52) There should be no space before ','. (comma-spacing)
(#53) A space is required after ','. (comma-spacing)
(#76) Operator '+' must be spaced. (space-infix-ops)
(#100) Extra space after key 'url'. (key-spacing)
(#101) Operator '+' must be spaced. (space-infix-ops)
(#101) Operator '+' must be spaced. (space-infix-ops)
(#101) Operator '+' must be spaced. (space-infix-ops)
(#101) Operator '+' must be spaced. (space-infix-ops)
(#101) Operator '+' must be spaced. (space-infix-ops)
(#101) Operator '+' must be spaced. (space-infix-ops)
lib/editor/tiny/plugins/medial/amd/src/options.js
(#117) Expected space or tab after '//' in comment. (spaced-comment)
lib/editor/tiny/plugins/medial/amd/src/ui.js
(#31) Comments should not begin with a lowercase character. (capitalized-comments)
(#31) Expected space or tab after '//' in comment. (spaced-comment)
(#55) Comments should not begin with a lowercase character. (capitalized-comments)
(#77) Comments should not begin with a lowercase character. (capitalized-comments)
(#77) Expected space or tab after '//' in comment. (spaced-comment)
(#86) Expected space or tab after '//' in comment. (spaced-comment)
(#87) Expected space or tab after '//' in comment. (spaced-comment)
(#89) Expected space or tab after '//' in comment. (spaced-comment)
(#103) Operator '+' must be spaced. (space-infix-ops)
(#117) Operator '+' must be spaced. (space-infix-ops)
(#117) Operator '+' must be spaced. (space-infix-ops)
(#117) Operator '+' must be spaced. (space-infix-ops)
(#117) Operator '+' must be spaced. (space-infix-ops)
(#124) Expected JSDoc block to be aligned. (jsdoc/check-alignment)
(#128) Unused eslint-disable directive (no problems were reported from 'no-console').
(#129) Expected space or tab after '//' in comment. (spaced-comment)
(#130) Expected space or tab after '//' in comment. (spaced-comment)
(#131) Expected space or tab after '//' in comment. (spaced-comment)
(#137) Comments should not begin with a lowercase character. (capitalized-comments)
(#137) Expected space or tab after '//' in comment. (spaced-comment)
(#139) Comments should not begin with a lowercase character. (capitalized-comments)
(#139) Expected space or tab after '//' in comment. (spaced-comment)
(#152) Expected JSDoc block to be aligned. (jsdoc/check-alignment)
(#161) Unused eslint-disable directive (no problems were reported from 'no-console').
(#162) Expected space or tab after '//' in comment. (spaced-comment)
(#163) Expected space or tab after '//' in comment. (spaced-comment)
(#194) There should be no space after this paren. (space-in-parens)
(#194) Statement inside of curly braces should be on next line. (brace-style)
(#194) This line has 3 statements. Maximum allowed is 2. (max-statements-per-line)
(#194) Requires a space before '}'. (block-spacing)
(#194) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#202) There should be no space before ','. (comma-spacing)
(#203) A space is required after ','. (comma-spacing)
(#208) Operator '+' must be spaced. (space-infix-ops)
(#220) Comments should not begin with a lowercase character. (capitalized-comments)
(#220) Expected space or tab after '//' in comment. (spaced-comment)
(#221) Expected space or tab after '//' in comment. (spaced-comment)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(3 errors, 0 warnings)

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

lib/editor/tiny/plugins/medial/classes/plugininfo.php
(#42) Phpdocs for function plugininfo::is_enabled has incomplete parameters list
lib/editor/tiny/plugins/medial/lib.php
(#32) Phpdocs for function tiny_medial_checklist has incomplete parameters list
(#52) Phpdocs for function tiny_medial_has_filter has incomplete parameters list

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

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

lib/editor/tiny/plugins/medial/templates/iframe.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 5: Bad value “” for attribute “src” on element “iframe”: Must be non-empty. (ch-'> <iframe class='embed-responsive-item overflow-auto border-0' src='' allowfullscreen='true' webkitallowfullscreen='true' mozallowfullscreen='true'></ifra)
(#1) HTML Validation error, line 5: Bad value “true” for attribute “allowfullscreen” on element “iframe”. (ch-'> <iframe class='embed-responsive-item overflow-auto border-0' src='' allowfullscreen='true' webkitallowfullscreen='true' mozallowfullscreen='true'></ifra)
(#1) HTML Validation error, line 5: Attribute “webkitallowfullscreen” not allowed on element “iframe” at this point. (ch-'> <iframe class='embed-responsive-item overflow-auto border-0' src='' allowfullscreen='true' webkitallowfullscreen='true' mozallowfullscreen='true'></ifra)
(#1) HTML Validation error, line 5: Attribute “mozallowfullscreen” not allowed on element “iframe” at this point. (ch-'> <iframe class='embed-responsive-item overflow-auto border-0' src='' allowfullscreen='true' webkitallowfullscreen='true' mozallowfullscreen='true'></ifra)
lib/editor/tiny/plugins/medial/templates/library.mustache
(#1) Example context missing (@template section not found.)
lib/editor/tiny/plugins/medial/templates/link.mustache
(#1) Example context missing (@template section not found.)
lib/editor/tiny/plugins/medial/templates/modal.mustache
(#1) HTML Validation error, line 19: Bad value “” for attribute “src” on element “iframe”: Must be non-empty. ( <iframe src="" id="mod_helixmedia_launchframe_" class="embed-responsive-item overflow-auto border-0" allow="microphone ; camera ; display-capture ;" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true"></ifra)
(#1) HTML Validation error, line 19: Bad value “true” for attribute “allowfullscreen” on element “iframe”. ( <iframe src="" id="mod_helixmedia_launchframe_" class="embed-responsive-item overflow-auto border-0" allow="microphone ; camera ; display-capture ;" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true"></ifra)
(#1) HTML Validation error, line 19: Attribute “webkitallowfullscreen” not allowed on element “iframe” at this point. ( <iframe src="" id="mod_helixmedia_launchframe_" class="embed-responsive-item overflow-auto border-0" allow="microphone ; camera ; display-capture ;" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true"></ifra)
(#1) HTML Validation error, line 19: Attribute “mozallowfullscreen” not allowed on element “iframe” at this point. ( <iframe src="" id="mod_helixmedia_launchframe_" class="embed-responsive-item overflow-auto border-0" allow="microphone ; camera ; display-capture ;" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true"></ifra)

Gherkin .feature problems

(0 errors, 0 warnings)

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