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

(30 errors, 15 warnings)

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

blocks/semester_sortierung/block_semester_sortierung.php
(#161) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/semester_sortierung/classes/output/renderer.php
(#102) Line exceeds 132 characters; contains 137 characters
blocks/semester_sortierung/classes/privacy/provider.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#3) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#3) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#4) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#4) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#4) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#17) Expected MOODLE_INTERNAL check or config.php inclusion
(#62) Whitespace found at end of line within string
(#101) Whitespace found at end of line within string
(#113) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#114) Whitespace found at end of line
(#155) Line exceeds 132 characters; contains 142 characters
(#211) Line exceeds 132 characters; contains 139 characters
(#212) Line exceeds 132 characters; contains 140 characters
(#215) Line exceeds 132 characters; contains 137 characters
(#216) Line exceeds 132 characters; contains 136 characters
(#219) Line exceeds 132 characters; contains 139 characters
(#220) Line exceeds 132 characters; contains 140 characters
blocks/semester_sortierung/db/services.php
(#63) Line exceeds 132 characters; contains 160 characters
blocks/semester_sortierung/db/upgrade.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#12) Expected MOODLE_INTERNAL check or config.php inclusion
(#36) Functions must not contain multiple empty lines in a row; found 2 empty lines
blocks/semester_sortierung/externallib.php
(#205) Variable "GLOBALS" must be all lower-case
(#219) Variable "GLOBALS" must be all lower-case
blocks/semester_sortierung/locallib.php
(#281) This comment is 60% valid code; is this commented out code?
(#281) Line indented incorrectly; expected at least 4 spaces, found 0
(#286) Line indented incorrectly; expected at least 4 spaces, found 0
(#307) Whitespace found at end of line
(#324) Functions must not contain multiple empty lines in a row; found 4 empty lines
(#328) This comment is 50% valid code; is this commented out code?
(#340) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#350) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#363) This comment is 47% valid code; is this commented out code?
(#363) Line indented incorrectly; expected at least 4 spaces, found 0
(#364) Line indented incorrectly; expected at least 4 spaces, found 0

Javascript coding style problems

(11 errors, 38 warnings)

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

blocks/semester_sortierung/yui/semester_sortierung/semester_sortierung.js
(#26) 'YUI' is not defined. (no-undef)
(#26) Unexpected space before function parentheses. (space-before-function-paren)
(#27) Unexpected space before function parentheses. (space-before-function-paren)
(#27) 'config' is defined but never used. (no-unused-vars)
(#31) Comments should not begin with a lowercase character (capitalized-comments)
(#35) Missing JSDoc for parameter 'config'. (valid-jsdoc)
(#38) Unexpected space before function parentheses. (space-before-function-paren)
(#44) Script URL is a form of eval. (no-script-url)
(#46) Unexpected space before function parentheses. (space-before-function-paren)
(#49) Unexpected space before function parentheses. (space-before-function-paren)
(#54) Unexpected space before function parentheses. (space-before-function-paren)
(#73) Unexpected console statement. (no-console)
(#75) Unexpected space before function parentheses. (space-before-function-paren)
(#80) Unexpected space before function parentheses. (space-before-function-paren)
(#98) 'build_querystring' is not defined. (no-undef)
(#103) Unexpected space before function parentheses. (space-before-function-paren)
(#109) Unexpected space before function parentheses. (space-before-function-paren)
(#113) 'i' used outside of binding context. (block-scoped-var)
(#113) 'i' used outside of binding context. (block-scoped-var)
(#113) 'i' used outside of binding context. (block-scoped-var)
(#114) 'i' used outside of binding context. (block-scoped-var)
(#116) 'i' used outside of binding context. (block-scoped-var)
(#116) 'i' is already defined. (no-redeclare)
(#116) 'i' used outside of binding context. (block-scoped-var)
(#116) 'i' used outside of binding context. (block-scoped-var)
(#117) 'i' used outside of binding context. (block-scoped-var)
(#121) Unexpected space before function parentheses. (space-before-function-paren)
(#122) 'a' is already defined. (no-redeclare)
(#123) 'b' is already defined. (no-redeclare)
(#124) Do not nest ternary expressions. (no-nested-ternary)
(#127) Unexpected space before function parentheses. (space-before-function-paren)
(#150) 'build_querystring' is not defined. (no-undef)
(#153) Unexpected space before function parentheses. (space-before-function-paren)
(#164) Unexpected space before function parentheses. (space-before-function-paren)
(#164) 'k' is defined but never used. (no-unused-vars)
(#169) Use ‘===’ to compare with ‘null’. (no-eq-null)
(#189) Expected variable declaration to be on a new line. (one-var-declaration-per-line)
(#194) Unexpected space before function parentheses. (space-before-function-paren)
(#214) Unexpected space before function parentheses. (space-before-function-paren)
(#228) Line 228 exceeds the maximum line length of 132. (max-len)
(#234) 'build_querystring' is not defined. (no-undef)
(#240) Unexpected space before function parentheses. (space-before-function-paren)
(#244) Multiple spaces found before '// We are goin...'. (no-multi-spaces)
(#249) Unexpected space before function parentheses. (space-before-function-paren)
(#284) Identifier 'block_semester_sortierung' is not in camel case. (camelcase)
(#287) Missing JSDoc for parameter 'properties'. (valid-jsdoc)
(#290) Identifier 'init_add_semester_sortierung' is not in camel case. (camelcase)
(#290) Unexpected space before function parentheses. (space-before-function-paren)
(#295) Line 295 exceeds the maximum line length of 132. (max-len)

CSS problems

(20 errors, 14 warnings)

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

blocks/semester_sortierung/styles.css
(#22) Expected single space before "{" (block-opening-brace-space-before)
(#51) Expected single space before "{" (block-opening-brace-space-before)
(#71) Expected single space before "{" (block-opening-brace-space-before)
(#142) Expected single space before "{" (block-opening-brace-space-before)
(#7) Expected "#DDD" to be "#ddd" (color-hex-case)
(#83) Expected "#DDD" to be "#ddd" (color-hex-case)
(#63) Unexpected duplicate "display" (declaration-block-no-duplicate-properties)
(#63) Unexpected duplicate "height" (declaration-block-no-duplicate-properties)
(#79) Unexpected duplicate "display" (declaration-block-no-duplicate-properties)
(#79) Unexpected duplicate "height" (declaration-block-no-duplicate-properties)
(#63) Expected newline after ";" in a multi-line declaration block (declaration-block-semicolon-newline-after)
(#63) Expected newline after ";" in a multi-line declaration block (declaration-block-semicolon-newline-after)
(#79) Expected newline after ";" in a multi-line declaration block (declaration-block-semicolon-newline-after)
(#79) Expected newline after ";" in a multi-line declaration block (declaration-block-semicolon-newline-after)
(#180) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#34) Unexpected !important (declaration-no-important)
(#52) Unexpected !important (declaration-no-important)
(#53) Unexpected !important (declaration-no-important)
(#130) Unexpected !important (declaration-no-important)
(#147) Unexpected !important (declaration-no-important)
(#164) Unexpected !important (declaration-no-important)
(#13) Unexpected unit (length-zero-no-unit)
(#59) Unexpected unit (length-zero-no-unit)
(#102) Unexpected unit (length-zero-no-unit)
(#106) Unexpected unit (length-zero-no-unit)
(#107) Unexpected unit (length-zero-no-unit)
(#108) Unexpected unit (length-zero-no-unit)
(#119) Unexpected unit (length-zero-no-unit)
(#120) Unexpected unit (length-zero-no-unit)
(#121) Unexpected unit (length-zero-no-unit)
(#129) Unexpected unit (length-zero-no-unit)
(#134) Unexpected unit (length-zero-no-unit)
(#145) Unexpected unit (length-zero-no-unit)
(#67) Expected single space before ">" (selector-combinator-space-before)

PHPDocs style problems

(32 errors, 1 warnings)

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

blocks/semester_sortierung/block_semester_sortierung.php
(#31) Class block_semester_sortierung is not documented
(#92) Function block_semester_sortierung::export_for_template is not documented
(#17) No one-line description found in phpdocs for file
blocks/semester_sortierung/classes/output/renderer.php
(#44) Function renderer::render_block is not documented
(#197) Function renderer::render_course_info is not documented
(#208) Function renderer::get_move_target is not documented
(#52) Phpdocs for function renderer::semester_sortierung has incomplete parameters list
(#222) Phpdocs for function renderer::get_expand_image_button_html has incomplete parameters list
(#37) Class renderer does not have @copyright tag
(#37) Class renderer does not have @license tag
blocks/semester_sortierung/classes/privacy/provider.php
(#17) Class provider is not documented
(#22) Function provider::get_metadata is not documented
(#160) Function provider::delete_data_for_user is not documented
(#2) No one-line description found in phpdocs for file
(#2) File-level phpdocs block does not have @copyright tag
(#2) File-level phpdocs block does not have @license tag
(#17) Package is not specified for class provider. It is also not specified in file-level phpdocs
blocks/semester_sortierung/db/upgrade.php
(#2) Empty line found after PHP open tag
(#12) Function xmldb_block_semester_sortierung_upgrade is not documented
(#3) No one-line description found in phpdocs for file
(#5) Package moodle34 is not valid
blocks/semester_sortierung/externallib.php
(#33) Class block_semester_sortierung_external is not documented
(#115) Phpdocs for function block_semester_sortierung_external::get_courses has incomplete parameters list
(#187) Phpdocs for function block_semester_sortierung_external::get_coursedetails has incomplete parameters list
blocks/semester_sortierung/locallib.php
(#30) Function block_semester_sortierung_usort is not documented
(#34) Function block_semester_sortierung_toggle_fav is not documented
(#55) Function block_semester_sortierung_update_personal_sort is not documented
(#176) Function block_semester_sortierung_sort_user_personal_sort is not documented
(#279) Function block_semester_sortierung_get_events is not documented
(#319) Function block_semester_sortierung_get_courses_events is not documented
(#392) Function block_semester_sortierung_get_usersort is not documented
(#118) Phpdocs for function block_semester_sortierung_fill_course_semester has incomplete parameters list
(#243) Phpdocs for function block_semester_sortierung_get_semester 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

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

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

blocks/semester_sortierung/templates/block.mustache
(#1) Example context missing (@template section not found.)
blocks/semester_sortierung/templates/course-event-list-item.mustache
(#1) HTML Validation error, line 2: Element “li” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (ad><body><li class="list-group-item event-list-item" data-region="event-list-item"> <)
blocks/semester_sortierung/templates/course.mustache
(#1) Example context missing (@template section not found.)
blocks/semester_sortierung/templates/semester_end.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 2: Stray end tag “div”. (body> </div> <!-- )
(#1) HTML Validation error, line 3: Stray end tag “fieldset”. (e box --></fieldset> <!-- )
blocks/semester_sortierung/templates/semester_start.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 4: Element “div” not allowed as child of element “legend” in this context. (Suppressing further errors from this subtree.) (> <div class="imgbox"></div>)
(#1) HTML Validation error, line 7: End tag for “body” seen, but there were unclosed elements. (ablebox"></body></html)
(#1) HTML Validation error, line 6: Unclosed element “div”. (gend> <div class="expandablebox"></bod)
(#1) HTML Validation error, line 2: Unclosed element “fieldset”. (ad><body><fieldset class="semester " data-id=""> <)