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

(3 errors, 2 warnings)

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

local/wswizard/classes/forms/add_functions_to_webservice_form.php
(#182) Expected 1 space after "="; 2 found
local/wswizard/classes/forms/add_token_to_webservice_form.php
(#57) Expected 1 space after "=>"; 2 found
local/wswizard/classes/forms/ws_form.php
(#97) Expected 1 space after "=>"; 2 found
local/wswizard/classes/privacy/provider.php
(#45) Duplicate interface name "local_wswizard\privacy\my_userlist" found; first defined in /var/lib/jenkins/git_repositories/prechecker/local/wswizard/classes/privacy/provider.php on line 42
local/wswizard/lib.php
(#36) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.

Javascript coding style problems

(33 errors, 16 warnings)

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

local/wswizard/amd/src/dashboardModal.js
(#2) Missing space before opening brace. (space-before-blocks)
(#34) ["tokenid"] is better written in dot notation. (dot-notation)
(#34) Trailing spaces not allowed. (no-trailing-spaces)
(#35) Unexpected tab character. (no-tabs)
(#35) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#71) ["functionid"] is better written in dot notation. (dot-notation)
(#71) ["functionname"] is better written in dot notation. (dot-notation)
(#71) Trailing spaces not allowed. (no-trailing-spaces)
(#72) Unexpected tab character. (no-tabs)
(#72) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#103) ["webserviceid"] is better written in dot notation. (dot-notation)
(#103) Trailing spaces not allowed. (no-trailing-spaces)
(#104) Unexpected tab character. (no-tabs)
(#104) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#106) 'resultData' is defined but never used. (no-unused-vars)
(#114) A space is required after ','. (comma-spacing)
(#122) Unexpected empty method 'success'. (no-empty-function)
(#127) A space is required after ','. (comma-spacing)
(#135) Unexpected empty method 'success'. (no-empty-function)
(#141) A space is required after ','. (comma-spacing)
(#149) Unexpected empty method 'success'. (no-empty-function)
local/wswizard/js/copytext.js
(#1) Missing JSDoc comment. (require-jsdoc)
(#1) 'copyTextFromElement' is defined but never used. (no-unused-vars)
(#1) A space is required after ','. (comma-spacing)
(#1) Missing space before opening brace. (space-before-blocks)
local/wswizard/js/wswizard.js
(#1) '$' is not defined. (no-undef)
(#2) '$' is not defined. (no-undef)
(#4) Missing JSDoc comment. (require-jsdoc)
(#5) '$' is not defined. (no-undef)
(#7) '$' is not defined. (no-undef)
(#8) '$' is not defined. (no-undef)
(#9) '$' is not defined. (no-undef)
(#10) '$' is not defined. (no-undef)
(#11) '$' is not defined. (no-undef)
(#14) '$' is not defined. (no-undef)
(#15) '$' is not defined. (no-undef)
(#16) '$' is not defined. (no-undef)
(#17) '$' is not defined. (no-undef)
(#18) '$' is not defined. (no-undef)
(#21) Missing JSDoc comment. (require-jsdoc)
(#22) '$' is not defined. (no-undef)
(#24) '$' is not defined. (no-undef)
(#25) '$' is not defined. (no-undef)
(#26) '$' is not defined. (no-undef)
(#27) '$' is not defined. (no-undef)
(#30) '$' is not defined. (no-undef)
(#31) '$' is not defined. (no-undef)
(#32) '$' is not defined. (no-undef)
(#33) '$' is not defined. (no-undef)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(65 errors, 27 warnings)

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

local/wswizard/ajax.php
(#21) Package local ** is not valid
(#17) No one-line description found in phpdocs for file
(#23) Not recommended phpdocs tag @name used
local/wswizard/classes/Base.php
(#21) Package local_wswizard ** is not valid
(#38) Class Base is not documented
(#17) No one-line description found in phpdocs for file
(#174) Phpdocs for function Base::get_user_record has incomplete parameters list
(#199) Phpdocs for function Base::get_user_name_by_userid has incomplete parameters list
(#22) Not recommended phpdocs tag @name used
(#49) Not recommended phpdocs tag @global used
(#49) Not recommended phpdocs tag @global used
(#49) Not recommended phpdocs tag @global used
(#49) Not recommended phpdocs tag @global used
local/wswizard/classes/Logs.php
(#21) Package local_wswizard ** is not valid
(#17) No one-line description found in phpdocs for file
(#66) Phpdocs for function Logs::insert has incomplete parameters list
(#89) Phpdocs for function Logs::get_all has incomplete parameters list
(#127) Phpdocs for function Logs::format_logs has incomplete parameters list
(#22) Not recommended phpdocs tag @name used
(#68) Not recommended phpdocs tag @global used
(#92) Not recommended phpdocs tag @global used
local/wswizard/classes/forms/add_functions_to_webservice_form.php
(#21) Package local_wswizard ** is not valid
(#42) Function add_functions_to_webservice_form::definition is not documented
(#17) No one-line description found in phpdocs for file
(#236) Phpdocs for function add_functions_to_webservice_form::assign_functions_to_webservice has incomplete parameters list
(#22) Not recommended phpdocs tag @name used
local/wswizard/classes/forms/add_token_to_webservice_form.php
(#21) Package local_wswizard ** is not valid
(#17) No one-line description found in phpdocs for file
(#201) Phpdocs for function add_token_to_webservice_form::validation has incomplete parameters list
(#22) Not recommended phpdocs tag @name used
local/wswizard/classes/forms/ws_form.php
(#20) Package local_wswizard ** is not valid
(#16) No one-line description found in phpdocs for file
(#175) Phpdocs for function ws_form::validation has incomplete parameters list
(#21) Not recommended phpdocs tag @name used
local/wswizard/classes/privacy/provider.php
(#21) Package local ** is not valid
(#49) Class provider is not documented
(#52) Function provider::get_metadata is not documented
(#17) No one-line description found in phpdocs for file
(#102) Phpdocs for function provider::export_user_data has incomplete parameters list
(#23) Not recommended phpdocs tag @name used
local/wswizard/classes/task/archive_logs.php
(#21) Package local ** is not valid
(#38) Class archive_logs is not documented
(#17) No one-line description found in phpdocs for file
(#23) Not recommended phpdocs tag @name used
local/wswizard/classes/web_service_data.php
(#21) Package local_wswizard ** is not valid
(#17) No one-line description found in phpdocs for file
(#197) Phpdocs for function web_service_data::edit_or_create_webservice_object has incomplete parameters list
(#254) Phpdocs for function web_service_data::assign_functions_to_webservice has incomplete parameters list
(#304) Phpdocs for function web_service_data::create_webservice_token has incomplete parameters list
(#359) Phpdocs for function web_service_data::set_webservice_role has incomplete parameters list
(#22) Not recommended phpdocs tag @name used
local/wswizard/classes/web_service_wizard.php
(#21) Package local_wswizard ** is not valid
(#17) No one-line description found in phpdocs for file
(#103) Phpdocs for function web_service_wizard::__construct has incomplete parameters list
(#231) Phpdocs for function web_service_wizard::get_service_by_id has incomplete parameters list
(#253) Phpdocs for function web_service_wizard::get_tokens_from_webservice_id has incomplete parameters list
(#279) Phpdocs for function web_service_wizard::get_functions_from_webservice_id has incomplete parameters list
(#325) Phpdocs for function web_service_wizard::get_user_by_id has incomplete parameters list
(#336) Phpdocs for function web_service_wizard::get_username_from_id has incomplete parameters list
(#347) Phpdocs for function web_service_wizard::get_authorised_users_from_ws_id has incomplete parameters list
(#384) Phpdocs for function web_service_wizard::get_role_name_from_id has incomplete parameters list
(#401) Phpdocs for function web_service_wizard::get_webservice_role has incomplete parameters list
(#418) Phpdocs for function web_service_wizard::get_webservice_protocols_from_webservice has incomplete parameters list
(#22) Not recommended phpdocs tag @name used
local/wswizard/dashboard.php
(#21) Package local ** is not valid
(#17) No one-line description found in phpdocs for file
(#23) Not recommended phpdocs tag @name used
local/wswizard/db/upgrade.php
(#21) Package local ** is not valid
(#32) Function xmldb_local_wswizard_upgrade is not documented
(#17) No one-line description found in phpdocs for file
(#23) Not recommended phpdocs tag @name used
local/wswizard/lang/en/local_wswizard.php
(#21) Package local ** is not valid
(#17) No one-line description found in phpdocs for file
(#23) Not recommended phpdocs tag @name used
local/wswizard/lib.php
(#21) Package local_wswizard ** is not valid
(#17) No one-line description found in phpdocs for file
(#22) Not recommended phpdocs tag @name used
local/wswizard/logs.php
(#20) Package local ** is not valid
(#16) No one-line description found in phpdocs for file
(#22) Not recommended phpdocs tag @name used
local/wswizard/settings.php
(#21) Package local ** is not valid
(#17) No one-line description found in phpdocs for file
(#23) Not recommended phpdocs tag @name used
local/wswizard/version.php
(#21) Package local ** is not valid
(#17) No one-line description found in phpdocs for file
(#23) Not recommended phpdocs tag @name used
local/wswizard/ws.php
(#21) Package local_wswizard ** is not valid
(#17) No one-line description found in phpdocs for file
(#22) Not recommended phpdocs tag @name used
local/wswizard/ws_edit.php
(#21) Package local_wswizard ** is not valid
(#17) No one-line description found in phpdocs for file
(#22) Not recommended phpdocs tag @name used

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]

Problems running grunt
Task "eslint:amd" failed. Use --force to continue.

shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 4 warnings)

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

local/wswizard/templates/dashboard.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 6: Bad value “” for attribute “aria-selected” on element “a”. ( <a class="nav-link" id="nav-createnew-tab" href="" aria-selected=""><i )
(#1) HTML Validation error, line 6: Element “a” is missing one or more of the following attributes: “aria-checked”, “role”. ( <a class="nav-link" id="nav-createnew-tab" href="" aria-selected=""><i )
local/wswizard/templates/logs_report.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]