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

(200 errors, 2 warnings)

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

blocks/knowledge_sharing/block_knowledge_sharing.php
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#26) "require_once" must be immediately followed by an open parenthesis
(#43) Visibility must be declared on method "has_config"
(#49) Whitespace found at end of line
(#53) Whitespace found at end of line
(#57) Whitespace found at end of line
(#60) Whitespace found at end of line
(#62) Line exceeds 132 characters; contains 138 characters
(#63) Whitespace found at end of line
blocks/knowledge_sharing/classes/external.php
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#26) "require_once" must be immediately followed by an open parenthesis
(#27) "require_once" must be immediately followed by an open parenthesis
(#32) Whitespace found at end of line
(#36) Whitespace found at end of line
(#42) Whitespace found at end of line
(#46) Whitespace found at end of line
(#49) Whitespace found at end of line
(#56) Whitespace found at end of line
(#60) Whitespace found at end of line
(#64) Whitespace found at end of line
(#66) Whitespace found at end of line
(#70) Whitespace found at end of line
(#74) Whitespace found at end of line
(#89) Whitespace found at end of line
(#92) Whitespace found at end of line
(#101) Whitespace found at end of line
(#110) Whitespace found at end of line
(#113) Whitespace found at end of line
(#116) Whitespace found at end of line
(#120) Whitespace found at end of line
(#122) Whitespace found at end of line
(#128) Whitespace found at end of line
(#131) Whitespace found at end of line
(#132) Whitespace found at end of line
(#135) Whitespace found at end of line
blocks/knowledge_sharing/classes/privacy/provider.php
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
blocks/knowledge_sharing/db/access.php
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#27) Whitespace found at end of line
(#32) Whitespace found at end of line
(#34) Whitespace found at end of line
(#36) Whitespace found at end of line
(#43) Whitespace found at end of line
(#45) Whitespace found at end of line
(#46) Whitespace found at end of line
blocks/knowledge_sharing/db/install.php
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#29) Whitespace found at end of line
(#31) Whitespace found at end of line
(#33) Whitespace found at end of line
(#35) Whitespace found at end of line
(#37) Whitespace found at end of line
blocks/knowledge_sharing/db/services.php
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#33) Whitespace found at end of line
(#41) Whitespace found at end of line
(#42) Whitespace found at end of line
blocks/knowledge_sharing/lang/en/block_knowledge_sharing.php
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
blocks/knowledge_sharing/lang/he/block_knowledge_sharing.php
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
blocks/knowledge_sharing/locallib.php
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#26) "require_once" must be immediately followed by an open parenthesis
(#27) "require_once" must be immediately followed by an open parenthesis
(#28) "require_once" must be immediately followed by an open parenthesis
(#31) Space found after opening bracket of FOREACH loop
(#31) Space found before closing bracket of FOREACH loop
(#35) Space found after opening bracket of FOREACH loop
(#35) Space found before closing bracket of FOREACH loop
(#40) Whitespace found at end of line
(#43) Whitespace found at end of line
(#51) Expected "if (...) {\n"; found "if(...) {\n"
(#54) Whitespace found at end of line
(#57) Whitespace found at end of line
(#59) Whitespace found at end of line
(#63) Whitespace found at end of line
(#65) Whitespace found at end of line
(#66) Space found after opening bracket of FOREACH loop
(#66) Space found before closing bracket of FOREACH loop
(#69) Whitespace found at end of line
(#71) Whitespace found at end of line
(#72) Variable "mod_info" must not contain underscores.
(#73) Variable "mod_info" must not contain underscores.
(#74) Variable "mod_info" must not contain underscores.
(#75) Whitespace found at end of line
(#76) Variable "section_count" must not contain underscores.
(#77) Whitespace found at end of line
(#78) Space found after opening bracket of FOREACH loop
(#78) Space found before closing bracket of FOREACH loop
(#80) Whitespace found at end of line
(#83) Whitespace found at end of line
(#87) Whitespace found at end of line
(#88) Variable "module_count" must not contain underscores.
(#89) Whitespace found at end of line
(#90) Space found after opening bracket of FOREACH loop
(#90) Space found before closing bracket of FOREACH loop
(#96) Line exceeds 132 characters; contains 145 characters
(#98) Whitespace found at end of line
(#103) Whitespace found at end of line
(#106) Whitespace found at end of line
(#107) Variable "module_count" must not contain underscores.
(#110) Whitespace found at end of line
(#111) Variable "section_count" must not contain underscores.
(#112) Whitespace found at end of line
(#113) Variable "module_count" must not contain underscores.
(#115) Whitespace found at end of line
(#116) Variable "section_count" must not contain underscores.
(#120) Whitespace found at end of line
(#121) Variable "section_count" must not contain underscores.
(#128) Whitespace found at end of line
(#129) Space found after opening bracket of FOREACH loop
(#129) Space found before closing bracket of FOREACH loop
(#132) Whitespace found at end of line
(#134) Whitespace found at end of line
(#140) Whitespace found at end of line
(#142) Whitespace found at end of line
blocks/knowledge_sharing/renderer.php
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#27) Member variable "for_tag" must not contain underscores.
(#34) Whitespace found at end of line
(#39) Whitespace found at end of line
(#40) Whitespace found at end of line
(#48) Whitespace found at end of line
(#52) Whitespace found at end of line
(#54) Whitespace found at end of line
(#59) Whitespace found at end of line
(#61) Whitespace found at end of line
(#65) Whitespace found at end of line
(#67) Whitespace found at end of line
(#71) Whitespace found at end of line
(#73) Whitespace found at end of line
(#77) Whitespace found at end of line
(#79) Whitespace found at end of line
(#83) Whitespace found at end of line
(#85) Whitespace found at end of line
(#87) Whitespace found at end of line
(#92) Whitespace found at end of line
(#96) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#100) Whitespace found at end of line
(#102) Whitespace found at end of line
(#106) Whitespace found at end of line
(#108) Whitespace found at end of line
(#113) TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
(#121) Whitespace found at end of line
(#125) Whitespace found at end of line
(#133) Whitespace found at end of line
(#135) Whitespace found at end of line
(#139) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#141) Whitespace found at end of line
(#143) Space found after opening bracket of FOREACH loop
(#143) Space found before closing bracket of FOREACH loop
(#145) Whitespace found at end of line
(#151) Whitespace found at end of line
(#155) Whitespace found at end of line
(#159) Whitespace found at end of line
(#164) Whitespace found at end of line
(#167) Whitespace found at end of line
(#173) Whitespace found at end of line
(#176) Whitespace found at end of line
(#181) Whitespace found at end of line
(#185) Whitespace found at end of line
(#187) Whitespace found at end of line
(#192) Whitespace found at end of line
(#202) Whitespace found at end of line
(#206) Whitespace found at end of line
(#210) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#214) Whitespace found at end of line
(#216) Whitespace found at end of line
(#218) Whitespace found at end of line
(#222) Whitespace found at end of line
(#225) Whitespace found at end of line
(#227) Whitespace found at end of line
(#230) Whitespace found at end of line
(#236) Whitespace found at end of line
(#241) Whitespace found at end of line
(#243) Whitespace found at end of line
(#244) Whitespace found at end of line
(#246) Whitespace found at end of line
(#249) Whitespace found at end of line
(#257) Whitespace found at end of line
(#259) Whitespace found at end of line
(#260) Whitespace found at end of line
(#262) Whitespace found at end of line
(#264) Whitespace found at end of line
(#272) Whitespace found at end of line
(#274) Whitespace found at end of line
(#276) Whitespace found at end of line
(#278) Whitespace found at end of line
blocks/knowledge_sharing/settings.php
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#27) Whitespace found at end of line
(#31) Whitespace found at end of line
(#33) Whitespace found at end of line
(#34) Whitespace found at end of line
(#38) Whitespace found at end of line
(#39) Whitespace found at end of line
blocks/knowledge_sharing/version.php
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".

Javascript coding style problems

(5 errors, 57 warnings)

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

blocks/knowledge_sharing/amd/src/lib.js
(#23) There should be no space after '['. (array-bracket-spacing)
(#23) There should be no space before ']'. (array-bracket-spacing)
(#23) Unexpected space before function parentheses. (space-before-function-paren)
(#24) Identifier 'drop_taget' is not in camel case. (camelcase)
(#24) 'drop_taget' is defined but never used. (no-unused-vars)
(#25) Identifier 'block_knowledge_sharing' is not in camel case. (camelcase)
(#27) Identifier 'init_tree' is not in camel case. (camelcase)
(#27) Unexpected space before function parentheses. (space-before-function-paren)
(#28) Identifier 'block_knowledge_sharing' is not in camel case. (camelcase)
(#30) Identifier 'block_knowledge_sharing' is not in camel case. (camelcase)
(#32) Identifier 'block_knowledge_sharing' is not in camel case. (camelcase)
(#33) Identifier 'block_knowledge_sharing' is not in camel case. (camelcase)
(#42) Unexpected space before function parentheses. (space-before-function-paren)
(#44) Identifier 'block_knowledge_sharing' is not in camel case. (camelcase)
(#47) Unexpected space before function parentheses. (space-before-function-paren)
(#48) Unexpected space before function parentheses. (space-before-function-paren)
(#61) Unexpected space before function parentheses. (space-before-function-paren)
(#62) Identifier 'block_knowledge_sharing' is not in camel case. (camelcase)
(#62) Unexpected space before function parentheses. (space-before-function-paren)
(#62) 'e' is defined but never used. (no-unused-vars)
(#65) Identifier 'block_knowledge_sharing' is not in camel case. (camelcase)
(#65) Unexpected space before function parentheses. (space-before-function-paren)
(#75) Unexpected space before function parentheses. (space-before-function-paren)
(#76) A constructor name should not start with a lowercase letter. (new-cap)
(#76) Identifier 'block_knowledge_sharing' is not in camel case. (camelcase)
(#79) Unexpected space before function parentheses. (space-before-function-paren)
(#80) Unexpected space before function parentheses. (space-before-function-paren)
(#85) 'e' is defined but never used. (no-unused-vars)
(#86) Identifier 'drop_target' is not in camel case. (camelcase)
(#91) Unexpected space before function parentheses. (space-before-function-paren)
(#95) Identifier 'drop_target' is not in camel case. (camelcase)
(#98) Unexpected space before function parentheses. (space-before-function-paren)
(#102) Unexpected space before function parentheses. (space-before-function-paren)
(#109) Unexpected space before function parentheses. (space-before-function-paren)
(#115) Identifier 'drop_target' is not in camel case. (camelcase)
(#127) There should be no space after '['. (array-bracket-spacing)
(#128) Extra space after key 'methodname'. (key-spacing)
(#129) Extra space after key 'args'. (key-spacing)
(#130) Extra space after key 'section'. (key-spacing)
(#131) Extra space after key 'module'. (key-spacing)
(#132) Extra space after key 'course'. (key-spacing)
(#134) There should be no space before ']'. (array-bracket-spacing)
(#134) Unexpected space before function parentheses. (space-before-function-paren)
(#144) Unexpected space before function parentheses. (space-before-function-paren)
(#147) Unexpected console statement. (no-console)
(#153) Unexpected space before function parentheses. (space-before-function-paren)
(#154) Identifier 'block_knowledge_sharing' is not in camel case. (camelcase)
(#159) There should be no space after '['. (array-bracket-spacing)
(#160) Extra space after key 'methodname'. (key-spacing)
(#161) Extra space after key 'args'. (key-spacing)
(#162) Extra space after key 'tag'. (key-spacing)
(#163) Extra space after key 'course'. (key-spacing)
(#166) There should be no space before ']'. (array-bracket-spacing)
(#166) Unexpected space before function parentheses. (space-before-function-paren)
(#173) Identifier 'block_knowledge_sharing' is not in camel case. (camelcase)
(#182) Unexpected space before function parentheses. (space-before-function-paren)
(#186) Unexpected console statement. (no-console)
(#190) Unexpected space before function parentheses. (space-before-function-paren)
(#203) Unexpected space before function parentheses. (space-before-function-paren)
(#209) Extra space after key 'init_tree'. (key-spacing)
(#209) Identifier 'init_tree' is not in camel case. (camelcase)
(#209) Identifier 'init_tree' is not in camel case. (camelcase)

CSS problems

(31 errors, 0 warnings)

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

blocks/knowledge_sharing/styles.css
(#66) Unexpected empty block (block-no-empty)
(#76) Expected single space before "{" (block-opening-brace-space-before)
(#6) Unexpected !important (declaration-no-important)
(#2) Expected indentation of 4 spaces (indentation)
(#6) Expected indentation of 4 spaces (indentation)
(#10) Expected indentation of 4 spaces (indentation)
(#11) Expected indentation of 4 spaces (indentation)
(#12) Expected indentation of 4 spaces (indentation)
(#13) Expected indentation of 4 spaces (indentation)
(#14) Expected indentation of 4 spaces (indentation)
(#15) Expected indentation of 4 spaces (indentation)
(#16) Expected indentation of 4 spaces (indentation)
(#20) Expected indentation of 4 spaces (indentation)
(#24) Expected indentation of 4 spaces (indentation)
(#28) Expected indentation of 4 spaces (indentation)
(#32) Expected indentation of 4 spaces (indentation)
(#36) Expected indentation of 4 spaces (indentation)
(#45) Expected indentation of 4 spaces (indentation)
(#49) Expected indentation of 4 spaces (indentation)
(#53) Expected indentation of 4 spaces (indentation)
(#54) Expected indentation of 4 spaces (indentation)
(#55) Expected indentation of 4 spaces (indentation)
(#59) Expected indentation of 4 spaces (indentation)
(#63) Expected indentation of 4 spaces (indentation)
(#71) Expected indentation of 4 spaces (indentation)
(#72) Expected indentation of 4 spaces (indentation)
(#77) Expected indentation of 4 spaces (indentation)
(#81) Expected indentation of 4 spaces (indentation)
(#85) Expected indentation of 4 spaces (indentation)
(#67) Unexpected whitespace at end of line (no-eol-whitespace)
(#75) Expected newline after "," (selector-list-comma-newline-after)

PHPDocs style problems

(32 errors, 0 warnings)

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

blocks/knowledge_sharing/block_knowledge_sharing.php
(#28) Class block_knowledge_sharing is not documented
(#30) Function block_knowledge_sharing::init is not documented
(#35) Function block_knowledge_sharing::instance_allow_multiple is not documented
(#39) Function block_knowledge_sharing::instance_allow_config is not documented
(#43) Function block_knowledge_sharing::has_config is not documented
(#47) Function block_knowledge_sharing::get_content is not documented
blocks/knowledge_sharing/classes/external.php
(#29) Class block_knowledge_sharing_external is not documented
(#31) Function block_knowledge_sharing_external::duplicate_parameters is not documented
(#40) Function block_knowledge_sharing_external::duplicate is not documented
(#96) Function block_knowledge_sharing_external::duplicate_returns is not documented
(#100) Function block_knowledge_sharing_external::group_parameters is not documented
(#108) Function block_knowledge_sharing_external::group is not documented
(#139) Function block_knowledge_sharing_external::group_returns is not documented
blocks/knowledge_sharing/classes/privacy/provider.php
(#28) Class provider is not documented
(#30) Function provider::get_reason is not documented
blocks/knowledge_sharing/db/install.php
(#26) Function xmldb_block_knowledge_sharing_install is not documented
blocks/knowledge_sharing/locallib.php
(#30) Function block_knowledge_sharing_tree_by_tag is not documented
(#50) Function block_knowledge_sharing_load_knowledge_tree is not documented
(#138) Function block_knowledge_sharing_load_knowledge_tree_for_tag is not documented
blocks/knowledge_sharing/renderer.php
(#26) Class block_knowledge_sharing_renderer is not documented
(#29) Function block_knowledge_sharing_renderer::knowledge_sharing_tree is not documented
(#32) Function block_knowledge_sharing_renderer::render_tree is not documented
(#96) Function block_knowledge_sharing_renderer::tree2html is not documented
(#112) Function block_knowledge_sharing_renderer::get_group_id is not documented
(#116) Function block_knowledge_sharing_renderer::render_span is not documented
(#129) Function block_knowledge_sharing_renderer::render_ul is not documented
(#139) Function block_knowledge_sharing_renderer::item2html is not documented
(#210) Function block_knowledge_sharing_renderer::get_edit_icon is not documented
(#234) Function block_knowledge_sharing_renderer::get_tag_edit_icon is not documented
(#253) Function block_knowledge_sharing_renderer::get_add_icon is not documented
(#268) Function block_knowledge_sharing_renderer::get_view_icon is not documented
(#27) Variable block_knowledge_sharing_renderer::$for_tag is not documented

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

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