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

(10 errors, 13 warnings)

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

blocks/semester_sortierung/db/services.php
(#63) Line exceeds 132 characters; contains 160 characters
(#65) Expected 1 space before "=>"; 0 found
(#65) Expected 1 space after "=>"; 0 found
blocks/semester_sortierung/externallib.php
(#64) Line exceeds 132 characters; contains 171 characters
(#64) Inline comments must start with a capital letter, digit or 3-dots sequence
(#64) Inline comments must end in full-stops, exclamation marks, or question marks
(#64) This comment is 45% valid code; is this commented out code?
(#64) No space found before comment text; expected "// $CFG->dirroot . '/mod/' . $module->name . '/pix/icon.png'));" but found "//$CFG->dirroot . '/mod/' . $module->name . '/pix/icon.png'));"
(#199) Variable "GLOBALS" must be all lower-case
(#213) Variable "GLOBALS" must be all lower-case
blocks/semester_sortierung/locallib.php
(#195) This comment is 50% valid code; is this commented out code?
(#196) This comment is 50% valid code; is this commented out code?
(#271) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#276) Functions must not contain multiple empty lines in a row; found 2 empty lines
blocks/semester_sortierung/renderer.php
(#99) This comment is 60% valid code; is this commented out code?
(#191) Line indented incorrectly; expected at least 16 spaces, found 12
(#268) This comment is 63% valid code; is this commented out code?
(#298) Functions must not contain multiple empty lines in a row; found 2 empty lines
blocks/semester_sortierung/settings.php
(#43) Line exceeds 132 characters; contains 151 characters
(#43) Inline comments must start with a capital letter, digit or 3-dots sequence
(#43) Inline comments must end in full-stops, exclamation marks, or question marks
(#43) This comment is 50% valid code; is this commented out code?
(#43) No space found before comment text; expected "// strftime('%B', ($i * 3600 * 24 * 31));" but found "//strftime('%B', ($i * 3600 * 24 * 31));"

Javascript coding style problems

(17 errors, 78 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) Missing space before opening brace. (space-before-blocks)
(#27) 'config' is defined but never used. (no-unused-vars)
(#34) Extra space after key 'id'. (key-spacing)
(#35) Missing JSDoc for parameter 'config'. (valid-jsdoc)
(#38) Extra space after key 'initializer'. (key-spacing)
(#40) Infix operators must be spaced. (space-infix-ops)
(#44) Script URL is a form of eval. (no-script-url)
(#46) Missing space before opening brace. (space-before-blocks)
(#46) Requires a space after '{'. (block-spacing)
(#46) Statement inside of curly braces should be on next line. (brace-style)
(#46) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#46) Requires a space before '}'. (block-spacing)
(#47) Line 47 exceeds the maximum line length of 132. (max-len)
(#47) Missing space before opening brace. (space-before-blocks)
(#47) Requires a space after '{'. (block-spacing)
(#47) Statement inside of curly braces should be on next line. (brace-style)
(#47) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#47) Requires a space before '}'. (block-spacing)
(#49) Trailing spaces not allowed. (no-trailing-spaces)
(#50) Extra space after key 'toggleFavorites'. (key-spacing)
(#89) Infix operators must be spaced. (space-infix-ops)
(#90) Missing space before value for key 'method'. (key-spacing)
(#91) 'build_querystring' is not defined. (no-undef)
(#92) Missing space before value for key 'context'. (key-spacing)
(#95) Trailing spaces not allowed. (no-trailing-spaces)
(#96) Extra space after key 'sortFavorites'. (key-spacing)
(#102) Missing space before opening brace. (space-before-blocks)
(#102) Requires a space after '{'. (block-spacing)
(#102) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#102) Statement inside of curly braces should be on next line. (brace-style)
(#102) Requires a space before '}'. (block-spacing)
(#104) 'i' used outside of binding context. (block-scoped-var)
(#104) 'i' used outside of binding context. (block-scoped-var)
(#104) 'i' used outside of binding context. (block-scoped-var)
(#105) 'i' used outside of binding context. (block-scoped-var)
(#107) 'i' is already defined. (no-redeclare)
(#107) 'i' used outside of binding context. (block-scoped-var)
(#107) 'i' used outside of binding context. (block-scoped-var)
(#107) 'i' used outside of binding context. (block-scoped-var)
(#108) 'i' used outside of binding context. (block-scoped-var)
(#111) Trailing spaces not allowed. (no-trailing-spaces)
(#112) Extra space after key 'customSorting'. (key-spacing)
(#113) 'a' is already defined. (no-redeclare)
(#114) 'b' is already defined. (no-redeclare)
(#115) Do not nest ternary expressions. (no-nested-ternary)
(#118) Extra space after key 'setNewStatus'. (key-spacing)
(#120) Expected space or tab after '//' in comment. (spaced-comment)
(#120) Trailing spaces not allowed. (no-trailing-spaces)
(#124) Trailing spaces not allowed. (no-trailing-spaces)
(#128) Multiple spaces found before '&&'. (no-multi-spaces)
(#129) Trailing spaces not allowed. (no-trailing-spaces)
(#139) Infix operators must be spaced. (space-infix-ops)
(#140) Missing space before value for key 'method'. (key-spacing)
(#141) 'build_querystring' is not defined. (no-undef)
(#142) Missing space before value for key 'context'. (key-spacing)
(#142) Trailing spaces not allowed. (no-trailing-spaces)
(#156) More than 2 blank lines not allowed. (no-multiple-empty-lines)
(#157) 'k' is defined but never used. (no-unused-vars)
(#162) Use ‘===’ to compare with ‘null’. (no-eq-null)
(#186) More than 2 blank lines not allowed. (no-multiple-empty-lines)
(#187) Expected space or tab after '//' in comment. (spaced-comment)
(#188) Expected variable declaration to be on a new line. (one-var-declaration-per-line)
(#194) Expected space or tab after '//' in comment. (spaced-comment)
(#196) Expected space or tab after '//' in comment. (spaced-comment)
(#211) Expected space or tab after '//' in comment. (spaced-comment)
(#223) Infix operators must be spaced. (space-infix-ops)
(#224) Missing space before value for key 'method'. (key-spacing)
(#225) 'build_querystring' is not defined. (no-undef)
(#226) Missing space before value for key 'context'. (key-spacing)
(#233) Expected space or tab after '//' in comment. (spaced-comment)
(#235) Expected space or tab after '//' in comment. (spaced-comment)
(#236) Expected space or tab after '//' in comment. (spaced-comment)
(#237) Expected space or tab after '//' in comment. (spaced-comment)
(#242) Expected space or tab after '//' in comment. (spaced-comment)
(#247) Expected space or tab after '//' in comment. (spaced-comment)
(#248) Infix operators must be spaced. (space-infix-ops)
(#249) Expected space or tab after '//' in comment. (spaced-comment)
(#253) Expected space or tab after '//' in comment. (spaced-comment)
(#255) Expected space or tab after '//' in comment. (spaced-comment)
(#284) More than 2 blank lines not allowed. (no-multiple-empty-lines)
(#287) Extra space after key 'NAME'. (key-spacing)
(#288) Extra space after key 'ATTRS'. (key-spacing)
(#289) Extra space after key 'instance'. (key-spacing)
(#290) Extra space after key 'value'. (key-spacing)
(#296) More than 2 blank lines not allowed. (no-multiple-empty-lines)
(#302) Identifier 'block_semester_sortierung' is not in camel case. (camelcase)
(#304) Extra space after key 'instance'. (key-spacing)
(#305) Missing JSDoc for parameter 'properties'. (valid-jsdoc)
(#308) Identifier 'init_add_semsort' is not in camel case. (camelcase)
(#308) Missing space before value for key 'init_add_semsort'. (key-spacing)
(#309) Expected space or tab after '/*' in comment. (spaced-comment)
(#316) Line 316 exceeds the maximum line length of 132. (max-len)
(#316) Missing space before value for key 'requires'. (key-spacing)
(#316) A space is required after ','. (comma-spacing)

CSS problems

(25 errors, 21 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)
(#70) Expected single space before "{" (block-opening-brace-space-before)
(#146) Expected single space before "{" (block-opening-brace-space-before)
(#7) Expected "#DDD" to be "#ddd" (color-hex-case)
(#19) Expected "#3D4653" to be "#3d4653" (color-hex-case)
(#32) Expected "#002C73" to be "#002c73" (color-hex-case)
(#38) Expected "#CC0033" to be "#cc0033" (color-hex-case)
(#42) Expected "#AAAAAA" to be "#aaaaaa" (color-hex-case)
(#82) Expected "#DDD" to be "#ddd" (color-hex-case)
(#38) Expected "#CC0033" to be "#C03" (color-hex-length)
(#42) Expected "#AAAAAA" to be "#AAA" (color-hex-length)
(#63) Unexpected duplicate "display" (declaration-block-no-duplicate-properties)
(#63) Unexpected duplicate "height" (declaration-block-no-duplicate-properties)
(#78) Unexpected duplicate "display" (declaration-block-no-duplicate-properties)
(#78) 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)
(#78) Expected newline after ";" in a multi-line declaration block (declaration-block-semicolon-newline-after)
(#78) Expected newline after ";" in a multi-line declaration block (declaration-block-semicolon-newline-after)
(#190) 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)
(#132) Unexpected !important (declaration-no-important)
(#152) Unexpected !important (declaration-no-important)
(#169) Unexpected !important (declaration-no-important)
(#13) Unexpected unit (length-zero-no-unit)
(#59) Unexpected unit (length-zero-no-unit)
(#105) Unexpected unit (length-zero-no-unit)
(#109) Unexpected unit (length-zero-no-unit)
(#110) Unexpected unit (length-zero-no-unit)
(#111) Unexpected unit (length-zero-no-unit)
(#121) Unexpected unit (length-zero-no-unit)
(#122) Unexpected unit (length-zero-no-unit)
(#123) Unexpected unit (length-zero-no-unit)
(#131) Unexpected unit (length-zero-no-unit)
(#136) Unexpected unit (length-zero-no-unit)
(#149) Unexpected unit (length-zero-no-unit)
(#101) Expected no more than 2 empty line(s) (max-empty-lines)
(#142) Expected no more than 2 empty line(s) (max-empty-lines)
(#119) Expected line length to be no more than 132 characters (max-line-length)
(#30) Expected single space before ">" (selector-combinator-space-before)
(#66) Expected single space before ">" (selector-combinator-space-before)
(#119) Expected newline after "," (selector-list-comma-newline-after)
(#119) Expected newline after "," (selector-list-comma-newline-after)

PHPDocs style problems

(24 errors, 0 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
(#17) No one-line description found in phpdocs for file
blocks/semester_sortierung/db/upgrade.php
(#31) Function xmldb_block_semester_sortierung_upgrade is not documented
blocks/semester_sortierung/externallib.php
(#33) Class block_semester_sortierung_external is not documented
(#109) Phpdocs for function block_semester_sortierung_external::get_courses has incomplete parameters list
(#181) Phpdocs for function block_semester_sortierung_external::get_coursedetails has incomplete parameters list
blocks/semester_sortierung/locallib.php
(#30) Function block_sememster_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
(#175) Function block_semester_sortierung_sort_user_personal_sort is not documented
(#266) Function block_semester_sortierung_get_courses_events is not documented
(#117) Phpdocs for function block_semester_sortierung_fill_course_semester has incomplete parameters list
(#231) Phpdocs for function block_semester_sortierung_get_semester has incomplete parameters list
blocks/semester_sortierung/renderer.php
(#197) Function block_semester_sortierung_renderer::start_semester is not documented
(#220) Function block_semester_sortierung_renderer::end_semester is not documented
(#227) Function block_semester_sortierung_renderer::course_html is not documented
(#282) Function block_semester_sortierung_renderer::get_personalsort_icons is not documented
(#303) Function block_semester_sortierung_renderer::render_course_info is not documented
(#312) Function block_semester_sortierung_renderer::get_favorites_icon is not documented
(#328) Function block_semester_sortierung_renderer::get_move_target is not documented
(#39) Phpdocs for function block_semester_sortierung_renderer::semester_sortierung has incomplete parameters list
(#342) Phpdocs for function block_semester_sortierung_renderer::get_expand_image_button_html has incomplete parameters list
(#30) Class block_semester_sortierung_renderer does not have @copyright tag
(#30) Class block_semester_sortierung_renderer does not have @license tag

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, 1 warnings)

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

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"> <)