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

(61 errors, 5 warnings)

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

blocks/dash/block_dash.php
(#91) global $PAGE cannot be used in block classes. Use $this->page.
(#108) global $PAGE cannot be used in block classes. Use $this->page.
blocks/dash/classes/external.php
(#44) Perl-style comments are not allowed; use "// Comment." instead
(#73) Variable "block_instance_id" must not contain underscores.
(#73) Variable "filter_form_data" must not contain underscores.
(#73) Variable "sort_field" must not contain underscores.
(#77) Variable "block_instance_id" must not contain underscores.
(#79) Variable "filter_form_data" must not contain underscores.
(#80) Variable "sort_field" must not contain underscores.
(#137) Perl-style comments are not allowed; use "// Comment." instead
(#139) Perl-style comments are not allowed; use "// Comment." instead
(#224) Perl-style comments are not allowed; use "// Comment." instead
blocks/dash/classes/local/block_builder.php
(#78) global $PAGE cannot be used in block classes. Use $this->page.
(#81) global $PAGE cannot be used in block classes. Use $this->page.
(#94) global $PAGE cannot be used in block classes. Use $this->page.
blocks/dash/classes/local/data_grid/data_grid.php
(#43) Perl-style comments are not allowed; use "// Comment." instead
(#100) Perl-style comments are not allowed; use "// Comment." instead
(#199) Perl-style comments are not allowed; use "// Comment." instead
(#231) The final declaration must precede the visibility declaration
(#252) The final declaration must precede the visibility declaration
(#277) Perl-style comments are not allowed; use "// Comment." instead
(#279) Perl-style comments are not allowed; use "// Comment." instead
(#297) Perl-style comments are not allowed; use "// Comment." instead
(#299) Perl-style comments are not allowed; use "// Comment." instead
(#301) Perl-style comments are not allowed; use "// Comment." instead
(#303) Perl-style comments are not allowed; use "// Comment." instead
(#312) The abstract declaration must precede the visibility declaration
(#328) The abstract declaration must precede the visibility declaration
(#330) Perl-style comments are not allowed; use "// Comment." instead
(#332) Perl-style comments are not allowed; use "// Comment." instead
(#384) Perl-style comments are not allowed; use "// Comment." instead
(#386) Perl-style comments are not allowed; use "// Comment." instead
(#399) Perl-style comments are not allowed; use "// Comment." instead
(#401) Perl-style comments are not allowed; use "// Comment." instead
(#439) Perl-style comments are not allowed; use "// Comment." instead
blocks/dash/classes/local/data_grid/field/abstract_field_definition.php
(#127) The final declaration must precede the visibility declaration
(#135) Perl-style comments are not allowed; use "// Comment." instead
(#180) Inline comments must end in full-stops, exclamation marks, or question marks
(#186) Inline comments must start with a capital letter, digit or 3-dots sequence
(#190) Perl-style comments are not allowed; use "// Comment." instead
(#192) Perl-style comments are not allowed; use "// Comment." instead
(#242) Perl-style comments are not allowed; use "// Comment." instead
(#244) Perl-style comments are not allowed; use "// Comment." instead
(#286) Perl-style comments are not allowed; use "// Comment." instead
(#288) Perl-style comments are not allowed; use "// Comment." instead
(#357) Perl-style comments are not allowed; use "// Comment." instead
(#369) Whitespace found at end of line within string
blocks/dash/classes/local/data_grid/field/attribute/abstract_field_attribute.php
(#75) Perl-style comments are not allowed; use "// Comment." instead
(#127) Perl-style comments are not allowed; use "// Comment." instead
blocks/dash/classes/local/data_grid/field/attribute/rename_ids_attribute.php
(#49) The final declaration must precede the visibility declaration
blocks/dash/classes/local/data_grid/filter/filter.php
(#289) This comment is 50% valid code; is this commented out code?
blocks/dash/classes/local/data_grid/sql_data_grid.php
(#266) Perl-style comments are not allowed; use "// Comment." instead
(#287) Perl-style comments are not allowed; use "// Comment." instead
blocks/dash/classes/local/data_source/abstract_data_source.php
(#110) The final declaration must precede the visibility declaration
(#141) The final declaration must precede the visibility declaration
(#198) The final declaration must precede the visibility declaration
(#276) The final declaration must precede the visibility declaration
(#312) Perl-style comments are not allowed; use "// Comment." instead
(#320) The final declaration must precede the visibility declaration
(#333) The final declaration must precede the visibility declaration
(#342) The final declaration must precede the visibility declaration
(#346) Perl-style comments are not allowed; use "// Comment." instead
(#371) The final declaration must precede the visibility declaration
blocks/dash/classes/local/layout/abstract_layout.php
(#244) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/dash/classes/output/mustache_custom_loader.php
(#52) Protected method name "mustache_custom_loader::getFileName" must be in lower-case letters only
blocks/dash/field_definitions.php
(#287) Line exceeds 132 characters; contains 160 characters

Javascript coding style problems

(3 errors, 15 warnings)

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

blocks/dash/amd/src/dash_instance.js
(#1) This line has a length of 142. Maximum allowed is 132. (max-len)
(#26) Unexpected space before function parentheses. (space-before-function-paren)
(#26) 'e' is defined but never used. (no-unused-vars)
(#34) Unexpected space before function parentheses. (space-before-function-paren)
(#91) Identifier 'block_instance_id' is not in camel case. (camelcase)
(#92) Identifier 'filter_form_data' is not in camel case. (camelcase)
(#94) Identifier 'sort_field' is not in camel case. (camelcase)
blocks/dash/amd/src/preferences_modal.js
(#13) Missing JSDoc for parameter 'onCloseCallback'. (valid-jsdoc)
(#76) 'e' is defined but never used. (no-unused-vars)
(#95) Missing JSDoc for parameter 'formdata'. (valid-jsdoc)
(#109) Missing JSDoc for parameter 'formData'. (valid-jsdoc)
(#109) Missing JSDoc for parameter 'closeWhenDone'. (valid-jsdoc)
(#109) Missing JSDoc for parameter 'response'. (valid-jsdoc)
(#112) Unexpected @return tag; function has no return statement. (valid-jsdoc)
(#122) Missing JSDoc for parameter 'data'. (valid-jsdoc)
(#125) Unexpected @return tag; function has no return statement. (valid-jsdoc)
(#138) Expected JSDoc for 'closeWhenDone' but found 'e'. (valid-jsdoc)
(#139) Expected JSDoc for 'e' but found 'closeWhenDone'. (valid-jsdoc)

CSS problems

(96 errors, 21 warnings)

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

blocks/dash/styles.css
(#206) Invalid value for `background-image` (csstree/validator)
(#207) Invalid value for `background-image` (csstree/validator)
(#209) Invalid value for `background-image` (csstree/validator)
(#210) Invalid value for `background-image` (csstree/validator)
(#213) Can't parse value "progid:DXImageTransform.Microsoft.gradient(startColorstr='#fdd49a', endColorstr='#fdf59a', GradientType=0)" (csstree/validator)
(#216) Can't parse value "progid:DXImageTransform.Microsoft.gradient(enabled=false)" (csstree/validator)
(#271) Invalid value for `background-image` (csstree/validator)
(#272) Invalid value for `background-image` (csstree/validator)
(#274) Invalid value for `background-image` (csstree/validator)
(#275) Invalid value for `background-image` (csstree/validator)
(#278) Can't parse value "progid:DXImageTransform.Microsoft.gradient(startColorstr='#f3c17a', endColorstr='#f3e97a', GradientType=0)" (csstree/validator)
(#281) Can't parse value "progid:DXImageTransform.Microsoft.gradient(enabled=false)" (csstree/validator)
(#323) Invalid value for `background-image` (csstree/validator)
(#324) Invalid value for `background-image` (csstree/validator)
(#326) Invalid value for `background-image` (csstree/validator)
(#327) Invalid value for `background-image` (csstree/validator)
(#330) Can't parse value "progid:DXImageTransform.Microsoft.gradient(startColorstr='#b3b3b3', endColorstr='#808080', GradientType=0)" (csstree/validator)
(#333) Can't parse value "progid:DXImageTransform.Microsoft.gradient(enabled=false)" (csstree/validator)
(#374) Invalid value for `background-image` (csstree/validator)
(#375) Invalid value for `background-image` (csstree/validator)
(#377) Invalid value for `background-image` (csstree/validator)
(#378) Invalid value for `background-image` (csstree/validator)
(#381) Can't parse value "progid:DXImageTransform.Microsoft.gradient(startColorstr='#08c', endColorstr='#0044cc', GradientType=0)" (csstree/validator)
(#384) Can't parse value "progid:DXImageTransform.Microsoft.gradient(enabled=false)" (csstree/validator)
(#447) Invalid value for `background-image` (csstree/validator)
(#448) Invalid value for `background-image` (csstree/validator)
(#450) Invalid value for `background-image` (csstree/validator)
(#451) Invalid value for `background-image` (csstree/validator)
(#454) Can't parse value "progid:DXImageTransform.Microsoft.gradient(startColorstr='#08c', endColorstr='#0044cc', GradientType=0)" (csstree/validator)
(#457) Can't parse value "progid:DXImageTransform.Microsoft.gradient(enabled=false)" (csstree/validator)
(#367) Expected "#666666" to be "#666" (color-hex-length)
(#374) Expected "#0044cc" to be "#04c" (color-hex-length)
(#375) Expected "#0044cc" to be "#04c" (color-hex-length)
(#376) Expected "#0044cc" to be "#04c" (color-hex-length)
(#377) Expected "#0044cc" to be "#04c" (color-hex-length)
(#378) Expected "#0044cc" to be "#04c" (color-hex-length)
(#379) Expected "#0044cc" to be "#04c" (color-hex-length)
(#382) Expected "#0044cc" to be "#04c" (color-hex-length)
(#382) Expected "#0044cc" to be "#04c" (color-hex-length)
(#408) Expected "#0044cc" to be "#04c" (color-hex-length)
(#418) Expected "#003399" to be "#039" (color-hex-length)
(#447) Expected "#0044cc" to be "#04c" (color-hex-length)
(#448) Expected "#0044cc" to be "#04c" (color-hex-length)
(#449) Expected "#0044cc" to be "#04c" (color-hex-length)
(#450) Expected "#0044cc" to be "#04c" (color-hex-length)
(#451) Expected "#0044cc" to be "#04c" (color-hex-length)
(#452) Expected "#0044cc" to be "#04c" (color-hex-length)
(#455) Expected "#0044cc" to be "#04c" (color-hex-length)
(#455) Expected "#0044cc" to be "#04c" (color-hex-length)
(#481) Expected "#0044cc" to be "#04c" (color-hex-length)
(#491) Expected "#003399" to be "#039" (color-hex-length)
(#207) Unexpected duplicate "background-image" (declaration-block-no-duplicate-properties)
(#208) Unexpected duplicate "background-image" (declaration-block-no-duplicate-properties)
(#209) Unexpected duplicate "background-image" (declaration-block-no-duplicate-properties)
(#210) Unexpected duplicate "background-image" (declaration-block-no-duplicate-properties)
(#211) Unexpected duplicate "background-image" (declaration-block-no-duplicate-properties)
(#215) Unexpected duplicate "border-color" (declaration-block-no-duplicate-properties)
(#216) Unexpected duplicate "filter" (declaration-block-no-duplicate-properties)
(#272) Unexpected duplicate "background-image" (declaration-block-no-duplicate-properties)
(#273) Unexpected duplicate "background-image" (declaration-block-no-duplicate-properties)
(#274) Unexpected duplicate "background-image" (declaration-block-no-duplicate-properties)
(#275) Unexpected duplicate "background-image" (declaration-block-no-duplicate-properties)
(#276) Unexpected duplicate "background-image" (declaration-block-no-duplicate-properties)
(#280) Unexpected duplicate "border-color" (declaration-block-no-duplicate-properties)
(#281) Unexpected duplicate "filter" (declaration-block-no-duplicate-properties)
(#324) Unexpected duplicate "background-image" (declaration-block-no-duplicate-properties)
(#325) Unexpected duplicate "background-image" (declaration-block-no-duplicate-properties)
(#326) Unexpected duplicate "background-image" (declaration-block-no-duplicate-properties)
(#327) Unexpected duplicate "background-image" (declaration-block-no-duplicate-properties)
(#328) Unexpected duplicate "background-image" (declaration-block-no-duplicate-properties)
(#332) Unexpected duplicate "border-color" (declaration-block-no-duplicate-properties)
(#333) Unexpected duplicate "filter" (declaration-block-no-duplicate-properties)
(#375) Unexpected duplicate "background-image" (declaration-block-no-duplicate-properties)
(#376) Unexpected duplicate "background-image" (declaration-block-no-duplicate-properties)
(#377) Unexpected duplicate "background-image" (declaration-block-no-duplicate-properties)
(#378) Unexpected duplicate "background-image" (declaration-block-no-duplicate-properties)
(#379) Unexpected duplicate "background-image" (declaration-block-no-duplicate-properties)
(#383) Unexpected duplicate "border-color" (declaration-block-no-duplicate-properties)
(#384) Unexpected duplicate "filter" (declaration-block-no-duplicate-properties)
(#448) Unexpected duplicate "background-image" (declaration-block-no-duplicate-properties)
(#449) Unexpected duplicate "background-image" (declaration-block-no-duplicate-properties)
(#450) Unexpected duplicate "background-image" (declaration-block-no-duplicate-properties)
(#451) Unexpected duplicate "background-image" (declaration-block-no-duplicate-properties)
(#452) Unexpected duplicate "background-image" (declaration-block-no-duplicate-properties)
(#456) Unexpected duplicate "border-color" (declaration-block-no-duplicate-properties)
(#457) Unexpected duplicate "filter" (declaration-block-no-duplicate-properties)
(#3) Unexpected !important (declaration-no-important)
(#206) Unexpected nonstandard direction (function-linear-gradient-no-nonstandard-direction)
(#207) Unexpected nonstandard direction (function-linear-gradient-no-nonstandard-direction)
(#209) Unexpected nonstandard direction (function-linear-gradient-no-nonstandard-direction)
(#210) Unexpected nonstandard direction (function-linear-gradient-no-nonstandard-direction)
(#271) Unexpected nonstandard direction (function-linear-gradient-no-nonstandard-direction)
(#272) Unexpected nonstandard direction (function-linear-gradient-no-nonstandard-direction)
(#274) Unexpected nonstandard direction (function-linear-gradient-no-nonstandard-direction)
(#275) Unexpected nonstandard direction (function-linear-gradient-no-nonstandard-direction)
(#323) Unexpected nonstandard direction (function-linear-gradient-no-nonstandard-direction)
(#324) Unexpected nonstandard direction (function-linear-gradient-no-nonstandard-direction)
(#326) Unexpected nonstandard direction (function-linear-gradient-no-nonstandard-direction)
(#327) Unexpected nonstandard direction (function-linear-gradient-no-nonstandard-direction)
(#374) Unexpected nonstandard direction (function-linear-gradient-no-nonstandard-direction)
(#375) Unexpected nonstandard direction (function-linear-gradient-no-nonstandard-direction)
(#377) Unexpected nonstandard direction (function-linear-gradient-no-nonstandard-direction)
(#378) Unexpected nonstandard direction (function-linear-gradient-no-nonstandard-direction)
(#447) Unexpected nonstandard direction (function-linear-gradient-no-nonstandard-direction)
(#448) Unexpected nonstandard direction (function-linear-gradient-no-nonstandard-direction)
(#450) Unexpected nonstandard direction (function-linear-gradient-no-nonstandard-direction)
(#451) Unexpected nonstandard direction (function-linear-gradient-no-nonstandard-direction)
(#213) Expected "DXImageTransform.Microsoft.gradient" to be "dximagetransform.microsoft.gradient" (function-name-case)
(#216) Expected "DXImageTransform.Microsoft.gradient" to be "dximagetransform.microsoft.gradient" (function-name-case)
(#278) Expected "DXImageTransform.Microsoft.gradient" to be "dximagetransform.microsoft.gradient" (function-name-case)
(#281) Expected "DXImageTransform.Microsoft.gradient" to be "dximagetransform.microsoft.gradient" (function-name-case)
(#330) Expected "DXImageTransform.Microsoft.gradient" to be "dximagetransform.microsoft.gradient" (function-name-case)
(#333) Expected "DXImageTransform.Microsoft.gradient" to be "dximagetransform.microsoft.gradient" (function-name-case)
(#381) Expected "DXImageTransform.Microsoft.gradient" to be "dximagetransform.microsoft.gradient" (function-name-case)
(#384) Expected "DXImageTransform.Microsoft.gradient" to be "dximagetransform.microsoft.gradient" (function-name-case)
(#454) Expected "DXImageTransform.Microsoft.gradient" to be "dximagetransform.microsoft.gradient" (function-name-case)
(#457) Expected "DXImageTransform.Microsoft.gradient" to be "dximagetransform.microsoft.gradient" (function-name-case)

PHPDocs style problems

(12 errors, 0 warnings)

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

blocks/dash/classes/local/data_grid/data/field_interface.php
(#50) There is no description in phpdocs for function get_label
blocks/dash/classes/local/data_grid/field/attribute/abstract_field_attribute.php
(#43) Variable abstract_field_attribute::$fielddefinition is not documented
blocks/dash/classes/local/data_grid/field/attribute/field_attribute_interface.php
(#45) There is no description in phpdocs for function get_field_definition
blocks/dash/classes/local/data_grid/field/attribute/rename_group_ids_attribute.php
(#39) Variable rename_group_ids_attribute::$groupsincontext is not documented
(#44) Phpdocs for function rename_group_ids_attribute::check_id has incomplete parameters list
blocks/dash/classes/local/data_grid/field/attribute/rename_ids_attribute.php
(#38) Variable rename_ids_attribute::$fieldstore is not documented
(#74) There is no description in phpdocs for function get_fields
(#67) Phpdocs for function rename_ids_attribute::check_id has incomplete parameters list
(#75) Phpdocs for function rename_ids_attribute::get_fields has incomplete parameters list
blocks/dash/classes/local/data_grid/filter/group_filter.php
(#42) Phpdocs for function group_filter::get_user_groups has incomplete parameters list
blocks/dash/classes/local/layout/abstract_layout.php
(#231) Phpdocs for function abstract_layout::add_checkbox_toggleall has incomplete parameters list
blocks/dash/settings.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, 11 warnings)

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

blocks/dash/templates/block.mustache
(#1) Example context missing (@template section not found.)
blocks/dash/templates/filter_date.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 2: Bad value “” for attribute “name” on element “input”: Must not be empty. (n></span> <input type="text" name="" class="form-control filter-form-control datepicker" value=""></bod)
blocks/dash/templates/filter_form.mustache
(#1) Example context missing (@template section not found.)
blocks/dash/templates/filter_select.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 2: Bad value “” for attribute “name” on element “select”: Must not be empty. (ad><body><select name="" class="form-control filter-form-control" ></sel)
blocks/dash/templates/layout.mustache
(#1) Example context missing (@template section not found.)
blocks/dash/templates/layout_grid.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 10: Row 1 of a row group established by a “thead” element has no cells beginning on it. ( <tr> </tr> )
blocks/dash/templates/layout_missing.mustache
(#1) Example context missing (@template section not found.)
blocks/dash/templates/paginator.mustache
(#1) Example context missing (@template section not found.)

Gherkin .feature problems

(0 errors, 0 warnings)

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