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

(100 errors, 46 warnings)

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

grade/export/checklist/columns.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#6) Inline comments must end in full-stops, exclamation marks, or question marks
(#8) Inline comments must end in full-stops, exclamation marks, or question marks
(#10) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#10) Variable "checklist_report_user_columns" must not contain underscores.
(#11) This comment is 58% valid code; is this commented out code?
(#11) Inline comments must start with a capital letter, digit or 3-dots sequence
(#11) No space found before comment text; expected "// 'region' => 'Region', // Requested by a specific client" but found "//'region' => 'Region', // Requested by a specific client"
(#12) Inline comments must end in full-stops, exclamation marks, or question marks
(#12) This comment is 58% valid code; is this commented out code?
(#12) No space found before comment text; expected "// 'district' => 'District', // Requested by a specific client" but found "//'district' => 'District', // Requested by a specific client"
(#17) This comment is 58% valid code; is this commented out code?
(#17) Inline comments must start with a capital letter, digit or 3-dots sequence
(#17) No space found before comment text; expected "// 'role' => 'Position', // Requested by a specific client" but found "//'role' => 'Position', // Requested by a specific client"
(#18) This comment is 58% valid code; is this commented out code?
(#18) No space found before comment text; expected "// 'dealername' => 'Dealer Name', // Requested by a specific client" but found "//'dealername' => 'Dealer Name', // Requested by a specific client"
(#19) Inline comments must end in full-stops, exclamation marks, or question marks
(#19) This comment is 58% valid code; is this commented out code?
(#19) No space found before comment text; expected "// 'dealernumber' => 'Dealer #', // Requested by a specific client" but found "//'dealernumber' => 'Dealer #', // Requested by a specific client"
(#22) Line exceeds 132 characters; contains 144 characters
(#22) Inline comments must end in full-stops, exclamation marks, or question marks
(#28) Inline comments must end in full-stops, exclamation marks, or question marks
grade/export/checklist/db/access.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#3) Inline comments must start with a capital letter, digit or 3-dots sequence
(#3) 75 slashes comments are not allowed; use "// Comment." instead
(#4) Expected 1 space before comment text but found 71; use block comment if you need indentation
(#6) Expected 1 space before comment text but found 71; use block comment if you need indentation
(#8) Expected 1 space before comment text but found 10; use block comment if you need indentation
(#9) Expected 1 space before comment text but found 71; use block comment if you need indentation
(#11) Expected 1 space before comment text but found 71; use block comment if you need indentation
(#16) Expected 1 space before comment text but found 71; use block comment if you need indentation
(#21) Expected 1 space before comment text but found 71; use block comment if you need indentation
(#22) Expected 1 space before comment text but found 10; use block comment if you need indentation
(#23) Expected 1 space before comment text but found 71; use block comment if you need indentation
(#24) Inline comments must end in full-stops, exclamation marks, or question marks
(#24) 75 slashes comments are not allowed; use "// Comment." instead
(#26) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
grade/export/checklist/export.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#3) Inline comments must end in full-stops, exclamation marks, or question marks
(#6) Inline comments must end in full-stops, exclamation marks, or question marks
(#10) Inline comments must start with a capital letter, digit or 3-dots sequence
(#10) Inline comments must end in full-stops, exclamation marks, or question marks
(#35) Commas (,) must be followed by white space.
(#43) Commas (,) must be followed by white space.
(#63) Commas (,) must be followed by white space.
(#69) Commas (,) must be followed by white space.
(#76) Line exceeds 132 characters; contains 134 characters
(#81) Commas (,) must be followed by white space.
(#86) Variable "checklist_report_user_columns" must not contain underscores.
(#89) Inline comments must end in full-stops, exclamation marks, or question marks
(#136) Commas (,) must be followed by white space.
(#136) Commas (,) must be followed by white space.
(#136) Commas (,) must be followed by white space.
(#136) Commas (,) must be followed by white space.
(#136) Commas (,) must be followed by white space.
(#136) Commas (,) must be followed by white space.
(#136) Commas (,) must be followed by white space.
(#136) Commas (,) must be followed by white space.
(#140) Inline comments must end in full-stops, exclamation marks, or question marks
(#140) 3 slashes comments are not allowed; use "// Comment." instead
(#143) Variable "checklist_report_user_columns" must not contain underscores.
(#149) Inline comments must end in full-stops, exclamation marks, or question marks
(#151) Inline comments must end in full-stops, exclamation marks, or question marks
(#155) Inline comments must end in full-stops, exclamation marks, or question marks
(#157) Inline comments must end in full-stops, exclamation marks, or question marks
(#166) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#195) Expected 1 space before "="; 0 found
(#195) Expected 1 space after "="; 0 found
(#195) Expected 1 space before "<"; 0 found
(#195) Expected 1 space after "<"; 0 found
(#195) Variable "checklist_report_user_columns" must not contain underscores.
(#212) Inline comments must end in full-stops, exclamation marks, or question marks
(#224) Variable "groups_str" must not contain underscores.
(#226) Variable "groups_str" must not contain underscores.
(#229) Variable "groups_str" must not contain underscores.
(#242) Variable "checklist_report_user_columns" must not contain underscores.
(#244) Variable "groups_str" must not contain underscores.
(#299) Inline comments must end in full-stops, exclamation marks, or question marks
(#306) Inline comments must end in full-stops, exclamation marks, or question marks
grade/export/checklist/index.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#3) Inline comments must start with a capital letter, digit or 3-dots sequence
(#3) 75 slashes comments are not allowed; use "// Comment." instead
(#4) Expected 1 space before comment text but found 71; use block comment if you need indentation
(#6) Expected 1 space before comment text but found 71; use block comment if you need indentation
(#8) Expected 1 space before comment text but found 10; use block comment if you need indentation
(#9) Expected 1 space before comment text but found 71; use block comment if you need indentation
(#11) Expected 1 space before comment text but found 71; use block comment if you need indentation
(#16) Expected 1 space before comment text but found 71; use block comment if you need indentation
(#21) Expected 1 space before comment text but found 71; use block comment if you need indentation
(#22) Expected 1 space before comment text but found 10; use block comment if you need indentation
(#23) Expected 1 space before comment text but found 71; use block comment if you need indentation
(#24) Inline comments must end in full-stops, exclamation marks, or question marks
(#24) 75 slashes comments are not allowed; use "// Comment." instead
(#30) Inline comments must start with a capital letter, digit or 3-dots sequence
(#30) Inline comments must end in full-stops, exclamation marks, or question marks
(#32) Expected 1 space before "=>"; 0 found
(#32) Expected 1 space after "=>"; 0 found
(#52) Inline comments must end in full-stops, exclamation marks, or question marks
(#58) Inline comments must end in full-stops, exclamation marks, or question marks
(#62) Commas (,) must be followed by white space.
(#65) Inline comments must end in full-stops, exclamation marks, or question marks
(#75) Commas (,) must be followed by white space.
(#89) Inline comments must end in full-stops, exclamation marks, or question marks
(#91) Inline comments must end in full-stops, exclamation marks, or question marks
(#104) Line exceeds 132 characters; contains 133 characters
(#106) Commas (,) must be followed by white space.
(#106) Line exceeds 132 characters; contains 156 characters
(#115) Commas (,) must be followed by white space.
(#115) Line exceeds 132 characters; contains 156 characters
(#117) Commas (,) must be followed by white space.
(#135) Expected 1 space before "=>"; 0 found
(#135) Expected 1 space after "=>"; 0 found
(#135) Expected 1 space before "=>"; 0 found
(#135) Expected 1 space after "=>"; 0 found
(#142) Line exceeds 132 characters; contains 153 characters
(#159) Commas (,) must be followed by white space.
grade/export/checklist/lang/en/gradeexport_checklist.php
(#2) The opening <?php tag must be followed by exactly one newline.
grade/export/checklist/lang/es/gradeexport_checklist.php
(#2) The opening <?php tag must be followed by exactly one newline.
grade/export/checklist/lang/fr/gradeexport_checklist.php
(#2) The opening <?php tag must be followed by exactly one newline.
grade/export/checklist/lang/sk/gradeexport_checklist.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#25) A closing tag is not permitted at the end of a PHP file
grade/export/checklist/version.php
(#2) Inline comments must start with a capital letter, digit or 3-dots sequence
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) 75 slashes comments are not allowed; use "// Comment." instead
(#3) Expected 1 space before comment text but found 71; use block comment if you need indentation
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#5) Expected 1 space before comment text but found 71; use block comment if you need indentation
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#7) Expected 1 space before comment text but found 10; use block comment if you need indentation
(#8) Expected 1 space before comment text but found 71; use block comment if you need indentation
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#10) Expected 1 space before comment text but found 71; use block comment if you need indentation
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#15) Expected 1 space before comment text but found 71; use block comment if you need indentation
(#20) Expected 1 space before comment text but found 71; use block comment if you need indentation
(#21) Expected 1 space before comment text but found 10; use block comment if you need indentation
(#22) Expected 1 space before comment text but found 71; use block comment if you need indentation
(#23) Inline comments must end in full-stops, exclamation marks, or question marks
(#23) 75 slashes comments are not allowed; use "// Comment." instead
(#29) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(0 errors, 0 warnings)

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


CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(26 errors, 8 warnings)

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

grade/export/checklist/columns.php
(#2) Empty line found after PHP open tag
(#10) File-level phpdocs block is not found
grade/export/checklist/db/access.php
(#2) Empty line found after PHP open tag
(#26) File-level phpdocs block is not found
(#3) Found comment starting with three or more slashes
(#24) Found comment starting with three or more slashes
grade/export/checklist/export.php
(#91) Package is not specified for class FakeMoodleExcelWorkbook. It is also not specified in file-level phpdocs
(#117) Package is not specified for function safe_write_string. It is also not specified in file-level phpdocs
(#2) Empty line found after PHP open tag
(#5) File-level phpdocs block is not found
(#91) Class FakeMoodleExcelWorkbook is not documented
(#92) Function FakeMoodleExcelWorkbook::__construct is not documented
(#95) Function FakeMoodleExcelWorkbook::send is not documented
(#98) Function FakeMoodleExcelWorkbook::write_string is not documented
(#102) Function FakeMoodleExcelWorkbook::write_number is not documented
(#106) Function FakeMoodleExcelWorkbook::add_worksheet is not documented
(#110) Function FakeMoodleExcelWorkbook::close is not documented
(#117) Function safe_write_string is not documented
(#140) Found comment starting with three or more slashes
grade/export/checklist/index.php
(#2) Empty line found after PHP open tag
(#27) File-level phpdocs block is not found
(#3) Found comment starting with three or more slashes
(#24) Found comment starting with three or more slashes
grade/export/checklist/lang/en/gradeexport_checklist.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
grade/export/checklist/lang/es/gradeexport_checklist.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
grade/export/checklist/lang/fr/gradeexport_checklist.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
grade/export/checklist/lang/sk/gradeexport_checklist.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
grade/export/checklist/version.php
(#25) File-level phpdocs block is not found
(#2) Found comment starting with three or more slashes
(#23) Found comment starting with three or more slashes

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]