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

(85 errors, 3 warnings)

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

local/copygroups/classes/external/get_courses.php
(#1) No one-line description found in phpdocs for docblock of file get_courses.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#39) "require_once" must be immediately followed by an open parenthesis
(#41) Missing docblock for class get_courses
(#42) Opening brace should be on the same line as the declaration for class get_courses
(#50) No one-line description found in phpdocs for docblock of function get_courses
(#50) PHP4 style constructors are not allowed; use "__construct()" instead
(#50) Variable "course_id" must not contain underscores.
(#51) Opening brace should be on the same line as the declaration
(#56) There should be a comma after the last array item in a multi-line array.
(#56) Variable "course_id" must not contain underscores.
(#62) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#64) Variable "roles_can_import" must not contain underscores.
(#65) Variable "roles_can_import" must not contain underscores.
(#66) Variable "roles_can_import" must not contain underscores.
(#84) There should be a comma after the last array item in a multi-line array.
(#93) There should be a comma after the last array item in a multi-line array.
(#103) Missing docblock for function get_courses_parameters
(#104) Opening brace should be on the same line as the declaration
(#111) Missing docblock for function get_courses_returns
(#112) Opening brace should be on the same line as the declaration
(#116) There should be a comma after the last array item in a multi-line array.
(#120) File must end with a newline character
local/copygroups/classes/form/copy_distinct_groups.php
(#1) No one-line description found in phpdocs for docblock of file copy_distinct_groups.php
(#32) Missing docblock for class copy_distinct_groups
(#33) Opening brace should be on the same line as the declaration for class copy_distinct_groups
(#38) Opening brace should be on the same line as the declaration
local/copygroups/classes/form/copy_groups.php
(#1) No one-line description found in phpdocs for docblock of file copy_groups.php
(#32) Missing docblock for class copy_groups
(#33) Opening brace should be on the same line as the declaration for class copy_groups
(#38) Opening brace should be on the same line as the declaration
(#51) There should be a comma after the last array item in a multi-line array.
local/copygroups/classes/group_helper.php
(#1) No one-line description found in phpdocs for docblock of file group_helper.php
(#35) "require_once" must be immediately followed by an open parenthesis
(#37) Missing docblock for class group_helper
(#38) Opening brace should be on the same line as the declaration for class group_helper
(#39) The static declaration must come after the visibility declaration
(#39) Missing docblock for function copy_all_groups
(#40) Opening brace should be on the same line as the declaration
(#54) The static declaration must come after the visibility declaration
(#54) No one-line description found in phpdocs for docblock of function copy_groups
(#55) Opening brace should be on the same line as the declaration
(#67) Inline comments must end in full-stops, exclamation marks, or question marks
(#68) Variable "groups_to_insert" must not contain underscores.
(#69) Variable "groups_to_insert" must not contain underscores.
(#83) Inline comments must end in full-stops, exclamation marks, or question marks
(#125) The static declaration must come after the visibility declaration
(#125) Missing docblock for function get_groups_by_name
(#126) Opening brace should be on the same line as the declaration
local/copygroups/classes/privacy/provider.php
(#1) No one-line description found in phpdocs for docblock of file provider.php
(#27) Missing docblock for class provider
(#28) Opening brace should be on the same line as the declaration for class provider
(#35) There must not be a space before the colon in a return type declaration
(#38) File must end with a newline character
local/copygroups/db/services.php
(#1) No one-line description found in phpdocs for docblock of file services.php
(#23) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#30) There should be a comma after the last array item in a multi-line array.
(#31) There should be a comma after the last array item in a multi-line array.
local/copygroups/groups_select.php
(#1) No one-line description found in phpdocs for docblock of file groups_select.php
(#27) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#33) Variable "original_courseid" must not contain underscores.
(#35) Variable "original_course" must not contain underscores.
(#35) Variable "original_courseid" must not contain underscores.
(#47) Variable "original_course" must not contain underscores.
(#48) Variable "validate_url" must not contain underscores.
(#48) Variable "original_courseid" must not contain underscores.
(#51) Variable "validate_url" must not contain underscores.
(#51) Variable "original_courseid" must not contain underscores.
(#65) Variable "original_courseid" must not contain underscores.
local/copygroups/index.php
(#1) No one-line description found in phpdocs for docblock of file index.php
(#55) Line exceeds 132 characters; contains 135 characters
local/copygroups/lang/en/local_copygroups.php
(#1) No one-line description found in phpdocs for docblock of file local_copygroups.php
(#35) Inline doc block comments are not allowed; use "// Comment." instead
(#38) Inline doc block comments are not allowed; use "// Comment." instead
(#40) File must end with a newline character
local/copygroups/lang/fr/local_copygroups.php
(#1) No one-line description found in phpdocs for docblock of file local_copygroups.php
(#36) Inline doc block comments are not allowed; use "// Comment." instead
(#39) Inline doc block comments are not allowed; use "// Comment." instead
local/copygroups/lib.php
(#1) No one-line description found in phpdocs for docblock of file lib.php
(#27) No one-line description found in phpdocs for docblock of function local_copygroups_extend_navigation_course
(#28) Opening brace should be on the same line as the declaration
(#35) File must end with a newline character
local/copygroups/settings.php
(#1) No one-line description found in phpdocs for docblock of file settings.php
(#30) Closing brace must be on a line by itself
(#42) File must end with a newline character
local/copygroups/version.php
(#1) No one-line description found in phpdocs for docblock of file version.php
(#23) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#29) File must end with a newline character

Javascript coding style problems

(0 errors, 2 warnings)

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

local/copygroups/amd/src/get_courses.js
(#37) Identifier 'course_id' is not in camel case. (camelcase)
(#44) Expected space(s) after "catch". (keyword-spacing)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(3 errors, 0 warnings)

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

local/copygroups/classes/external/get_courses.php
(#43) Phpdocs for function get_courses::get_courses has incomplete parameters list
local/copygroups/classes/group_helper.php
(#48) Phpdocs for function group_helper::copy_groups has incomplete parameters list
local/copygroups/lib.php
(#23) Phpdocs for function local_copygroups_extend_navigation_course 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

(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, 1 warnings)

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

local/copygroups/templates/modal_validation.mustache
(#1) Example context missing (@template section not found.)

Gherkin .feature problems

(0 errors, 0 warnings)

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