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

(108 errors, 3 warnings)

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

blocks/turnitin/block_turnitin.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#3) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#11) Spaces must be used to indent lines; tabs are not allowed
(#11) Tab found within whitespace
(#11) Line indented incorrectly; expected at least 8 spaces, found 5
(#13) Spaces must be used to indent lines; tabs are not allowed
(#13) Tab found within whitespace
(#13) Line indented incorrectly; expected 8 spaces, found 5
(#14) Spaces must be used to indent lines; tabs are not allowed
(#14) Tab found within whitespace
(#14) Line indented incorrectly; expected at least 12 spaces, found 3
(#15) Spaces must be used to indent lines; tabs are not allowed
(#15) Tab found within whitespace
(#15) Line indented incorrectly; expected 8 spaces, found 2
(#15) Closing brace indented incorrectly; expected 5 spaces, found 2
(#17) Spaces must be used to indent lines; tabs are not allowed
(#17) Tab found within whitespace
(#17) Line indented incorrectly; expected at least 8 spaces, found 2
(#18) Spaces must be used to indent lines; tabs are not allowed
(#18) Tab found within whitespace
(#18) Line indented incorrectly; expected at least 8 spaces, found 2
(#20) Spaces must be used to indent lines; tabs are not allowed
(#20) Tab found within whitespace
(#20) Line indented incorrectly; expected at least 8 spaces, found 2
(#21) Spaces must be used to indent lines; tabs are not allowed
(#21) Tab found within whitespace
(#21) Line indented incorrectly; expected 8 spaces, found 2
(#21) Line exceeds 132 characters; contains 133 characters
(#22) Spaces must be used to indent lines; tabs are not allowed
(#22) Tab found within whitespace
(#22) Line indented incorrectly; expected at least 12 spaces, found 3
(#23) Spaces must be used to indent lines; tabs are not allowed
(#23) Tab found within whitespace
(#23) Line indented incorrectly; expected at least 12 spaces, found 8
(#24) Spaces must be used to indent lines; tabs are not allowed
(#24) Tab found within whitespace
(#24) Line indented incorrectly; expected at least 12 spaces, found 9
(#25) Spaces must be used to indent lines; tabs are not allowed
(#25) Tab found within whitespace
(#25) Line indented incorrectly; expected at least 12 spaces, found 10
(#26) Spaces must be used to indent lines; tabs are not allowed
(#26) Tab found within whitespace
(#26) Line indented incorrectly; expected 8 spaces, found 2
(#28) Spaces must be used to indent lines; tabs are not allowed
(#28) Tab found within whitespace
(#28) Line indented incorrectly; expected 8 spaces, found 2
(#29) Spaces must be used to indent lines; tabs are not allowed
(#29) Tab found within whitespace
(#29) Line indented incorrectly; expected at least 12 spaces, found 3
(#30) Spaces must be used to indent lines; tabs are not allowed
(#30) Tab found within whitespace
(#30) Line indented incorrectly; expected at least 12 spaces, found 9
(#32) Spaces must be used to indent lines; tabs are not allowed
(#32) Tab found within whitespace
(#32) Line indented incorrectly; expected at least 12 spaces, found 9
(#33) Spaces must be used to indent lines; tabs are not allowed
(#33) Tab found within whitespace
(#33) Line indented incorrectly; expected at least 12 spaces, found 9
(#35) Spaces must be used to indent lines; tabs are not allowed
(#35) Tab found within whitespace
(#35) Line indented incorrectly; expected at least 12 spaces, found 9
(#36) Spaces must be used to indent lines; tabs are not allowed
(#36) Tab found within whitespace
(#36) Line indented incorrectly; expected at least 12 spaces, found 9
(#37) Spaces must be used to indent lines; tabs are not allowed
(#37) Tab found within whitespace
(#37) Line exceeds 132 characters; contains 140 characters
(#38) Closing brace indented incorrectly; expected 2 spaces, found 8
(#40) Spaces must be used to indent lines; tabs are not allowed
(#40) Tab found within whitespace
(#40) Line indented incorrectly; expected at least 8 spaces, found 5
(#41) Spaces must be used to indent lines; tabs are not allowed
(#41) Tab found within whitespace
(#41) Line indented incorrectly; expected at least 8 spaces, found 5
(#42) Spaces must be used to indent lines; tabs are not allowed
(#42) Tab found within whitespace
(#42) Line indented incorrectly; expected at least 8 spaces, found 5
(#44) Spaces must be used to indent lines; tabs are not allowed
(#44) Tab found within whitespace
(#44) Line indented incorrectly; expected at least 8 spaces, found 5
blocks/turnitin/db/access.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#3) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#4) Whitespace found at end of line
(#11) Whitespace found at end of line
(#14) Whitespace found at end of line
(#17) Whitespace found at end of line
(#24) Whitespace found at end of line
blocks/turnitin/jquery/plugins.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/>.".
(#17) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#18) Spaces must be used to indent lines; tabs are not allowed
(#18) Tab found within whitespace
(#18) Spaces must be used for alignment; tabs are not allowed
(#18) Tab found within whitespace
blocks/turnitin/lang/en/block_turnitin.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#3) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#3) Line 12 of the opening comment must start "//".
(#3) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
blocks/turnitin/version.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#3) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#4) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(7 errors, 1 warnings)

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

blocks/turnitin/jquery/turnitin_block.js
(#1) 'jQuery' is not defined. (no-undef)
(#10) Identifier 'request_source' is not in camel case. (camelcase)
(#12) eval can be harmful. (no-eval)
(#15) Unexpected tab character. (no-tabs)
(#15) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#19) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#19) Unexpected tab character. (no-tabs)
(#24) Unexpected tab character. (no-tabs)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(11 errors, 3 warnings)

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

blocks/turnitin/block_turnitin.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#5) Class block_turnitin is not documented
(#6) Function block_turnitin::init is not documented
(#10) Function block_turnitin::get_content is not documented
(#47) Function block_turnitin::applicable_formats is not documented
(#5) Package is not specified for class block_turnitin. It is also not specified in file-level phpdocs
blocks/turnitin/classes/privacy/provider.php
(#30) No one-line description found in phpdocs for class provider
blocks/turnitin/db/access.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
blocks/turnitin/jquery/plugins.php
(#17) File-level phpdocs block is not found
blocks/turnitin/lang/en/block_turnitin.php
(#2) File-level phpdocs block is not found
blocks/turnitin/version.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found

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

(0 errors, 0 warnings)

This section shows files built by grunt and not commited [More info]


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]