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

(81 errors, 12 warnings)

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

blocks/simple_certificate/block_simple_certificate.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/>.".
(#19) Whitespace found at end of line
(#30) Whitespace found at end of line
(#53) Whitespace found at end of line
(#58) Whitespace found at end of line
(#61) Whitespace found at end of line
(#65) Whitespace found at end of line
(#75) Whitespace found at end of line
(#77) Inline comments must end in full-stops, exclamation marks, or question marks
(#80) Whitespace found at end of line within string
(#81) Whitespace found at end of line
(#83) Whitespace found at end of line
(#85) Inline comments must end in full-stops, exclamation marks, or question marks
(#89) Whitespace found at end of line
(#91) Whitespace found at end of line
(#96) Visibility must be declared on method "get_content"
(#98) Whitespace found at end of line
(#99) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#102) Whitespace found at end of line
(#103) Inline comments must end in full-stops, exclamation marks, or question marks
(#107) Whitespace found at end of line
(#113) Whitespace found at end of line
(#127) Whitespace found at end of line
blocks/simple_certificate/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/>.".
(#19) Whitespace found at end of line
(#30) 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
(#35) Whitespace found at end of line
(#37) Whitespace found at end of line
blocks/simple_certificate/lang/en/block_simple_certificate.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/>.".
(#19) Whitespace found at end of line
blocks/simple_certificate/lib.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/>.".
(#21) Whitespace found at end of line
(#31) Whitespace found at end of line
(#34) Variable "birecord_or_cm" must not contain underscores.
(#34) Whitespace found at end of line
(#37) Whitespace found at end of line
(#38) "require" must be immediately followed by an open parenthesis
(#40) Whitespace found at end of line
blocks/simple_certificate/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/>.".
(#19) Whitespace found at end of line
(#33) Whitespace found at end of line
(#41) Whitespace found at end of line
(#52) Whitespace found at end of line
(#61) Whitespace found at end of line
(#64) Whitespace found at end of line
(#67) Whitespace found at end of line
(#80) Inline comments must end in full-stops, exclamation marks, or question marks
(#84) Whitespace found at end of line
(#85) Inline comments must end in full-stops, exclamation marks, or question marks
(#87) Inline comments must start with a capital letter, digit or 3-dots sequence
(#87) Inline comments must end in full-stops, exclamation marks, or question marks
(#92) Whitespace found at end of line
(#96) This comment is 75% valid code; is this commented out code?
(#96) Perl-style comments are not allowed; use "// Comment." instead
(#109) Whitespace found at end of line
(#125) Visibility must be declared on method "get_certs_tree"
(#127) Whitespace found at end of line
(#128) Inline control structures are not allowed
(#130) Whitespace found at end of line
(#132) Whitespace found at end of line
(#135) Whitespace found at end of line
(#143) Whitespace found at end of line
(#147) Whitespace found at end of line
(#152) Whitespace found at end of line
blocks/simple_certificate/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/>.".
(#19) Whitespace found at end of line
(#31) Whitespace found at end of line
(#32) Whitespace found at end of line
blocks/simple_certificate/version.php
(#21) Spaces must be used for alignment; tabs are not allowed
(#31) 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
(#34) Inline comments must end in full-stops, exclamation marks, or question marks
(#34) No space found before comment text; expected "// MATURITY_ALPHA, MATURITY_BETA, MATURITY_RC, MATURITY_STABLE" but found "//MATURITY_ALPHA, MATURITY_BETA, MATURITY_RC, MATURITY_STABLE"
blocks/simple_certificate/view.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/>.".
(#19) Whitespace found at end of line
(#27) "require_once" must be immediately followed by an open parenthesis
(#28) "require_once" must be immediately followed by an open parenthesis
(#29) "require_once" must be immediately followed by an open parenthesis
(#50) Inline comments must end in full-stops, exclamation marks, or question marks
(#57) Inline comments must end in full-stops, exclamation marks, or question marks
(#57) No space found before comment text; expected "// $certificates = block_simple_certificate::get_issued_certificates($uid, NULL);" but found "//$certificates = block_simple_certificate::get_issued_certificates($uid, NULL);"
(#58) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"

Javascript coding style problems

(13 errors, 4 warnings)

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

blocks/simple_certificate/module.js
(#20) Unexpected tab character. (no-tabs)
(#26) Identifier 'block_simple_certificate' is not in camel case. (camelcase)
(#28) Identifier 'init_tree' is not in camel case. (camelcase)
(#28) Identifier 'expand_all' is not in camel case. (camelcase)
(#29) Unexpected tab character. (no-tabs)
(#30) Unexpected tab character. (no-tabs)
(#32) Unexpected tab character. (no-tabs)
(#32) 'event' is defined but never used. (no-unused-vars)
(#33) Unexpected tab character. (no-tabs)
(#34) Unexpected tab character. (no-tabs)
(#35) Unexpected tab character. (no-tabs)
(#37) Unexpected tab character. (no-tabs)
(#37) Identifier 'expand_all' is not in camel case. (camelcase)
(#38) Unexpected tab character. (no-tabs)
(#39) Unexpected tab character. (no-tabs)
(#40) Unexpected tab character. (no-tabs)
(#41) Unexpected tab character. (no-tabs)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(21 errors, 0 warnings)

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

blocks/simple_certificate/block_simple_certificate.php
(#29) Class block_simple_certificate is not documented
(#33) Function block_simple_certificate::init is not documented
(#37) Function block_simple_certificate::has_config is not documented
(#41) Function block_simple_certificate::applicable_formats is not documented
(#45) Function block_simple_certificate::instance_allow_multiple is not documented
(#59) Function block_simple_certificate::get_issued_certificates is not documented
(#96) Function block_simple_certificate::get_content is not documented
(#31) Variable block_simple_certificate::$certs is not documented
blocks/simple_certificate/lib.php
(#17) File-level phpdocs block is not found
(#29) Phpdocs for function block_simple_certificate_pluginfile has incomplete parameters list
(#29) Package is not specified for function block_simple_certificate_pluginfile. It is also not specified in file-level phpdocs
blocks/simple_certificate/renderer.php
(#29) Class block_simple_certificate_renderer is not documented
(#114) Class simple_certificate_tree is not documented
(#40) Function block_simple_certificate_renderer::render_simple_certificate_tree is not documented
(#119) Function simple_certificate_tree::__construct is not documented
(#125) Function simple_certificate_tree::get_certs_tree is not documented
(#115) Variable simple_certificate_tree::$node is not documented
(#116) Variable simple_certificate_tree::$all is not documented
(#117) Variable simple_certificate_tree::$showcourse is not documented
(#31) Phpdocs for function block_simple_certificate_renderer::block_simple_certificate_tree has incomplete parameters list
(#56) Phpdocs for function block_simple_certificate_renderer::htmllize_tree has incomplete parameters list

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

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