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

(20 errors, 27 warnings)

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

local/customcleanurl/classes/customcleanurl.php
(#39) Opening brace must not be followed by a blank line
(#64) Blank line found at start of control structure
local/customcleanurl/classes/form/customcleanurl_form.php
(#42) Opening brace must not be followed by a blank line
(#113) Blank line found at start of control structure
(#138) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#141) Each line in a multi-line control structure must be indented at least once; expected at least 24 spaces, but found 20
(#141) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#176) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#179) Each line in a multi-line control structure must be indented at least once; expected at least 24 spaces, but found 20
(#179) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#198) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#201) Each line in a multi-line control structure must be indented at least once; expected at least 24 spaces, but found 20
(#201) The closing parenthesis of a multi-line control structure must be on the line after the last expression
local/customcleanurl/classes/handler/customcleanurl_handler.php
(#41) Opening brace must not be followed by a blank line
local/customcleanurl/classes/hooks/hook_callbacks.php
(#38) Opening brace must not be followed by a blank line
local/customcleanurl/classes/local/clean_url.php
(#40) Opening brace must not be followed by a blank line
local/customcleanurl/classes/local/helper.php
(#40) Opening brace must not be followed by a blank line
local/customcleanurl/classes/local/htaccess.php
(#37) Opening brace must not be followed by a blank line
local/customcleanurl/classes/privacy/provider.php
(#34) Opening brace must not be followed by a blank line
local/customcleanurl/lang/en/local_customcleanurl.php
(#31) The string key "configtitle" is not in the correct order, it should be before "pluginname_desc"
(#33) The string key "invalidaccess" is not in the correct order, it should be before "privacy:metadata"
(#34) The string key "featureisnotenable" is not in the correct order, it should be before "invalidaccess"
(#37) The string key "add_new_url" is not in the correct order, it should be before "invalidsesskey"
(#39) The string key "forbiddenpage" is not in the correct order, it should be before "list_custom_url"
(#41) The string key "errorpage404" is not in the correct order, it should be before "pagenotfound"
(#42) The string key "cachedef_clean_url" is not in the correct order, it should be before "errorpage404"
(#45) The string key "delete_data_heading" is not in the correct order, it should be before "invalidcustomparam"
(#46) The string key "delete_conform_text" is not in the correct order, it should be before "delete_data_heading"
(#50) The string key "fail_customcleanurlroutecheck" is not in the correct order, it should be before "pass_customcleanurlroutecheck"
(#51) The string key "course_url" is not in the correct order, it should be before "fail_customcleanurlroutecheck"
(#53) The string key "define_custom_url" is not in the correct order, it should be before "user_url"
(#54) The string key "cleanurl_options_desc" is not in the correct order, it should be before "define_custom_url"
(#81) The string key "add_new_url_redirect" is not in the correct order, it should be before "list_custom_urlredirect"
(#84) The string key "clean_url_type" is not in the correct order, it should be before "destination_url"
(#88) The string key "default_url" is not in the correct order, it should be before "sn"
(#90) The string key "custom_url" is not in the correct order, it should be before "default_url_help"
(#92) The string key "custom_url_help" is not in the correct order, it should be before "redirect_url"
(#94) The string key "error_default_url" is not in the correct order, it should be before "error_default_url_adminurl"
(#97) The string key "error_default_url_not_originalurl" is not in the correct order, it should be before "error_default_url_path"
(#98) The string key "error_custom_url_is_default" is not in the correct order, it should be before "error_default_url_not_originalurl"
(#100) The string key "error_custom_exist" is not in the correct order, it should be before "error_custom_url_path"
(#104) The string key "edit_custom_url_title" is not in the correct order, it should be before "error_customurlparam"
(#105) The string key "data_saved" is not in the correct order, it should be before "edit_custom_url_title"
(#107) The string key "data_saved_error" is not in the correct order, it should be before "data_updated"
(#109) The string key "data_delete" is not in the correct order, it should be before "something_went_wrong"
local/customcleanurl/route.php
(#26) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
local/customcleanurl/settings.php
(#34) Blank line found at start of control structure

Javascript coding style problems

(0 errors, 12 warnings)

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

local/customcleanurl/amd/src/customcleanurl.js
(#25) Unexpected space before function parentheses. (space-before-function-paren)
(#27) Unexpected space before function parentheses. (space-before-function-paren)
(#28) Unexpected space before function parentheses. (space-before-function-paren)
(#29) Unexpected space before function parentheses. (space-before-function-paren)
(#32) Identifier 'data_title' is not in camel case. (camelcase)
(#33) Identifier 'data_title' is not in camel case. (camelcase)
(#33) Identifier 'data_title' is not in camel case. (camelcase)
(#33) Identifier 'data_title' is not in camel case. (camelcase)
(#36) There should be no space after '{'. (@babel/object-curly-spacing)
(#36) Identifier 'data_title' is not in camel case. (camelcase)
(#36) There should be no space before '}'. (@babel/object-curly-spacing)
(#39) Unexpected space before function parentheses. (space-before-function-paren)

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/customcleanurl/classes/customcleanurl.php
(#91) Phpdocs for function customcleanurl::get_base_href has incomplete parameters list
(#107) Phpdocs for function customcleanurl::get_replacestate_script has incomplete parameters list
(#122) Phpdocs for function customcleanurl::get_anchor_fix_javascript 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/customcleanurl/templates/404.mustache
(#1) Example context missing.

Gherkin .feature problems

(0 errors, 0 warnings)

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