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

(27 errors, 80 warnings)

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

theme/trema/classes/output/core/course_renderer.php
(#86) Short array syntax must be used to define arrays
(#88) Short array syntax must be used to define arrays
(#89) Short array syntax must be used to define arrays
(#95) Short array syntax must be used to define arrays
(#104) Short array syntax must be used to define arrays
(#108) Short array syntax must be used to define arrays
(#120) Short array syntax must be used to define arrays
(#171) Short array syntax must be used to define arrays
(#180) Short array syntax must be used to define arrays
(#222) Short array syntax must be used to define arrays
(#224) Short array syntax must be used to define arrays
(#231) There should be a comma after the last array item in a multi-line array.
(#236) Short array syntax must be used to define arrays
(#240) Short array syntax must be used to define arrays
(#249) Short array syntax must be used to define arrays
(#256) Short array syntax must be used to define arrays
(#257) Short array syntax must be used to define arrays
(#261) Short array syntax must be used to define arrays
(#272) Short array syntax must be used to define arrays
(#274) Short array syntax must be used to define arrays
(#275) Short array syntax must be used to define arrays
(#285) Short array syntax must be used to define arrays
(#286) Short array syntax must be used to define arrays
(#290) There should be a comma after the last array item in a multi-line array.
(#297) There should be a comma after the last array item in a multi-line array.
(#301) There should be a comma after the last array item in a multi-line array.
(#325) Short array syntax must be used to define arrays
(#326) There should be a comma after the last array item in a multi-line array.
(#336) Short array syntax must be used to define arrays
(#337) There should be a comma after the last array item in a multi-line array.
(#354) There should be a comma after the last array item in a multi-line array.
(#375) Short array syntax must be used to define arrays
theme/trema/classes/output/core_renderer.php
(#128) Short array syntax must be used to define arrays
theme/trema/config.php
(#52) Short array syntax must be used to define arrays
(#57) Short array syntax must be used to define arrays
(#59) Short array syntax must be used to define arrays
(#62) Short array syntax must be used to define arrays
(#64) Short array syntax must be used to define arrays
(#68) Short array syntax must be used to define arrays
(#70) Short array syntax must be used to define arrays
(#72) Short array syntax must be used to define arrays
(#74) Short array syntax must be used to define arrays
(#76) Short array syntax must be used to define arrays
(#80) Short array syntax must be used to define arrays
(#82) Short array syntax must be used to define arrays
(#86) Short array syntax must be used to define arrays
(#88) Short array syntax must be used to define arrays
(#90) Short array syntax must be used to define arrays
(#93) Short array syntax must be used to define arrays
(#95) Short array syntax must be used to define arrays
(#99) Short array syntax must be used to define arrays
(#101) Short array syntax must be used to define arrays
(#103) Short array syntax must be used to define arrays
(#106) Short array syntax must be used to define arrays
(#108) Short array syntax must be used to define arrays
(#111) Short array syntax must be used to define arrays
(#113) Short array syntax must be used to define arrays
(#114) Short array syntax must be used to define arrays
(#118) Short array syntax must be used to define arrays
(#120) Short array syntax must be used to define arrays
(#121) Short array syntax must be used to define arrays
(#124) Short array syntax must be used to define arrays
(#126) Short array syntax must be used to define arrays
(#127) Short array syntax must be used to define arrays
(#130) Short array syntax must be used to define arrays
(#132) Short array syntax must be used to define arrays
(#132) There should be a comma after the last array item in a multi-line array.
(#137) Short array syntax must be used to define arrays
(#139) Short array syntax must be used to define arrays
(#142) Short array syntax must be used to define arrays
(#144) Short array syntax must be used to define arrays
(#145) Short array syntax must be used to define arrays
(#148) Short array syntax must be used to define arrays
(#150) Short array syntax must be used to define arrays
(#153) Short array syntax must be used to define arrays
(#155) Short array syntax must be used to define arrays
(#159) Short array syntax must be used to define arrays
(#161) Short array syntax must be used to define arrays
(#162) There should be a comma after the last array item in a multi-line array.
(#163) There should be a comma after the last array item in a multi-line array.
(#172) There should be a comma after the last array item in a multi-line array.
theme/trema/db/caches.php
(#31) Short array syntax must be used to define arrays
(#32) Short array syntax must be used to define arrays
(#35) There should be a comma after the last array item in a multi-line array.
theme/trema/layout/columns2.php
(#82) Duplicate array key found. The value will be overwritten. The string array key "regionmainsettingsmenu" was first seen on line 77
(#83) Duplicate array key found. The value will be overwritten. The string array key "hasregionmainsettingsmenu" was first seen on line 78
theme/trema/layout/frontpage.php
(#107) There should be a comma after the last array item in a multi-line array.
(#125) Duplicate array key found. The value will be overwritten. The string array key "regionmainsettingsmenu" was first seen on line 120
(#126) Duplicate array key found. The value will be overwritten. The string array key "hasregionmainsettingsmenu" was first seen on line 121
theme/trema/layout/login.php
(#32) There should be a comma after the last array item in a multi-line array.
(#46) There should be a comma after the last array item in a multi-line array.
(#50) There should be a comma after the last array item in a multi-line array.
theme/trema/layout/mydashboard.php
(#71) There should be a comma after the last array item in a multi-line array.
theme/trema/lib.php
(#123) Short array syntax must be used to define arrays
theme/trema/locallib.php
(#34) Short array syntax must be used to define arrays
theme/trema/settings/content_settings.php
(#45) There should be a comma after the last array item in a multi-line array.
(#50) Short array syntax must be used to define arrays
(#58) There should be a comma after the last array item in a multi-line array.
(#206) Short array syntax must be used to define arrays
(#209) There should be a comma after the last array item in a multi-line array.
(#257) Short array syntax must be used to define arrays
(#259) There should be a comma after the last array item in a multi-line array.
(#278) Short array syntax must be used to define arrays
(#280) There should be a comma after the last array item in a multi-line array.
theme/trema/settings/general_settings.php
(#75) Short array syntax must be used to define arrays
theme/trema/settings/login_settings.php
(#32) Short array syntax must be used to define arrays
(#35) There should be a comma after the last array item in a multi-line array.

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

(14 errors, 0 warnings)

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

theme/trema/scss/trema/drawer.scss
(#93) Expected single space before "{" (block-opening-brace-space-before)
theme/trema/scss/trema/footer.scss
(#106) Unexpected !important (declaration-no-important)
(#107) Unexpected !important (declaration-no-important)
theme/trema/scss/trema/main.scss
(#289) Expected newline after "}" (block-closing-brace-newline-after)
theme/trema/scss/trema/message.scss
(#7) Unexpected !important (declaration-no-important)
(#16) Unexpected !important (declaration-no-important)
(#17) Unexpected !important (declaration-no-important)
(#24) Unexpected !important (declaration-no-important)
(#80) Unexpected !important (declaration-no-important)
(#145) Unexpected !important (declaration-no-important)
(#170) Unexpected !important (declaration-no-important)
theme/trema/scss/trema/modules.scss
(#78) Unexpected !important (declaration-no-important)
(#158) Unexpected !important (declaration-no-important)
(#178) Unexpected !important (declaration-no-important)

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

(1 errors, 1 warnings)

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

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

shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 8 warnings)

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

theme/trema/templates/columns2.mustache
(#1) HTML Validation info, line 5: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. (itle> <link rel="shortcut icon" href="favicon.ico" /> )
(#1) HTML Validation info, line 87: Section lacks heading. Consider using “h2”-“h6” elements to add identifying headings to all sections, or else use a “div” element instead for any cases where no heading is needed. ( <section class="col-12 text-center col-12-medium col-12-xsmall footer-info"> )
(#1) HTML Validation info, line 93: Section lacks heading. Consider using “h2”-“h6” elements to add identifying headings to all sections, or else use a “div” element instead for any cases where no heading is needed. ( <section class="col-12 footer-info"> )
(#1) HTML Validation info, line 97: Section lacks heading. Consider using “h2”-“h6” elements to add identifying headings to all sections, or else use a “div” element instead for any cases where no heading is needed. ( <section class="col-12 text-center col-12-medium col-12-xsmall footer-info smalltext d-none"> )
(#1) HTML Validation info, line 2: Consider adding a “lang” attribute to the “html” start tag to declare the language of this document. (TYPE html><html ><head)
(#1) ESLint warning [new-cap]: A constructor name should not start with a lowercase letter. ( (new scroll()).init();
theme/trema/templates/core/loginform.mustache
(#1) HTML Validation info, line 38: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="checkbox" name="rememberusername" id="rememberusername" value="1" /> )
(#1) HTML Validation info, line 57: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="hidden" name="username" value="guest" /> )
(#1) HTML Validation info, line 58: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="hidden" name="password" value="guest" /> )
theme/trema/templates/course_summary_modal.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation info, line 15: Empty heading. (> <h3 class="modal-title" id="modal-title-would-be-a-uniqid"></h3>)
theme/trema/templates/drawers.mustache
(#1) HTML Validation info, line 5: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. (itle> <link rel="shortcut icon" href="favicon.ico" /> )
(#1) HTML Validation info, line 2: Consider adding a “lang” attribute to the “html” start tag to declare the language of this document. (TYPE html><html ><head)
theme/trema/templates/footer.mustache
(#1) Example context missing.
(#1) HTML Validation info, line 5: Section lacks heading. Consider using “h2”-“h6” elements to add identifying headings to all sections, or else use a “div” element instead for any cases where no heading is needed. ( <section class="col-12 text-center col-12-medium col-12-xsmall footer-info"> )
(#1) HTML Validation info, line 11: Section lacks heading. Consider using “h2”-“h6” elements to add identifying headings to all sections, or else use a “div” element instead for any cases where no heading is needed. ( <section class="col-12 footer-info"> )
(#1) HTML Validation info, line 15: Section lacks heading. Consider using “h2”-“h6” elements to add identifying headings to all sections, or else use a “div” element instead for any cases where no heading is needed. ( <section class="col-12 text-center col-12-medium col-12-xsmall footer-info smalltext d-none"> )
theme/trema/templates/frontpage.mustache
(#1) HTML Validation info, line 5: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. (itle> <link rel="shortcut icon" href="favicon.ico" /> )
(#1) HTML Validation info, line 112: Consider using the “h1” element as a top-level heading only (all “h1” elements are treated as top-level headings by many screen readers and other tools). ( <h1>Headin)
(#1) HTML Validation info, line 2: Consider adding a “lang” attribute to the “html” start tag to declare the language of this document. (TYPE html><html ><head)
theme/trema/templates/frontpage_cards.mustache
(#1) Example context missing (@template section not found.)
theme/trema/templates/frontpage_settings_menu.mustache
(#1) Example context missing.
(#1) Template produced no content
theme/trema/templates/login.mustache
(#1) HTML Validation info, line 5: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. (itle> <link rel="shortcut icon" href="favicon.ico" /> )
(#1) HTML Validation info, line 2: Consider adding a “lang” attribute to the “html” start tag to declare the language of this document. (TYPE html><html ><head)
theme/trema/templates/mydashboard.mustache
(#1) HTML Validation info, line 5: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. (itle> <link rel="shortcut icon" href="favicon.ico" /> )
(#1) HTML Validation info, line 2: Consider adding a “lang” attribute to the “html” start tag to declare the language of this document. (TYPE html><html ><head)
theme/trema/templates/mydashboard_admin.mustache
(#1) Example context missing.
(#1) HTML Validation info, line 7: Empty heading. ( <h4></h4>)
theme/trema/templates/navbar.mustache
(#1) Example context missing (@template section not found.)
theme/trema/templates/navbar_login.mustache
(#1) Example context missing (@template section not found.)
(#1) Template produced no content

Gherkin .feature problems

(0 errors, 0 warnings)

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