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

(42 errors, 73 warnings)

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

local/corolair/classes/output/renderer.php
(#37) Opening brace must not be followed by a blank line
local/corolair/classes/privacy/provider.php
(#50) Opening brace must not be followed by a blank line
(#63) Duplicate interface name "local_corolair\privacy\local_corolair_userlist_provider" found; first defined in /var/lib/jenkins/git_repositories/prechecker/local/corolair/classes/privacy/provider.php on line 50
(#63) Each interface must be in a file by itself
(#63) Opening brace must not be followed by a blank line
(#77) Each interface must be in a file by itself
(#77) The interface names in a "class implements" statement should be ordered alphabetically. Expected: \core_privacy\local\metadata\provider, \core_privacy\local\request\plugin\provider, local_corolair_userlist_provider; Found: local_corolair_userlist_provider, \core_privacy\local\metadata\provider, \core_privacy\local\request\plugin\provider
(#77) The first item in a multi-line implements list must be on the line following the implements keyword
(#79) Opening brace must not be followed by a blank line
local/corolair/classes/task/setup_corolair_connection_task.php
(#37) Opening brace must not be followed by a blank line
(#53) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#56) The closing parenthesis of a multi-line control structure must be on the line after the last expression
local/corolair/db/install.php
(#154) Space found before comma in argument list
(#154) Expected no space between "'enablecustomcss'" and the comma. Found: 1 space
local/corolair/db/uninstall.php
(#84) Blank line found at end of control structure
(#86) Space found before comma in argument list
(#86) Expected no space between ")" and the comma. Found: 1 space
(#92) Blank line found at end of control structure
local/corolair/db/upgrade.php
(#48) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#50) Expected at least 1 space before "||"; 0 found
(#52) The closing parenthesis of a multi-line control structure must be indented to the same level as start of the control structure; expected 12 spaces but found 16
(#149) Space found before comma in argument list
(#149) Expected no space between "'enablecustomcss'" and the comma. Found: 1 space
local/corolair/lang/en/local_corolair.php
(#31) The string key "false" is not in the correct order, it should be before "true"
(#32) The string key "apikey" is not in the correct order, it should be before "false"
(#37) The string key "curlerror" is not in the correct order, it should be before "plugininstalledsuccess"
(#38) The string key "apikeymissing" is not in the correct order, it should be before "curlerror"
(#41) The string key "errortoken" is not in the correct order, it should be before "noapikey"
(#44) The string key "coursenodetitle" is not in the correct order, it should be before "roleproblem"
(#46) The string key "createtutorcapability" is not in the correct order, it should be before "frontpagenodetitle"
(#48) The string key "capabilitytrue" is not in the correct order, it should be before "createtutorcapabilitydesc"
(#49) The string key "capabilityfalse" is not in the correct order, it should be before "capabilitytrue"
(#51) The string key "trainerpage" is not in the correct order, it should be before "unexpectederror"
(#52) The string key "nocorolairlogin" is not in the correct order, it should be before "trainerpage"
(#53) The string key "createtutorcapability" is duplicated
(#55) The string key "rolename" is not in the correct order, it should be before "tokenname"
(#56) The string key "roledescription" is not in the correct order, it should be before "rolename"
(#57) The string key "privacy:metadata:corolair" is not in the correct order, it should be before "roledescription"
(#59) The string key "privacy:metadata:corolair:useremail" is not in the correct order, it should be before "privacy:metadata:corolair:userid"
(#63) The string key "privacy:metadata:corolair:interaction" is not in the correct order, it should be before "privacy:metadata:corolair:userrolename"
(#64) The string key "localhosterror" is not in the correct order, it should be before "privacy:metadata:corolair:interaction"
(#66) The string key "restprotocolenableerror" is not in the correct order, it should be before "webservicesenableerror"
(#68) The string key "capabilityassignerror" is not in the correct order, it should be before "servicecreationerror"
(#70) The string key "installtroubleshoot" is not in the correct order, it should be before "tokencreationerror"
(#71) The string key "adhocqueued" is not in the correct order, it should be before "installtroubleshoot"
(#74) The string key "advancedsettings" is not in the correct order, it should be before "customcss"
(#78) The string key "enablecustomcss" is not in the correct order, it should be before "reset_success"
(#81) The string key "quizstudentpage" is not in the correct order, it should be before "quiztrainerpage"
local/corolair/lang/es/local_corolair.php
(#31) The string key "false" is not in the correct order, it should be before "true"
(#32) The string key "apikey" is not in the correct order, it should be before "false"
(#37) The string key "curlerror" is not in the correct order, it should be before "plugininstalledsuccess"
(#38) The string key "apikeymissing" is not in the correct order, it should be before "curlerror"
(#41) The string key "errortoken" is not in the correct order, it should be before "noapikey"
(#44) The string key "coursenodetitle" is not in the correct order, it should be before "roleproblem"
(#46) The string key "createtutorcapability" is not in the correct order, it should be before "frontpagenodetitle"
(#48) The string key "capabilitytrue" is not in the correct order, it should be before "createtutorcapabilitydesc"
(#49) The string key "capabilityfalse" is not in the correct order, it should be before "capabilitytrue"
(#51) The string key "trainerpage" is not in the correct order, it should be before "unexpectederror"
(#52) The string key "nocorolairlogin" is not in the correct order, it should be before "trainerpage"
(#53) The string key "createtutorcapability" is duplicated
(#55) The string key "rolename" is not in the correct order, it should be before "tokenname"
(#56) The string key "roledescription" is not in the correct order, it should be before "rolename"
(#57) The string key "privacy:metadata:corolair" is not in the correct order, it should be before "roledescription"
(#59) The string key "privacy:metadata:corolair:useremail" is not in the correct order, it should be before "privacy:metadata:corolair:userid"
(#63) The string key "privacy:metadata:corolair:interaction" is not in the correct order, it should be before "privacy:metadata:corolair:userrolename"
(#64) The string key "localhosterror" is not in the correct order, it should be before "privacy:metadata:corolair:interaction"
(#66) The string key "restprotocolenableerror" is not in the correct order, it should be before "webservicesenableerror"
(#68) The string key "capabilityassignerror" is not in the correct order, it should be before "servicecreationerror"
(#70) The string key "installtroubleshoot" is not in the correct order, it should be before "tokencreationerror"
(#71) The string key "adhocqueued" is not in the correct order, it should be before "installtroubleshoot"
(#74) The string key "advancedsettings" is not in the correct order, it should be before "customcss"
(#78) The string key "enablecustomcss" is not in the correct order, it should be before "reset_success"
(#81) The string key "quizstudentpage" is not in the correct order, it should be before "quiztrainerpage"
local/corolair/lang/fr/local_corolair.php
(#31) The string key "false" is not in the correct order, it should be before "true"
(#32) The string key "apikey" is not in the correct order, it should be before "false"
(#37) The string key "curlerror" is not in the correct order, it should be before "plugininstalledsuccess"
(#38) The string key "apikeymissing" is not in the correct order, it should be before "curlerror"
(#41) The string key "errortoken" is not in the correct order, it should be before "noapikey"
(#44) The string key "coursenodetitle" is not in the correct order, it should be before "roleproblem"
(#46) The string key "createtutorcapability" is not in the correct order, it should be before "frontpagenodetitle"
(#48) The string key "capabilitytrue" is not in the correct order, it should be before "createtutorcapabilitydesc"
(#49) The string key "capabilityfalse" is not in the correct order, it should be before "capabilitytrue"
(#51) The string key "trainerpage" is not in the correct order, it should be before "unexpectederror"
(#52) The string key "nocorolairlogin" is not in the correct order, it should be before "trainerpage"
(#53) The string key "createtutorcapability" is duplicated
(#55) The string key "rolename" is not in the correct order, it should be before "tokenname"
(#56) The string key "roledescription" is not in the correct order, it should be before "rolename"
(#57) The string key "privacy:metadata:corolair" is not in the correct order, it should be before "roledescription"
(#59) The string key "privacy:metadata:corolair:useremail" is not in the correct order, it should be before "privacy:metadata:corolair:userid"
(#63) The string key "privacy:metadata:corolair:interaction" is not in the correct order, it should be before "privacy:metadata:corolair:userrolename"
(#64) The string key "localhosterror" is not in the correct order, it should be before "privacy:metadata:corolair:interaction"
(#66) The string key "restprotocolenableerror" is not in the correct order, it should be before "webservicesenableerror"
(#68) The string key "capabilityassignerror" is not in the correct order, it should be before "servicecreationerror"
(#70) The string key "installtroubleshoot" is not in the correct order, it should be before "tokencreationerror"
(#71) The string key "adhocqueued" is not in the correct order, it should be before "installtroubleshoot"
(#74) The string key "advancedsettings" is not in the correct order, it should be before "customcss"
(#78) The string key "enablecustomcss" is not in the correct order, it should be before "reset_success"
(#81) The string key "quizstudentpage" is not in the correct order, it should be before "quiztrainerpage"
local/corolair/quiz_student.php
(#56) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#60) The closing parenthesis of a multi-line control structure must be indented to the same level as start of the control structure; expected 0 spaces but found 4
local/corolair/quiz_trainer.php
(#90) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#94) The closing parenthesis of a multi-line control structure must be indented to the same level as start of the control structure; expected 0 spaces but found 4
(#168) Space found before comma in argument list
(#168) Expected no space between "$postdata" and the comma. Found: 1 space
local/corolair/settings.php
(#71) Space found before comma in argument list
(#71) Expected no space between "'nocorolairlogin'" and the comma. Found: 1 space
(#85) Space found before comma in argument list
(#85) Expected no space between "'advancedsettingsdescription'" and the comma. Found: 1 space
(#102) Space found before comma in argument list
(#102) Expected no space between "'local_corolair/customcss'" and the comma. Found: 1 space
(#103) Blank line found at end of control structure
local/corolair/trainer.php
(#90) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#94) The closing parenthesis of a multi-line control structure must be indented to the same level as start of the control structure; expected 0 spaces but found 4
(#168) Space found before comma in argument list
(#168) Expected no space between "$postdata" and the comma. Found: 1 space

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

(99 errors, 0 warnings)

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

local/corolair/styles.css
(#37) Unexpected duplicate "padding" (declaration-block-no-duplicate-properties)
(#83) Unexpected duplicate "padding" (declaration-block-no-duplicate-properties)
(#129) Unexpected duplicate "padding" (declaration-block-no-duplicate-properties)
(#14) Unexpected !important (declaration-no-important)
(#15) Unexpected !important (declaration-no-important)
(#28) Unexpected !important (declaration-no-important)
(#29) Unexpected !important (declaration-no-important)
(#30) Unexpected !important (declaration-no-important)
(#31) Unexpected !important (declaration-no-important)
(#32) Unexpected !important (declaration-no-important)
(#36) Unexpected !important (declaration-no-important)
(#37) Unexpected !important (declaration-no-important)
(#51) Unexpected !important (declaration-no-important)
(#60) Unexpected !important (declaration-no-important)
(#61) Unexpected !important (declaration-no-important)
(#74) Unexpected !important (declaration-no-important)
(#75) Unexpected !important (declaration-no-important)
(#76) Unexpected !important (declaration-no-important)
(#77) Unexpected !important (declaration-no-important)
(#78) Unexpected !important (declaration-no-important)
(#82) Unexpected !important (declaration-no-important)
(#83) Unexpected !important (declaration-no-important)
(#97) Unexpected !important (declaration-no-important)
(#106) Unexpected !important (declaration-no-important)
(#107) Unexpected !important (declaration-no-important)
(#120) Unexpected !important (declaration-no-important)
(#121) Unexpected !important (declaration-no-important)
(#122) Unexpected !important (declaration-no-important)
(#123) Unexpected !important (declaration-no-important)
(#124) Unexpected !important (declaration-no-important)
(#128) Unexpected !important (declaration-no-important)
(#129) Unexpected !important (declaration-no-important)
(#143) Unexpected !important (declaration-no-important)
(#4) Expected indentation of 4 spaces (indentation)
(#5) Expected indentation of 4 spaces (indentation)
(#9) Expected indentation of 4 spaces (indentation)
(#14) Expected indentation of 4 spaces (indentation)
(#15) Expected indentation of 4 spaces (indentation)
(#16) Expected indentation of 4 spaces (indentation)
(#17) Expected indentation of 4 spaces (indentation)
(#18) Expected indentation of 4 spaces (indentation)
(#22) Expected indentation of 4 spaces (indentation)
(#23) Expected indentation of 4 spaces (indentation)
(#24) Expected indentation of 4 spaces (indentation)
(#28) Expected indentation of 4 spaces (indentation)
(#29) Expected indentation of 4 spaces (indentation)
(#30) Expected indentation of 4 spaces (indentation)
(#31) Expected indentation of 4 spaces (indentation)
(#32) Expected indentation of 4 spaces (indentation)
(#36) Expected indentation of 4 spaces (indentation)
(#37) Expected indentation of 4 spaces (indentation)
(#38) Expected indentation of 4 spaces (indentation)
(#42) Expected indentation of 4 spaces (indentation)
(#46) Expected indentation of 4 spaces (indentation)
(#50) Expected indentation of 4 spaces (indentation)
(#51) Expected indentation of 4 spaces (indentation)
(#55) Expected indentation of 4 spaces (indentation)
(#60) Expected indentation of 4 spaces (indentation)
(#61) Expected indentation of 4 spaces (indentation)
(#62) Expected indentation of 4 spaces (indentation)
(#63) Expected indentation of 4 spaces (indentation)
(#64) Expected indentation of 4 spaces (indentation)
(#68) Expected indentation of 4 spaces (indentation)
(#69) Expected indentation of 4 spaces (indentation)
(#70) Expected indentation of 4 spaces (indentation)
(#74) Expected indentation of 4 spaces (indentation)
(#75) Expected indentation of 4 spaces (indentation)
(#76) Expected indentation of 4 spaces (indentation)
(#77) Expected indentation of 4 spaces (indentation)
(#78) Expected indentation of 4 spaces (indentation)
(#82) Expected indentation of 4 spaces (indentation)
(#83) Expected indentation of 4 spaces (indentation)
(#84) Expected indentation of 4 spaces (indentation)
(#88) Expected indentation of 4 spaces (indentation)
(#92) Expected indentation of 4 spaces (indentation)
(#96) Expected indentation of 4 spaces (indentation)
(#97) Expected indentation of 4 spaces (indentation)
(#101) Expected indentation of 4 spaces (indentation)
(#106) Expected indentation of 4 spaces (indentation)
(#107) Expected indentation of 4 spaces (indentation)
(#108) Expected indentation of 4 spaces (indentation)
(#109) Expected indentation of 4 spaces (indentation)
(#110) Expected indentation of 4 spaces (indentation)
(#114) Expected indentation of 4 spaces (indentation)
(#115) Expected indentation of 4 spaces (indentation)
(#116) Expected indentation of 4 spaces (indentation)
(#120) Expected indentation of 4 spaces (indentation)
(#121) Expected indentation of 4 spaces (indentation)
(#122) Expected indentation of 4 spaces (indentation)
(#123) Expected indentation of 4 spaces (indentation)
(#124) Expected indentation of 4 spaces (indentation)
(#128) Expected indentation of 4 spaces (indentation)
(#129) Expected indentation of 4 spaces (indentation)
(#130) Expected indentation of 4 spaces (indentation)
(#134) Expected indentation of 4 spaces (indentation)
(#138) Expected indentation of 4 spaces (indentation)
(#142) Expected indentation of 4 spaces (indentation)
(#143) Expected indentation of 4 spaces (indentation)
(#147) Expected indentation of 4 spaces (indentation)

PHPDocs style problems

(2 errors, 0 warnings)

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

local/corolair/classes/output/renderer.php
(#74) Phpdocs for function renderer::render_trainer has incomplete parameters list
(#163) Phpdocs for function renderer::render_quiz_trainer 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

(1 errors, 1 warnings)

This section shows files built by grunt and not commited [More info]

Problems running grunt
Task "stylelint:css" 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, 6 warnings)

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

local/corolair/templates/dashboard.mustache
(#1) Example context missing (@template section not found.)
local/corolair/templates/embed_script.mustache
(#1) Example context missing (@template section not found.)
local/corolair/templates/installation_troubleshoot.mustache
(#1) Example context missing (@template section not found.)
local/corolair/templates/quiz_student.mustache
(#1) Example context missing (@template section not found.)
local/corolair/templates/quiz_trainer.mustache
(#1) Example context missing (@template section not found.)
local/corolair/templates/trainer.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]