Prechecker results: error


Overview

(0 errors, 0 warnings)

This section shows the general problems detected when processing the code [More info]


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

(66 errors, 18 warnings)

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

mod/quiz/accessrule/failgrade/backup/moodle2/backup_quizaccess_failgrade_subplugin.class.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#3) Line 2 of the opening comment must start "//".
(#8) Line 7 of the opening comment must start "//".
(#13) Line 12 of the opening comment must start "//".
(#42) Missing docblock for function define_quiz_subplugin_structure
(#48) Short array syntax must be used to define arrays
(#56) Short array syntax must be used to define arrays
mod/quiz/accessrule/failgrade/backup/moodle2/restore_quizaccess_failgrade_subplugin.class.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#3) Line 2 of the opening comment must start "//".
(#8) Line 7 of the opening comment must start "//".
(#13) Line 12 of the opening comment must start "//".
(#42) Missing docblock for function define_quiz_subplugin_structure
(#44) Short array syntax must be used to define arrays
mod/quiz/accessrule/failgrade/classes/privacy/provider.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#3) Line 2 of the opening comment must start "//".
(#8) Line 7 of the opening comment must start "//".
(#13) Line 12 of the opening comment must start "//".
(#41) There must not be a space before the colon in a return type declaration
mod/quiz/accessrule/failgrade/lang/en/quizaccess_failgrade.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#3) Line 2 of the opening comment must start "//".
(#8) Line 7 of the opening comment must start "//".
(#13) Line 12 of the opening comment must start "//".
(#20) Incorrect @package tag for file quizaccess_failgrade.php. Expected quizaccess_failgrade, found quizaccess.
(#28) Unexpected string end, it should be a line feed after a semicolon
(#29) Unexpected string end, it should be a line feed after a semicolon
(#31) Unexpected string end, it should be a line feed after a semicolon
(#32) Unexpected string end, it should be a line feed after a semicolon
(#34) Unexpected string end, it should be a line feed after a semicolon
(#35) Unexpected string end, it should be a line feed after a semicolon
mod/quiz/accessrule/failgrade/rule.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#3) Line 2 of the opening comment must start "//".
(#8) Line 7 of the opening comment must start "//".
(#13) Line 12 of the opening comment must start "//".
(#20) Incorrect @package tag for file rule.php. Expected quizaccess_failgrade, found quizaccess.
(#28) "require_once" must be immediately followed by an open parenthesis
(#36) "require_once" must be immediately followed by an open parenthesis
(#46) Opening brace should be on the same line as the declaration for class quizaccess_failgrade
(#57) Opening brace should be on the same line as the declaration
(#73) Opening brace should be on the same line as the declaration
(#89) Opening brace should be on the same line as the declaration
(#104) Opening brace should be on the same line as the declaration
(#114) There should be a comma after the last array item in a multi-line array.
(#154) Opening brace should be on the same line as the declaration
(#177) Opening brace should be on the same line as the declaration
(#204) Opening brace should be on the same line as the declaration
(#208) There should be a comma after the last array item in a multi-line array.
mod/quiz/accessrule/failgrade/tests/rule_test.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#3) Line 2 of the opening comment must start "//".
(#8) Line 7 of the opening comment must start "//".
(#13) Line 12 of the opening comment must start "//".
(#20) Incorrect @package tag for file rule_test.php. Expected quizaccess_failgrade, found quizaccess.
(#22) Invalid @category tag value "phpunit".
(#36) "require_once" must be immediately followed by an open parenthesis
(#50) Testcase quizaccess_failgrade_testcase should be declared as abstract.
(#50) PHPUnit testcase name "quizaccess_failgrade_testcase" does not match file name "rule_test"
(#51) Opening brace should be on the same line as the declaration for class quizaccess_failgrade_testcase
(#52) Test method test_setting() is missing any coverage information, own or at class level
(#52) Test method test_setting() is missing a return type
(#53) Opening brace should be on the same line as the declaration
(#112) Test method test_grade_highest() is missing any coverage information, own or at class level
(#112) Test method test_grade_highest() is missing a return type
(#113) Opening brace should be on the same line as the declaration
(#156) There should be a comma after the last array item in a multi-line array.
(#168) Inline comments must end in full-stops, exclamation marks, or question marks
(#182) Inline comments must end in full-stops, exclamation marks, or question marks
(#196) Inline comments must end in full-stops, exclamation marks, or question marks
(#211) Test method test_grade_firstattempt() is missing any coverage information, own or at class level
(#211) Test method test_grade_firstattempt() is missing a return type
(#212) Opening brace should be on the same line as the declaration
(#256) There should be a comma after the last array item in a multi-line array.
(#314) There should be a comma after the last array item in a multi-line array.
(#340) Test method test_grade_lastattempt() is missing any coverage information, own or at class level
(#340) Test method test_grade_lastattempt() is missing a return type
(#341) Opening brace should be on the same line as the declaration
(#386) There should be a comma after the last array item in a multi-line array.
(#425) Test method test_grade_average() is missing any coverage information, own or at class level
(#425) Test method test_grade_average() is missing a return type
(#426) Opening brace should be on the same line as the declaration
(#469) There should be a comma after the last array item in a multi-line array.
mod/quiz/accessrule/failgrade/version.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#3) Line 2 of the opening comment must start "//".
(#8) Line 7 of the opening comment must start "//".
(#13) Line 12 of the opening comment must start "//".
(#20) Incorrect @package tag for file version.php. Expected quizaccess_failgrade, found quizaccess.

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

(7 errors, 0 warnings)

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

mod/quiz/accessrule/failgrade/rule.php
(#67) Phpdocs for function quizaccess_failgrade::prevent_new_attempt has incomplete parameters list
(#98) Phpdocs for function quizaccess_failgrade::is_finished has incomplete parameters list
(#132) Inline phpdocs tag {@link mod_quiz_mod_form::definition()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#149) Inline phpdocs tag {@link quiz_after_add_or_update()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#171) Inline phpdocs tag {@link quiz_delete_instance()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#186) Inline phpdocs tag {@link quiz_access_manager::load_settings()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#189) Inline phpdocs tag {@link get_extra_settings()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}

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]


Gherkin .feature problems

(0 errors, 0 warnings)

This section shows problems detected in behat .feature files [More info]