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

(0 errors, 1 warnings)

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

local/invitation/classes/helper/date_time.php
(#220) Logical operator "or" is prohibited; use "||" instead

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

(3 errors, 0 warnings)

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

local/invitation/styles.css
(#7) Unexpected !important (declaration-no-important)
(#12) Unexpected !important (declaration-no-important)
(#16) Unexpected !important (declaration-no-important)

PHPDocs style problems

(54 errors, 3 warnings)

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

local/invitation/classes/form/base.php
(#17) No one-line description found in phpdocs for file
local/invitation/classes/form/confirmation.php
(#37) Variable confirmation::$myconfig is not documented
(#17) No one-line description found in phpdocs for file
local/invitation/classes/form/delete.php
(#17) No one-line description found in phpdocs for file
local/invitation/classes/form/invite.php
(#37) Variable invite::$myconfig is not documented
(#17) No one-line description found in phpdocs for file
(#95) Not recommended phpdocs tag @global used
local/invitation/classes/form/update.php
(#36) Variable update::$myconfig is not documented
(#17) No one-line description found in phpdocs for file
(#98) Not recommended phpdocs tag @global used
local/invitation/classes/globals.php
(#17) No one-line description found in phpdocs for file
(#37) Not recommended phpdocs tag @global used
local/invitation/classes/helper/date_time.php
(#79) Function date_time::get_first_day_of_week is not documented
(#96) Function date_time::get_last_day_of_week is not documented
(#34) Constant date_time::MINUTE is not documented
(#35) Constant date_time::HOUR is not documented
(#36) Constant date_time::DAY is not documented
(#17) No one-line description found in phpdocs for file
(#122) There is no description in phpdocs for function get_first_day_of_prev_month
(#132) There is no description in phpdocs for function get_first_day_of_next_month
(#163) There is no description in phpdocs for function get_last_day_of_prev_month
(#173) There is no description in phpdocs for function get_last_day_of_next_month
(#41) Phpdocs for function date_time::get_month has incomplete parameters list
(#52) Phpdocs for function date_time::get_year has incomplete parameters list
local/invitation/classes/helper/util.php
(#36) Constant util::PREVENTPATTERNS is not documented
(#17) No one-line description found in phpdocs for file
(#309) Phpdocs for function util::get_free_username has incomplete parameters list
local/invitation/classes/observer.php
(#17) No one-line description found in phpdocs for file
local/invitation/classes/output/component/base.php
(#36) Variable base::$data is not documented
(#17) No one-line description found in phpdocs for file
local/invitation/classes/output/component/delete_form_box.php
(#35) Variable delete_form_box::$deleteform is not documented
(#17) No one-line description found in phpdocs for file
local/invitation/classes/output/component/edit_form_box.php
(#35) Variable edit_form_box::$editform is not documented
(#17) No one-line description found in phpdocs for file
local/invitation/classes/output/component/form.php
(#35) Variable form::$mform is not documented
(#17) No one-line description found in phpdocs for file
(#40) Phpdocs for function form::__construct has incomplete parameters list
local/invitation/classes/output/component/infobox.php
(#17) No one-line description found in phpdocs for file
local/invitation/classes/output/component/invitation_info.php
(#35) Variable invitation_info::$editwidget is not documented
(#17) No one-line description found in phpdocs for file
local/invitation/classes/output/component/welcome_note.php
(#17) No one-line description found in phpdocs for file
local/invitation/classes/output/navigation.php
(#17) No one-line description found in phpdocs for file
local/invitation/classes/output/renderer.php
(#17) No one-line description found in phpdocs for file
local/invitation/classes/task/remove_old_invitations.php
(#17) No one-line description found in phpdocs for file
local/invitation/db/access.php
(#17) No one-line description found in phpdocs for file
local/invitation/db/events.php
(#17) No one-line description found in phpdocs for file
local/invitation/db/tasks.php
(#17) No one-line description found in phpdocs for file
local/invitation/db/uninstall.php
(#17) No one-line description found in phpdocs for file
local/invitation/db/upgrade.php
(#26) Function xmldb_local_invitation_upgrade is not documented
local/invitation/error.php
(#17) No one-line description found in phpdocs for file
local/invitation/invite.php
(#17) No one-line description found in phpdocs for file
local/invitation/join.php
(#17) No one-line description found in phpdocs for file
local/invitation/lang/en/local_invitation.php
(#17) No one-line description found in phpdocs for file
local/invitation/lib.php
(#17) No one-line description found in phpdocs for file
local/invitation/settings.php
(#17) No one-line description found in phpdocs for file
local/invitation/tests/lib_test.php
(#41) Variable lib_test::$examples is not documented
local/invitation/version.php
(#17) No one-line description found in phpdocs for file

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:css" 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, 32 warnings)

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

local/invitation/templates/delete_form_box.mustache
(#1) ESLint error [no-unused-vars]: 'element' is defined but never used. ( mymodal.on('show.bs.modal', function(element) {
(#1) ESLint error [no-unused-vars]: 'element' is defined but never used. ( mymodal.on('shown.bs.modal', function(element) {
(#1) ESLint error [no-unused-vars]: 'event' is defined but never used. ( mymodal.on('hidden.bs.modal', function(event) {
local/invitation/templates/edit_form_box.mustache
(#1) ESLint error [no-unused-vars]: 'element' is defined but never used. ( mymodal.on('show.bs.modal', function(element) {
(#1) ESLint error [no-unused-vars]: 'element' is defined but never used. ( mymodal.on('shown.bs.modal', function(element) {
(#1) ESLint error [no-unused-vars]: 'event' is defined but never used. ( mymodal.on('hidden.bs.modal', function(event) {
local/invitation/templates/invitation_info.mustache
(#1) HTML Validation error, line 16: Bad value “https://....” for attribute “href” on element “a”: Invalid host: A non-final domain name label (or the whole domain name) is empty.. ( <a id="inviteurl-would-be-a-uniqid" href="https://....">https:)
(#1) HTML Validation error, line 26: The “width” attribute on the “th” element is obsolete. Use CSS instead. ( <tr> <th width="190px"> )
(#1) HTML Validation error, line 62: Bad value “svg string” for attribute “src” on element “img”: Illegal character in path segment: space is not allowed. ( <img class="qrcode" src="svg string" alt="qrcodetitle"> )
(#1) HTML Validation error, line 67: Bad value “svg string” for attribute “src” on element “img”: Illegal character in path segment: space is not allowed. ( <img class="qrcode mt-2" src="svg string" alt="qrcodetitle"> )
(#1) HTML Validation error, line 77: Bad value “https://...” for attribute “href” on element “a”: Invalid host: A non-final domain name label (or the whole domain name) is empty.. ( <a href="https://..." class="btn btn-primary"><i cla)
(#1) ESLint warning [space-before-blocks]: Missing space before opening brace. ( setTimeout(function(){
(#1) ESLint warning [space-before-blocks]: Missing space before opening brace. ( setTimeout(function(){
(#1) ESLint warning [camelcase]: Identifier 'copy_to_clipboard' is not in camel case. ( var copy_to_clipboard = function(elem) {
(#1) ESLint error [no-unused-vars]: 'origSelectionStart' is defined but never used. ( var origSelectionStart, origSelectionEnd;
(#1) ESLint error [no-unused-vars]: 'origSelectionEnd' is defined but never used. ( var origSelectionStart, origSelectionEnd;
(#1) ESLint warning [capitalized-comments]: Comments should not begin with a lowercase character. ( // must use a temporary form element for the selection and copy
(#1) ESLint warning [block-scoped-var]: 'target' used outside of binding context. ( target = document.getElementById(targetId);
(#1) ESLint warning [block-scoped-var]: 'target' used outside of binding context. ( if (!target) {
(#1) ESLint warning [block-scoped-var]: 'target' used outside of binding context. ( target.textContent = elem.text();
(#1) ESLint warning [capitalized-comments]: Comments should not begin with a lowercase character. ( // select the content
(#1) ESLint warning [block-scoped-var]: 'target' used outside of binding context. ( target.focus();
(#1) ESLint warning [block-scoped-var]: 'target' used outside of binding context. ( target.setSelectionRange(0, target.value.length);
(#1) ESLint warning [block-scoped-var]: 'target' used outside of binding context. ( target.setSelectionRange(0, target.value.length);
(#1) ESLint warning [capitalized-comments]: Comments should not begin with a lowercase character. ( // copy the selection
(#1) ESLint warning [keyword-spacing]: Expected space(s) after "catch". ( } catch(e) {
(#1) ESLint warning [capitalized-comments]: Comments should not begin with a lowercase character. ( // restore original focus
(#1) ESLint warning [capitalized-comments]: Comments should not begin with a lowercase character. ( // clear temporary content
(#1) ESLint warning [block-scoped-var]: 'target' used outside of binding context. ( target.textContent = "";
local/invitation/templates/simple_modal_form.mustache
(#1) ESLint error [no-unused-vars]: 'element' is defined but never used. ( mymodal.on('show.bs.modal', function(element) {
(#1) ESLint error [no-unused-vars]: 'element' is defined but never used. ( mymodal.on('shown.bs.modal', function(element) {
(#1) ESLint error [no-unused-vars]: 'event' is defined but never used. ( mymodal.on('hidden.bs.modal', function(event) {

Gherkin .feature problems

(0 errors, 0 warnings)

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