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

(45 errors, 21 warnings)

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

blocks/rolespecifichtml/block_rolespecifichtml.php
(#19) Inline doc block comments are not allowed; use "// Comment." instead
(#39) Line exceeds 132 characters; contains 159 characters
(#49) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#80) Line exceeds 132 characters; contains 160 characters
(#91) Line exceeds 132 characters; contains 168 characters
(#96) Line exceeds 132 characters; contains 135 characters
(#104) Inline control structures are not allowed
(#119) Line exceeds maximum limit of 180 characters; contains 194 characters
(#133) Line exceeds maximum limit of 180 characters; contains 195 characters
(#224) Expected "foreach (...) {\n"; found "foreach(...) {\n"
blocks/rolespecifichtml/db/access.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#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".
(#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.".
(#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".
(#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/>.".
(#17) Expected 1 space before comment text but found 3; use block comment if you need indentation
(#22) Expected 1 space before comment text but found 4; use block comment if you need indentation
(#25) Expected 1 space before comment text but found 11; use block comment if you need indentation
(#26) Expected 1 space before comment text but found 11; use block comment if you need indentation
(#29) Expected 1 space before comment text but found 3; use block comment if you need indentation
blocks/rolespecifichtml/edit_form.php
(#28) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#28) Scope modifier not specified for member variable "$context"
(#52) Line exceeds 132 characters; contains 139 characters
(#53) Inline comments must end in full-stops, exclamation marks, or question marks
(#56) Inline comments must end in full-stops, exclamation marks, or question marks
(#62) This comment is 68% valid code; is this commented out code?
(#83) Line exceeds 132 characters; contains 156 characters
(#84) Line exceeds 132 characters; contains 133 characters
(#84) Inline comments must end in full-stops, exclamation marks, or question marks
(#94) Visibility must be declared on method "set_data"
(#97) Line exceeds 132 characters; contains 170 characters
(#97) Space found before semicolon; expected ");" but found ") ;"
(#112) Variable "text_all" must not contain underscores.
(#113) Variable "draftid_editor" must not contain underscores.
(#115) Variable "text_all" must not contain underscores.
(#118) Variable "text_all" must not contain underscores.
(#121) Variable "draftid_editor" must not contain underscores.
(#121) Line exceeds maximum limit of 180 characters; contains 197 characters
(#122) Variable "draftid_editor" must not contain underscores.
(#133) Inline comments must start with a capital letter, digit or 3-dots sequence
(#133) Inline comments must end in full-stops, exclamation marks, or question marks
(#133) This comment is 58% valid code; is this commented out code?
(#134) Variable "draftid_editor" must not contain underscores.
(#142) Variable "draftid_editor" must not contain underscores.
(#142) Line exceeds maximum limit of 180 characters; contains 206 characters
(#143) Variable "draftid_editor" must not contain underscores.
(#148) Variable "text_all" must not contain underscores.
(#165) Inline comments must end in full-stops, exclamation marks, or question marks
(#175) Inline comments must end in full-stops, exclamation marks, or question marks
(#179) Variable "text_all" must not contain underscores.
blocks/rolespecifichtml/lang/en/block_rolespecifichtml.php
(#2) The opening <?php tag must be followed by exactly one newline.
blocks/rolespecifichtml/lang/fr/block_rolespecifichtml.php
(#2) The opening <?php tag must be followed by exactly one newline.
blocks/rolespecifichtml/lib.php
(#28) Variable "birecord_or_cm" must not contain underscores.
(#46) Line exceeds 132 characters; contains 134 characters
(#50) Variable "birecord_or_cm" must not contain underscores.
(#64) Expected 1 space before "*"; 0 found
(#64) Expected 1 space after "*"; 0 found
(#78) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/rolespecifichtml/version.php
(#30) Inline comments must end in full-stops, exclamation marks, or question marks
(#35) 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 csslint [More info]


PHPDocs style problems

(30 errors, 2 warnings)

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

blocks/rolespecifichtml/block_rolespecifichtml.php
(#17) File-level phpdocs block is not found
(#28) Class block_rolespecifichtml is not documented
(#30) Function block_rolespecifichtml::init is not documented
(#34) Function block_rolespecifichtml::applicable_formats is not documented
(#38) Function block_rolespecifichtml::specialization is not documented
(#42) Function block_rolespecifichtml::instance_allow_multiple is not documented
(#46) Function block_rolespecifichtml::get_content is not documented
(#141) Function block_rolespecifichtml::instance_delete is not documented
(#148) Function block_rolespecifichtml::content_is_trusted is not documented
(#184) Function block_rolespecifichtml::hide_header is not documented
(#109) Phpdocs for function block_rolespecifichtml::instance_config_save has incomplete parameters list
(#28) Package is not specified for class block_rolespecifichtml. It is also not specified in file-level phpdocs
(#21) Category blocks is not valid
blocks/rolespecifichtml/db/access.php
(#) File-level phpdocs block is not found
blocks/rolespecifichtml/edit_form.php
(#17) File-level phpdocs block is not found
(#26) Class block_rolespecifichtml_edit_form is not documented
(#30) Function block_rolespecifichtml_edit_form::specific_definition is not documented
(#94) Function block_rolespecifichtml_edit_form::set_data is not documented
(#28) Variable block_rolespecifichtml_edit_form::$context is not documented
(#26) Package is not specified for class block_rolespecifichtml_edit_form. It is also not specified in file-level phpdocs
(#21) Category blocks is not valid
blocks/rolespecifichtml/lang/en/block_rolespecifichtml.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
blocks/rolespecifichtml/lang/fr/block_rolespecifichtml.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
blocks/rolespecifichtml/lib.php
(#17) File-level phpdocs block is not found
(#28) Function block_rolespecifichtml_pluginfile is not documented
(#69) Phpdocs for function block_rolespecifichtml_global_db_replace has incomplete parameters list
(#28) Package is not specified for function block_rolespecifichtml_pluginfile. It is also not specified in file-level phpdocs
(#67) Package is not specified for function block_rolespecifichtml_global_db_replace. It is also not specified in file-level phpdocs
(#23) Category blocks is not valid
blocks/rolespecifichtml/version.php
(#21) Category blocks is not valid

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]