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

(1 errors, 2 warnings)

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

theme/foundation/classes/output/core/output/mustache_filesystem_loader.php
(#46) Protected method name "mustache_filesystem_loader::getFileName" must be in lower-case letters only
theme/foundation/classes/output/external.php
(#28) Expected MOODLE_INTERNAL check or config.php inclusion
theme/foundation/version.php
(#29) This comment is 42% valid code; is this commented out code?

Javascript coding style problems

(10 errors, 1 warnings)

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

theme/foundation/amd/src/collapseblock.js
(#10) Unexpected 'this'. (no-invalid-this)
(#26) Missing semicolon. (semi)
theme/foundation/Gruntfile.js
(#43) 'module' is not defined. (no-undef)
(#46) 'process' is not defined. (no-undef)
(#46) 'process' is not defined. (no-undef)
(#53) 'process' is not defined. (no-undef)
(#62) '__dirname' is not defined. (no-undef)
(#63) '__dirname' is not defined. (no-undef)
(#103) '__dirname' is not defined. (no-undef)
(#104) 'process' is not defined. (no-undef)
(#162) Identifier 'dynamic_mappings' is not in camel case. (camelcase)

CSS problems

(1 errors, 0 warnings)

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

theme/foundation/style/fallback.css
(#11686) "declaration-no-important" has already been disabled (CssSyntaxError)

PHPDocs style problems

(6 errors, 0 warnings)

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

theme/foundation/classes/output/external.php
(#28) Class external is not documented
(#33) Phpdocs for function external::load_template has incomplete parameters list
theme/foundation/lib.php
(#92) Phpdocs for function theme_foundation_override_webservice_execution has incomplete parameters list
theme/foundation/tests/privacy_provider_test.php
(#38) Function theme_foundation_privacy_testcase::set_up is not documented
(#32) Class theme_foundation_privacy_testcase does not have @copyright tag
(#32) Class theme_foundation_privacy_testcase does not have @license tag

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

(1 errors, 1 warnings)

This section shows files built by grunt and not commited [More info]

Task "stylelint:css" failed. Use --force to continue.
Problems running grunt

shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 9 warnings)

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

theme/foundation/templates/core/form_autocomplete_input.mustache
(#1) HTML Validation error, line 2: Bad value “” for attribute “id” on element “input”: An ID must not be the empty string. (ad><body><input type="text" id="" placeholder="Select something" role="textbox" aria-owns="3"/></b)
(#1) HTML Validation info, line 2: The “textbox” role is unnecessary for an “input” element that has no “list” attribute and whose type is “text”. (ad><body><input type="text" id="" placeholder="Select something" role="textbox" aria-owns="3"/></b)
(#1) HTML Validation error, line 2: The “aria-owns” attribute must point to an element in the same document. (ad><body><input type="text" id="" placeholder="Select something" role="textbox" aria-owns="3"/></b)
theme/foundation/templates/core/form_autocomplete_selection.mustache
(#1) HTML Validation error, line 2: Attribute “aria-multiselectable” not allowed on element “div” at this point. (ad><body><div class="form-autocomplete-selection w-100 form-autocomplete-multiple" id="1" role="list" aria-atomic="true" tabindex="0" aria-multiselectable="true"><span)
(#1) HTML Validation error, line 4: Attribute “aria-selected” not allowed on element “span” at this point. (> <span role="listitem" data-value="5" aria-selected="true" class="tag tag-info mb-3 mr-1" style="font-size: 100%"> )
(#1) HTML Validation error, line 7: Attribute “aria-selected” not allowed on element “span” at this point. (> <span role="listitem" data-value="4" aria-selected="true" class="tag tag-info mb-3 mr-1" style="font-size: 100%"> )
theme/foundation/templates/partials/head.mustache
(#1) HTML Validation error, line 2: Start tag seen without seeing a doctype first. Expected “<!DOCTYPE html>”. (<html ><head)
(#1) HTML Validation error, line 4: Element “title” must not be empty. ( <title></title> <)
(#1) HTML Validation error, line 5: Bad value “” for attribute “href” on element “link”: Must be non-empty. (itle> <link rel="shortcut icon" href="" /> )