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

(12 errors, 7 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/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)
(#46) Expected single space before "{" (block-opening-brace-space-before)
(#65) Expected single space before "{" (block-opening-brace-space-before)
(#136) Expected single space before "{" (block-opening-brace-space-before)
(#7) Expected "#DDD" to be "#ddd" (color-hex-case)
(#77) Expected "#DDD" to be "#ddd" (color-hex-case)
(#58) Unexpected duplicate "display" (declaration-block-no-duplicate-properties)
(#58) Unexpected duplicate "height" (declaration-block-no-duplicate-properties)
(#73) Unexpected duplicate "display" (declaration-block-no-duplicate-properties)
(#73) Unexpected duplicate "height" (declaration-block-no-duplicate-properties)
(#58) Expected newline after ";" in a multi-line declaration block (declaration-block-semicolon-newline-after)
(#58) Expected newline after ";" in a multi-line declaration block (declaration-block-semicolon-newline-after)
(#73) Expected newline after ";" in a multi-line declaration block (declaration-block-semicolon-newline-after)
(#73) Expected newline after ";" in a multi-line declaration block (declaration-block-semicolon-newline-after)
(#174) Expected a trailing semicolon (declaration-block-trailing-semicolon)
(#34) Unexpected !important (declaration-no-important)
(#47) Unexpected !important (declaration-no-important)
(#48) Unexpected !important (declaration-no-important)
(#124) Unexpected !important (declaration-no-important)
(#141) Unexpected !important (declaration-no-important)
(#158) Unexpected !important (declaration-no-important)
(#13) Unexpected unit (length-zero-no-unit)
(#54) Unexpected unit (length-zero-no-unit)
(#96) Unexpected unit (length-zero-no-unit)
(#100) Unexpected unit (length-zero-no-unit)
(#101) Unexpected unit (length-zero-no-unit)
(#102) Unexpected unit (length-zero-no-unit)
(#113) Unexpected unit (length-zero-no-unit)
(#114) Unexpected unit (length-zero-no-unit)
(#115) Unexpected unit (length-zero-no-unit)
(#123) Unexpected unit (length-zero-no-unit)
(#128) Unexpected unit (length-zero-no-unit)
(#139) Unexpected unit (length-zero-no-unit)
(#61) Expected single space before ">" (selector-combinator-space-before)

PHPDocs style problems

(25 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/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=""> <)