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

(127 errors, 19 warnings)

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

local/moodlemobileapp/classes/privacy/provider.php
(#21) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#23) Missing @copyright tag
(#23) Missing @license tag
(#23) Missing docblock for class provider
(#26) Invalid docblock tag "@inheritdoc".
(#28) No one-line description found in phpdocs for docblock of function get_reason
(#28) There must not be a space before the colon in a return type declaration
local/moodlemobileapp/lang/en/local_moodlemobileapp.php
(#20) Incorrect @package tag for file local_moodlemobileapp.php. Expected local_moodlemobileapp, found local.
(#50) Unexpected comment found. Auto-fixing will not work after this comment
(#51) The string key "addon.block_myoverview.browseallcourses" is not in the correct order, it should be before "privacy_metadata"
(#830) Unexpected comment found. Auto-fixing will not work after this comment
(#832) Inline comments must end in full-stops, exclamation marks, or question marks
(#837) Inline comments must end in full-stops, exclamation marks, or question marks
local/moodlemobileapp/parser/functions.php
(#1) DocBlock missing a @package tag for file functions.php. Expected @package local_moodlemobileapp
(#17) Missing @copyright tag
(#17) Missing @license tag
(#25) DocBlock missing a @package tag for function build_languages. Expected @package local_moodlemobileapp
(#25) Variable "time_first" must not contain underscores.
(#26) Variable "LANGUAGES" must be all lower-case
(#27) Variable "LAST_RUN_LANGUAGES" must be all lower-case
(#27) Variable "LAST_RUN_LANGUAGES" must not contain underscores.
(#28) Variable "STATS" must be all lower-case
(#36) Variable "LANGUAGES" must be all lower-case
(#42) Variable "LAST_RUN_LANGUAGES" must be all lower-case
(#42) Variable "LAST_RUN_LANGUAGES" must not contain underscores.
(#43) Variable "LAST_RUN_LANGUAGES" must be all lower-case
(#43) Variable "LAST_RUN_LANGUAGES" must not contain underscores.
(#44) Perl-style comments are not allowed; use "// Comment." instead
(#45) Variable "time_first" must not contain underscores.
(#51) Variable "LAST_RUN_LANGUAGES" must be all lower-case
(#51) Variable "LAST_RUN_LANGUAGES" must not contain underscores.
(#60) Variable "LAST_RUN_LANGUAGES" must be all lower-case
(#60) Variable "LAST_RUN_LANGUAGES" must not contain underscores.
(#61) Variable "LAST_RUN_LANGUAGES" must be all lower-case
(#61) Variable "LAST_RUN_LANGUAGES" must not contain underscores.
(#61) Variable "STATS" must be all lower-case
(#62) Variable "LAST_RUN_LANGUAGES" must be all lower-case
(#62) Variable "LAST_RUN_LANGUAGES" must not contain underscores.
(#62) Variable "STATS" must be all lower-case
(#64) Variable "LAST_RUN_LANGUAGES" must be all lower-case
(#64) Variable "LAST_RUN_LANGUAGES" must not contain underscores.
(#70) DocBlock missing a @package tag for function load_languages. Expected @package local_moodlemobileapp
(#71) Variable "LANGUAGES" must be all lower-case
(#72) Variable "LAST_RUN_LANGUAGES" must be all lower-case
(#72) Variable "LAST_RUN_LANGUAGES" must not contain underscores.
(#73) Variable "LANGINDEX" must be all lower-case
(#74) Variable "STATS" must be all lower-case
(#76) Variable "LANGUAGES" must be all lower-case
(#77) Variable "LAST_RUN_LANGUAGES" must be all lower-case
(#77) Variable "LAST_RUN_LANGUAGES" must not contain underscores.
(#86) Variable "LANGINDEX" must be all lower-case
(#108) Variable "LANGINDEX" must be all lower-case
(#109) Variable "LANGINDEX" must be all lower-case
(#112) Variable "LANGINDEX" must be all lower-case
(#120) Variable "STATS" must be all lower-case
(#121) Variable "STATS" must be all lower-case
(#122) Variable "STATS" must be all lower-case
(#126) Variable "LANGUAGES" must be all lower-case
(#134) DocBlock missing a @package tag for function build_lang. Expected @package local_moodlemobileapp
(#135) Variable "STATS" must be all lower-case
(#136) Variable "LANGINDEX" must be all lower-case
(#152) Variable "langFile" must be all lower-case
(#155) Variable "langFile" must be all lower-case
(#160) Variable "LANGINDEX" must be all lower-case
(#172) Variable "langFile" must be all lower-case
(#172) Variable "langFile" must be all lower-case
(#176) Variable "langFile" must be all lower-case
(#195) Line exceeds 132 characters; contains 136 characters
(#195) Inline comments must start with a capital letter, digit or 3-dots sequence
(#222) Expected 1 space before "/"; 0 found
(#222) Expected 1 space after "/"; 0 found
(#222) Variable "STATS" must be all lower-case
(#229) Variable "STATS" must be all lower-case
(#238) DocBlock missing a @package tag for function save_json. Expected @package local_moodlemobileapp
(#246) Incorrect docblock tag "@returns". Should be "@return".
(#248) DocBlock missing a @package tag for function load_json. Expected @package local_moodlemobileapp
(#258) Incorrect docblock tag "@returns". Should be "@return".
(#260) DocBlock missing a @package tag for function load_csv. Expected @package local_moodlemobileapp
(#262) Variable "csv_sorted" must not contain underscores.
(#264) Variable "csv_sorted" must not contain underscores.
(#267) Variable "csv_sorted" must not contain underscores.
(#274) Incorrect docblock tag "@returns". Should be "@return".
(#276) DocBlock missing a @package tag for function get_langpack_folder. Expected @package local_moodlemobileapp
(#290) Incorrect docblock tag "@returns". Should be "@return".
(#292) DocBlock missing a @package tag for function get_translation_strings. Expected @package local_moodlemobileapp
(#311) Incorrect docblock tag "@returns". Should be "@return".
(#313) DocBlock missing a @package tag for function progressbar. Expected @package local_moodlemobileapp
(#322) Incorrect docblock tag "@returns". Should be "@return".
(#324) DocBlock missing a @package tag for function get_parent_language. Expected @package local_moodlemobileapp
(#328) Line exceeds 132 characters; contains 142 characters
local/moodlemobileapp/parser/moodle_to_json.php
(#1) DocBlock missing a @package tag for file moodle_to_json.php. Expected @package local_moodlemobileapp
(#17) Missing @copyright tag
(#17) Missing @license tag
(#22) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#27) Commas (,) must be followed by white space.
local/moodlemobileapp/structure/config-template.php
(#20) Incorrect @package tag for file config-template.php. Expected local_moodlemobileapp, found core.
local/moodlemobileapp/structure/functions.php
(#1) DocBlock missing a @package tag for file functions.php. Expected @package local_moodlemobileapp
(#17) Missing @copyright tag
(#17) Missing @license tag
(#21) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#30) DocBlock missing a @package tag for function fix_comment. Expected @package local_moodlemobileapp
(#54) DocBlock missing a @package tag for function get_inline_comment. Expected @package local_moodlemobileapp
(#65) DocBlock missing a @package tag for function get_ts_doc. Expected @package local_moodlemobileapp
(#80) DocBlock missing a @package tag for function convert_key_type. Expected @package local_moodlemobileapp
(#93) DocBlock missing a @package tag for function print_ws_structures. Expected @package local_moodlemobileapp
(#105) DocBlock missing a @package tag for function print_ws_structure. Expected @package local_moodlemobileapp
(#131) This comment is 52% valid code; is this commented out code?
(#132) Line indented incorrectly; expected at least 4 spaces, found 1
(#133) Line indented incorrectly; expected at least 4 spaces, found 1
(#134) Line indented incorrectly; expected at least 4 spaces, found 1
(#135) Line indented incorrectly; expected at least 4 spaces, found 1
(#136) Line indented incorrectly; expected at least 4 spaces, found 0
(#144) DocBlock missing a @package tag for function getTSTypeFromName. Expected @package local_moodlemobileapp
(#144) function name "getTSTypeFromName" must be lower-case letters only
(#188) DocBlock missing a @package tag for function concatenate_paths. Expected @package local_moodlemobileapp
(#195) Variable "lastCharLeft" must be all lower-case
(#196) Variable "firstCharRight" must be all lower-case
(#198) Variable "lastCharLeft" must be all lower-case
(#198) Variable "firstCharRight" must be all lower-case
(#200) Variable "lastCharLeft" must be all lower-case
(#200) Variable "firstCharRight" must be all lower-case
local/moodlemobileapp/structure/get_all_ws_structures.php
(#1) DocBlock missing a @package tag for file get_all_ws_structures.php. Expected @package local_moodlemobileapp
(#17) Missing @copyright tag
(#17) Missing @license tag
(#26) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
local/moodlemobileapp/structure/ws_functions.php
(#1) DocBlock missing a @package tag for file ws_functions.php. Expected @package local_moodlemobileapp
(#17) Missing @copyright tag
(#17) Missing @license tag
(#31) DocBlock missing a @package tag for function get_all_ws_structures. Expected @package local_moodlemobileapp
(#34) Inline comments must start with a capital letter, digit or 3-dots sequence
(#34) Inline comments must end in full-stops, exclamation marks, or question marks
(#35) Short array syntax must be used to define arrays
(#36) Short array syntax must be used to define arrays
(#58) DocBlock missing a @package tag for function convert_to_ts. Expected @package local_moodlemobileapp
local/moodlemobileapp/structure/ws_functions_41.php
(#1) DocBlock missing a @package tag for file ws_functions_41.php. Expected @package local_moodlemobileapp
(#17) Missing @copyright tag
(#17) Missing @license tag
(#23) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#28) DocBlock missing a @package tag for function get_all_ws_structures. Expected @package local_moodlemobileapp
(#31) Inline comments must start with a capital letter, digit or 3-dots sequence
(#31) Inline comments must end in full-stops, exclamation marks, or question marks
(#32) Short array syntax must be used to define arrays
(#33) Short array syntax must be used to define arrays
(#44) DocBlock missing a @package tag for function convert_to_ts. Expected @package local_moodlemobileapp
local/moodlemobileapp/version.php
(#20) Incorrect @package tag for file version.php. Expected local_moodlemobileapp, found local.
(#31) 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

(19 errors, 0 warnings)

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

local/moodlemobileapp/parser/functions.php
(#23) Phpdocs for function build_languages has incomplete parameters list
(#132) Phpdocs for function build_lang has incomplete parameters list
(#235) Phpdocs for function save_json has incomplete parameters list
(#245) Phpdocs for function load_json has incomplete parameters list
(#256) Phpdocs for function load_csv has incomplete parameters list
(#273) Phpdocs for function get_langpack_folder has incomplete parameters list
(#288) Phpdocs for function get_translation_strings has incomplete parameters list
(#309) Phpdocs for function progressbar has incomplete parameters list
(#321) Phpdocs for function get_parent_language has incomplete parameters list
local/moodlemobileapp/structure/functions.php
(#27) Phpdocs for function fix_comment has incomplete parameters list
(#51) Phpdocs for function get_inline_comment has incomplete parameters list
(#62) Phpdocs for function get_ts_doc has incomplete parameters list
(#77) Phpdocs for function convert_key_type has incomplete parameters list
(#90) Phpdocs for function print_ws_structures has incomplete parameters list
(#102) Phpdocs for function print_ws_structure has incomplete parameters list
(#141) Phpdocs for function getTSTypeFromName has incomplete parameters list
(#185) Phpdocs for function concatenate_paths has incomplete parameters list
local/moodlemobileapp/structure/ws_functions.php
(#55) Phpdocs for function convert_to_ts has incomplete parameters list
local/moodlemobileapp/structure/ws_functions_41.php
(#41) Phpdocs for function convert_to_ts 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, 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]